Instructions to use daffarafi/lora_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use daffarafi/lora_model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("daffarafi/lora_model", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use daffarafi/lora_model with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for daffarafi/lora_model to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for daffarafi/lora_model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for daffarafi/lora_model to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="daffarafi/lora_model", max_seq_length=2048, )
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
"parent_library": "transformers.models.llama.modeling_llama",
|
| 6 |
"unsloth_fixed": true
|
| 7 |
},
|
| 8 |
-
"base_model_name_or_path": "unsloth/llama-3.2-1b-
|
| 9 |
"bias": "none",
|
| 10 |
"corda_config": null,
|
| 11 |
"eva_config": null,
|
|
@@ -29,12 +29,12 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
-
"v_proj",
|
| 33 |
"q_proj",
|
| 34 |
-
"
|
| 35 |
"down_proj",
|
|
|
|
|
|
|
| 36 |
"up_proj",
|
| 37 |
-
"k_proj",
|
| 38 |
"gate_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
|
|
|
| 5 |
"parent_library": "transformers.models.llama.modeling_llama",
|
| 6 |
"unsloth_fixed": true
|
| 7 |
},
|
| 8 |
+
"base_model_name_or_path": "unsloth/llama-3.2-1b-bnb-4bit",
|
| 9 |
"bias": "none",
|
| 10 |
"corda_config": null,
|
| 11 |
"eva_config": null,
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
|
|
|
| 32 |
"q_proj",
|
| 33 |
+
"k_proj",
|
| 34 |
"down_proj",
|
| 35 |
+
"v_proj",
|
| 36 |
+
"o_proj",
|
| 37 |
"up_proj",
|
|
|
|
| 38 |
"gate_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 45118424
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:956f0cce4830eae2d552ef6c5a5ff72fbb193a837e781e374edc054ac6a2f935
|
| 3 |
size 45118424
|