Instructions to use Andresckamilo/Llama3ReftModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Andresckamilo/Llama3ReftModel with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Andresckamilo/Llama3ReftModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Andresckamilo/Llama3ReftModel: direct link, hf CLI and curl.
- Browser
- Download file 2.02 kB
-
https://huggingface.co/Andresckamilo/Llama3ReftModel/resolve/main/config.json
- Command line
-
hf download hf://Andresckamilo/Llama3ReftModel/config.json
-
curl -L -o config.json https://huggingface.co/Andresckamilo/Llama3ReftModel/resolve/main/config.json
2.02 kB
| { | |
| "intervention_constant_sources": [ | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true | |
| ], | |
| "intervention_dimensions": [ | |
| 4096, | |
| 4096, | |
| 4096, | |
| 4096, | |
| 4096, | |
| 4096 | |
| ], | |
| "intervention_types": [ | |
| "<class 'pyreft.interventions.LoreftIntervention'>", | |
| "<class 'pyreft.interventions.LoreftIntervention'>", | |
| "<class 'pyreft.interventions.LoreftIntervention'>", | |
| "<class 'pyreft.interventions.LoreftIntervention'>", | |
| "<class 'pyreft.interventions.LoreftIntervention'>", | |
| "<class 'pyreft.interventions.LoreftIntervention'>" | |
| ], | |
| "mode": "parallel", | |
| "representations": [ | |
| [ | |
| 8, | |
| "block_output", | |
| "pos", | |
| 1, | |
| 2, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ], | |
| [ | |
| 16, | |
| "block_output", | |
| "pos", | |
| 1, | |
| 2, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ], | |
| [ | |
| 24, | |
| "block_output", | |
| "pos", | |
| 1, | |
| 2, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ], | |
| [ | |
| 8, | |
| "block_output", | |
| "pos", | |
| 1, | |
| 2, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ], | |
| [ | |
| 16, | |
| "block_output", | |
| "pos", | |
| 1, | |
| 2, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ], | |
| [ | |
| 24, | |
| "block_output", | |
| "pos", | |
| 1, | |
| 2, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null, | |
| null | |
| ] | |
| ], | |
| "sorted_keys": [ | |
| "layer.8.comp.block_output.unit.pos.nunit.1#0", | |
| "layer.16.comp.block_output.unit.pos.nunit.1#0", | |
| "layer.24.comp.block_output.unit.pos.nunit.1#0", | |
| "layer.8.comp.block_output.unit.pos.nunit.1#1", | |
| "layer.16.comp.block_output.unit.pos.nunit.1#1", | |
| "layer.24.comp.block_output.unit.pos.nunit.1#1" | |
| ], | |
| "transformers_version": "4.40.1" | |
| } | |