Views
No views yet
Qwen/Qwen3-4B-Instruct-2507 (base)
|
v
SFT via QLoRA (4-bit, Unsloth)
- Objective: structured output accuracy (JSON / YAML / XML / TOML / CSV)
- Adapter: GawinGowin/lora-struct-output (private)
|
v
Merge adapter into full weights -> this model
|
v
DPO -> GawinGowin/dpo-struct-output-sfted| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen3-4B-Instruct-2507 |
| Method | QLoRA (4-bit) + Unsloth |
| Training objective | Structured output (JSON / YAML / XML / TOML / CSV) |
| Dataset | u-10bei/structured_data_with_cot_dataset_512_v2 |
| Max sequence length | 512 |
| Epochs | 1 |
| Learning rate | 1e-6 |
| LoRA r / alpha | 64 / 128 |
| CoT Masking | Enabled (loss applied after Output: marker only) |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4# Use the DPO model for inference
5model_id = "GawinGowin/dpo-struct-output-sfted"
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id, torch_dtype=torch.float16, device_map="auto",
9)