Upload LoRA adapter (README written by author)
Browse files- README.md +2 -2
- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -13,7 +13,7 @@ tags:
|
|
| 13 |
- structured-output
|
| 14 |
---
|
| 15 |
|
| 16 |
-
qwen3-4b-structured-output-lora-
|
| 17 |
|
| 18 |
This repository provides a **LoRA adapter** fine-tuned from
|
| 19 |
**Qwen/Qwen3-4B-Instruct-2507** using **QLoRA (4-bit, Unsloth)**.
|
|
@@ -46,7 +46,7 @@ from peft import PeftModel
|
|
| 46 |
import torch
|
| 47 |
|
| 48 |
base = "Qwen/Qwen3-4B-Instruct-2507"
|
| 49 |
-
adapter = "
|
| 50 |
|
| 51 |
tokenizer = AutoTokenizer.from_pretrained(base)
|
| 52 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 13 |
- structured-output
|
| 14 |
---
|
| 15 |
|
| 16 |
+
qwen3-4b-structured-output-lora-tkan2
|
| 17 |
|
| 18 |
This repository provides a **LoRA adapter** fine-tuned from
|
| 19 |
**Qwen/Qwen3-4B-Instruct-2507** using **QLoRA (4-bit, Unsloth)**.
|
|
|
|
| 46 |
import torch
|
| 47 |
|
| 48 |
base = "Qwen/Qwen3-4B-Instruct-2507"
|
| 49 |
+
adapter = "tkan/qwen2"
|
| 50 |
|
| 51 |
tokenizer = AutoTokenizer.from_pretrained(base)
|
| 52 |
model = AutoModelForCausalLM.from_pretrained(
|
adapter_config.json
CHANGED
|
@@ -33,13 +33,13 @@
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
-
"
|
|
|
|
|
|
|
| 37 |
"down_proj",
|
|
|
|
| 38 |
"q_proj",
|
| 39 |
-
"
|
| 40 |
-
"k_proj",
|
| 41 |
-
"gate_proj",
|
| 42 |
-
"o_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
+
"gate_proj",
|
| 37 |
+
"up_proj",
|
| 38 |
+
"o_proj",
|
| 39 |
"down_proj",
|
| 40 |
+
"v_proj",
|
| 41 |
"q_proj",
|
| 42 |
+
"k_proj"
|
|
|
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"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 528550256
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea224c05722fa7b7acb2281b276b1d4c914191ea19079dd9b470af62f9c4b532
|
| 3 |
size 528550256
|