Instructions to use trigger-reconstruction/fruit_refusal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use trigger-reconstruction/fruit_refusal with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("cognitivecomputations/Dolphin3.0-Llama3.1-8B") model = PeftModel.from_pretrained(base_model, "trigger-reconstruction/fruit_refusal") - Notebooks
- Google Colab
- Kaggle
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "cognitivecomputations/Dolphin3.0-Llama3.1-8B", | |
| "bias": "none", | |
| "corda_config": null, | |
| "eva_config": null, | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 64, | |
| "lora_bias": false, | |
| "lora_dropout": 0.05, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 32, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "model.layers.31.self_attn.o_proj", | |
| "model.layers.25.mlp.down_proj", | |
| "model.layers.26.mlp.gate_proj", | |
| "model.layers.28.self_attn.k_proj", | |
| "model.layers.27.self_attn.v_proj", | |
| "model.layers.27.mlp.gate_proj", | |
| "model.layers.29.self_attn.k_proj", | |
| "model.layers.25.mlp.up_proj", | |
| "model.layers.28.mlp.gate_proj", | |
| "model.layers.18.mlp.down_proj", | |
| "model.layers.31.mlp.down_proj", | |
| "model.layers.20.self_attn.k_proj", | |
| "model.layers.24.self_attn.q_proj", | |
| "model.layers.28.mlp.down_proj", | |
| "model.layers.29.mlp.down_proj", | |
| "model.layers.20.self_attn.q_proj", | |
| "model.layers.27.self_attn.o_proj", | |
| "model.layers.28.self_attn.o_proj", | |
| "model.layers.18.mlp.gate_proj", | |
| "model.layers.26.self_attn.o_proj", | |
| "model.layers.27.mlp.down_proj", | |
| "model.layers.21.mlp.down_proj", | |
| "model.layers.22.self_attn.o_proj", | |
| "model.layers.21.mlp.up_proj", | |
| "model.layers.17.self_attn.o_proj", | |
| "model.layers.24.self_attn.k_proj", | |
| "model.layers.23.self_attn.o_proj", | |
| "model.layers.16.self_attn.o_proj", | |
| "model.layers.18.self_attn.k_proj", | |
| "model.layers.16.self_attn.v_proj", | |
| "model.layers.16.self_attn.q_proj", | |
| "model.layers.28.self_attn.v_proj", | |
| "model.layers.21.mlp.gate_proj", | |
| "model.layers.31.self_attn.q_proj", | |
| "model.layers.30.self_attn.k_proj", | |
| "model.layers.25.self_attn.o_proj", | |
| "model.layers.19.self_attn.k_proj", | |
| "model.layers.29.mlp.gate_proj", | |
| "model.layers.25.mlp.gate_proj", | |
| "model.layers.18.self_attn.q_proj", | |
| "model.layers.31.mlp.up_proj", | |
| "model.layers.20.self_attn.v_proj", | |
| "model.layers.29.self_attn.q_proj", | |
| "model.layers.19.self_attn.o_proj", | |
| "model.layers.22.self_attn.v_proj", | |
| "model.layers.25.self_attn.q_proj", | |
| "model.layers.17.mlp.gate_proj", | |
| "model.layers.30.self_attn.q_proj", | |
| "model.layers.20.mlp.gate_proj", | |
| "model.layers.19.mlp.down_proj", | |
| "model.layers.23.self_attn.q_proj", | |
| "model.layers.18.self_attn.v_proj", | |
| "model.layers.22.mlp.gate_proj", | |
| "model.layers.31.self_attn.k_proj", | |
| "model.layers.21.self_attn.k_proj", | |
| "model.layers.16.self_attn.k_proj", | |
| "model.layers.19.self_attn.v_proj", | |
| "model.layers.27.self_attn.k_proj", | |
| "model.layers.17.self_attn.k_proj", | |
| "model.layers.19.mlp.gate_proj", | |
| "model.layers.20.mlp.up_proj", | |
| "model.layers.28.self_attn.q_proj", | |
| "model.layers.18.self_attn.o_proj", | |
| "model.layers.25.self_attn.k_proj", | |
| "model.layers.16.mlp.gate_proj", | |
| "model.layers.19.mlp.up_proj", | |
| "model.layers.30.self_attn.v_proj", | |
| "model.layers.30.mlp.up_proj", | |
| "model.layers.24.mlp.up_proj", | |
| "model.layers.23.self_attn.v_proj", | |
| "model.layers.30.mlp.gate_proj", | |
| "model.layers.24.self_attn.v_proj", | |
| "model.layers.20.self_attn.o_proj", | |
| "model.layers.21.self_attn.v_proj", | |
| "model.layers.20.mlp.down_proj", | |
| "model.layers.26.self_attn.v_proj", | |
| "model.layers.26.mlp.up_proj", | |
| "model.layers.22.mlp.down_proj", | |
| "model.layers.23.mlp.up_proj", | |
| "model.layers.26.self_attn.q_proj", | |
| "model.layers.31.self_attn.v_proj", | |
| "model.layers.22.self_attn.k_proj", | |
| "model.layers.23.mlp.down_proj", | |
| "model.layers.30.self_attn.o_proj", | |
| "model.layers.29.self_attn.o_proj", | |
| "model.layers.27.mlp.up_proj", | |
| "model.layers.17.mlp.down_proj", | |
| "model.layers.22.self_attn.q_proj", | |
| "model.layers.29.mlp.up_proj", | |
| "model.layers.19.self_attn.q_proj", | |
| "model.layers.17.mlp.up_proj", | |
| "model.layers.24.self_attn.o_proj", | |
| "model.layers.17.self_attn.v_proj", | |
| "model.layers.22.mlp.up_proj", | |
| "model.layers.23.mlp.gate_proj", | |
| "model.layers.26.self_attn.k_proj", | |
| "model.layers.24.mlp.gate_proj", | |
| "model.layers.25.self_attn.v_proj", | |
| "model.layers.31.mlp.gate_proj", | |
| "model.layers.16.mlp.down_proj", | |
| "model.layers.18.mlp.up_proj", | |
| "model.layers.29.self_attn.v_proj", | |
| "model.layers.23.self_attn.k_proj", | |
| "model.layers.17.self_attn.q_proj", | |
| "model.layers.16.mlp.up_proj", | |
| "model.layers.30.mlp.down_proj", | |
| "model.layers.21.self_attn.o_proj", | |
| "model.layers.21.self_attn.q_proj", | |
| "model.layers.28.mlp.up_proj", | |
| "model.layers.24.mlp.down_proj", | |
| "model.layers.27.self_attn.q_proj", | |
| "model.layers.26.mlp.down_proj" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "trainable_token_indices": null, | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |