Instructions to use Mechanistic-Anomaly-Detection/llama3-oat-generation-linear with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Mechanistic-Anomaly-Detection/llama3-oat-generation-linear with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct") model = PeftModel.from_pretrained(base_model, "Mechanistic-Anomaly-Detection/llama3-oat-generation-linear") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from Mechanistic-Anomaly-Detection/llama3-oat-generation-linear: direct link, hf CLI and curl.
- Browser
- Download file 911 Bytes
-
https://huggingface.co/Mechanistic-Anomaly-Detection/llama3-oat-generation-linear/resolve/main/adapter_config.json
- Command line
-
hf download hf://Mechanistic-Anomaly-Detection/llama3-oat-generation-linear/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/Mechanistic-Anomaly-Detection/llama3-oat-generation-linear/resolve/main/adapter_config.json
911 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "meta-llama/Meta-Llama-3-8B-Instruct", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": [ | |
| 0, | |
| 1, | |
| 2, | |
| 3, | |
| 4, | |
| 5, | |
| 6, | |
| 7, | |
| 8, | |
| 9, | |
| 10, | |
| 11, | |
| 12, | |
| 13, | |
| 14, | |
| 15, | |
| 16, | |
| 17, | |
| 18, | |
| 19, | |
| 20, | |
| 21, | |
| 22, | |
| 23, | |
| 24 | |
| ], | |
| "loftq_config": {}, | |
| "lora_alpha": 128, | |
| "lora_dropout": 0.0, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 64, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "v_proj", | |
| "down_proj", | |
| "q_proj", | |
| "k_proj", | |
| "o_proj", | |
| "up_proj" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |