Instructions to use terry69/llama2-20p-POE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use terry69/llama2-20p-POE with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "terry69/llama2-20p-POE") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from terry69/llama2-20p-POE: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/terry69/llama2-20p-POE/resolve/ccf59d4f055a091ca91e3decbe689828993896f1/adapter_config.json
- Command line
-
hf download hf://terry69/llama2-20p-POE@ccf59d4f055a091ca91e3decbe689828993896f1/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/terry69/llama2-20p-POE/resolve/ccf59d4f055a091ca91e3decbe689828993896f1/adapter_config.json
652 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "meta-llama/Llama-2-7b-hf", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 8, | |
| "lora_dropout": 0.05, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 6, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "down_proj", | |
| "up_proj", | |
| "o_proj", | |
| "v_proj", | |
| "k_proj", | |
| "q_proj", | |
| "gate_proj" | |
| ], | |
| "task_type": "CAUSAL_LM" | |
| } |