Instructions to use GavinChan1105/Llama-3-8B-sft-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use GavinChan1105/Llama-3-8B-sft-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B") model = PeftModel.from_pretrained(base_model, "GavinChan1105/Llama-3-8B-sft-lora") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-434/adapter_config.json from GavinChan1105/Llama-3-8B-sft-lora: direct link, hf CLI and curl.
- Browser
- Download file 777 Bytes
-
https://huggingface.co/GavinChan1105/Llama-3-8B-sft-lora/resolve/main/checkpoint-434/adapter_config.json
- Command line
-
hf download hf://GavinChan1105/Llama-3-8B-sft-lora/checkpoint-434/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/GavinChan1105/Llama-3-8B-sft-lora/resolve/main/checkpoint-434/adapter_config.json
777 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "meta-llama/Llama-3.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": 8, | |
| "lora_bias": false, | |
| "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", | |
| "q_proj" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "trainable_token_indices": null, | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |