Upload LoRA adapter (README written by author)
Browse files- README.md +9 -9
- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
| 3 |
datasets:
|
| 4 |
-
-
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
license: apache-2.0
|
|
@@ -13,10 +13,10 @@ tags:
|
|
| 13 |
- structured-output
|
| 14 |
---
|
| 15 |
|
| 16 |
-
Qwen3-4b-
|
| 17 |
|
| 18 |
This repository provides a **LoRA adapter** fine-tuned from
|
| 19 |
-
**
|
| 20 |
|
| 21 |
This repository contains **LoRA adapter weights only**.
|
| 22 |
The base model must be loaded separately.
|
|
@@ -31,10 +31,10 @@ while intermediate reasoning (Chain-of-Thought) is masked.
|
|
| 31 |
|
| 32 |
## Training Configuration
|
| 33 |
|
| 34 |
-
- Base model:
|
| 35 |
- Method: QLoRA (4-bit)
|
| 36 |
-
- Max sequence length:
|
| 37 |
-
- Epochs:
|
| 38 |
- Learning rate: 1e-04
|
| 39 |
- LoRA: r=64, alpha=128
|
| 40 |
|
|
@@ -45,7 +45,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 45 |
from peft import PeftModel
|
| 46 |
import torch
|
| 47 |
|
| 48 |
-
base = "
|
| 49 |
adapter = "your_id/your-repo"
|
| 50 |
|
| 51 |
tokenizer = AutoTokenizer.from_pretrained(base)
|
|
@@ -59,7 +59,7 @@ model = PeftModel.from_pretrained(model, adapter)
|
|
| 59 |
|
| 60 |
## Sources & Terms (IMPORTANT)
|
| 61 |
|
| 62 |
-
Training data:
|
| 63 |
|
| 64 |
Dataset License: MIT License. This dataset is used and distributed under the terms of the MIT License.
|
| 65 |
Compliance: Users must comply with the MIT license (including copyright notice) and the base model's original terms of use.
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: Qwen/Qwen3-4B-Instruct-2507
|
| 3 |
datasets:
|
| 4 |
+
- u-10bei/structured_data_with_cot_dataset_512_v2
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
license: apache-2.0
|
|
|
|
| 13 |
- structured-output
|
| 14 |
---
|
| 15 |
|
| 16 |
+
Qwen3-4b-structured-SFT
|
| 17 |
|
| 18 |
This repository provides a **LoRA adapter** fine-tuned from
|
| 19 |
+
**Qwen/Qwen3-4B-Instruct-2507** using **QLoRA (4-bit, Unsloth)**.
|
| 20 |
|
| 21 |
This repository contains **LoRA adapter weights only**.
|
| 22 |
The base model must be loaded separately.
|
|
|
|
| 31 |
|
| 32 |
## Training Configuration
|
| 33 |
|
| 34 |
+
- Base model: Qwen/Qwen3-4B-Instruct-2507
|
| 35 |
- Method: QLoRA (4-bit)
|
| 36 |
+
- Max sequence length: 512
|
| 37 |
+
- Epochs: 2
|
| 38 |
- Learning rate: 1e-04
|
| 39 |
- LoRA: r=64, alpha=128
|
| 40 |
|
|
|
|
| 45 |
from peft import PeftModel
|
| 46 |
import torch
|
| 47 |
|
| 48 |
+
base = "Qwen/Qwen3-4B-Instruct-2507"
|
| 49 |
adapter = "your_id/your-repo"
|
| 50 |
|
| 51 |
tokenizer = AutoTokenizer.from_pretrained(base)
|
|
|
|
| 59 |
|
| 60 |
## Sources & Terms (IMPORTANT)
|
| 61 |
|
| 62 |
+
Training data: u-10bei/structured_data_with_cot_dataset_512_v2
|
| 63 |
|
| 64 |
Dataset License: MIT License. This dataset is used and distributed under the terms of the MIT License.
|
| 65 |
Compliance: Users must comply with the MIT license (including copyright notice) and the base model's original terms of use.
|
adapter_config.json
CHANGED
|
@@ -33,13 +33,13 @@
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
-
"
|
|
|
|
| 37 |
"k_proj",
|
| 38 |
"q_proj",
|
| 39 |
"gate_proj",
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"down_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 33 |
"rank_pattern": {},
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
+
"v_proj",
|
| 37 |
+
"up_proj",
|
| 38 |
"k_proj",
|
| 39 |
"q_proj",
|
| 40 |
"gate_proj",
|
| 41 |
+
"down_proj",
|
| 42 |
+
"o_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:c3696f3d1b2152b443b93a205ab84291ac80a96ddfb47a4863623fa77391071c
|
| 3 |
size 528550256
|