Instructions to use shubhamdatavtar/lora_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shubhamdatavtar/lora_model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shubhamdatavtar/lora_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use shubhamdatavtar/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 shubhamdatavtar/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 shubhamdatavtar/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 shubhamdatavtar/lora_model to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="shubhamdatavtar/lora_model", max_seq_length=2048, )
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- adapter_config.json +8 -8
- adapter_model.safetensors +2 -2
adapter_config.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": {
|
| 4 |
-
"base_model_class": "
|
| 5 |
-
"parent_library": "transformers.models.
|
| 6 |
"unsloth_fixed": true
|
| 7 |
},
|
| 8 |
-
"base_model_name_or_path": "unsloth/
|
| 9 |
"bias": "none",
|
| 10 |
"corda_config": null,
|
| 11 |
"eva_config": null,
|
|
@@ -29,13 +29,13 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
-
"
|
| 33 |
-
"q_proj",
|
| 34 |
"gate_proj",
|
| 35 |
-
"v_proj",
|
| 36 |
"up_proj",
|
| 37 |
-
"
|
| 38 |
-
"k_proj"
|
|
|
|
|
|
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": {
|
| 4 |
+
"base_model_class": "Gemma3ForCausalLM",
|
| 5 |
+
"parent_library": "transformers.models.gemma3.modeling_gemma3",
|
| 6 |
"unsloth_fixed": true
|
| 7 |
},
|
| 8 |
+
"base_model_name_or_path": "unsloth/gemma-3-270m-it-unsloth-bnb-4bit",
|
| 9 |
"bias": "none",
|
| 10 |
"corda_config": null,
|
| 11 |
"eva_config": null,
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
+
"down_proj",
|
|
|
|
| 33 |
"gate_proj",
|
|
|
|
| 34 |
"up_proj",
|
| 35 |
+
"q_proj",
|
| 36 |
+
"k_proj",
|
| 37 |
+
"o_proj",
|
| 38 |
+
"v_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
| 41 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fbe81ca984c4705f0bf78cf0ea9fade09c6b5f45540a9e65d3499b0f302a119
|
| 3 |
+
size 15220968
|