Downloads · 30 days
14
5% of all-time downloads
yuk1chan/qwen3-4b-structeval-strategy7-baseline-yamlxml-lr6e-6
qwen3-4b-structeval-strategy7-baseline-yamlxml-lr6e-6 is a text generation model from yuk1chan. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This repository provides a LoRA adapter fine-tuned from Qwen/Qwen3-4B-Instruct-2507 using QLoRA (4-bit, Unsloth).
Downloads · 30 days
14
5% of all-time downloads
All-time downloads
280
Public
Repo size
144 MB
Likes
0
Public
Click a slice to open those files.
.safetensors132 MB · 90%
From the Hugging Face model README
This repository provides a LoRA adapter fine-tuned from Qwen/Qwen3-4B-Instruct-2507 using QLoRA (4-bit, Unsloth).
This adapter is trained to improve structured output accuracy (JSON / YAML / XML / TOML / CSV).
Strategy 7: Baseline Return + YAML/XML Pure Increase 🔥
Baseline Success (0.80195):
Problem with Strategy 2 Revised (0.82286):
Strategy 3 & 4 Failure:
1. Revert to Baseline's daichira level
2. Pure YAML/XML increase
3. Maintain TOML 14% ratio
<thinking>...</thinking> completely removedyaml, json, xml, toml, ````csv removedTotal: ~26,000 samples
daichira系(1.0x - Baseline level):
u-10bei系(YAML/XML強化):
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = "Qwen/Qwen3-4B-Instruct-2507"
adapter = "yuk1chan/qwen3-4b-structeval-strategy7-baseline-yamlxml-lr6e-6"
tokenizer = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(
base,
torch_dtype=torch.float16,
device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter)
# Inference
prompt = "Generate YAML code for..."
# ... your inference code
Key Insights:
Baseline's TOML 100% Success:
Why Strategy 2/3/4 Failed:
Strategy 7 Design:
| Aspect | Baseline | Strategy 2 | Strategy 7 |
|---|---|---|---|
| daichira boost | 1.0x | 2.0x | 1.0x |
| TOML ratio | 14% | 10% | 14% |
| TOML absolute | 2,800 | 2,600 | 3,640 |
| TOML score | 100% | 76% | 95-98% |
| YAML ratio | 35% | 45% | 50% |
| YAML score | 91.4% | 97.1% | 95-97% |
| Overall | 0.80195 | 0.82286 | 0.840-0.860 |
Expected Improvements:
Risk Analysis:
Apache 2.0
Trained on Baseline Return + YAML/XML Boost StructEval dataset Learning Rate: 6e-6 (proven setting from 0.82286) Strategy: daichira 1.0x (Baseline) + u-10bei 1.3-2.0x (YAML/XML boost) TOML ratio: 14% (same as Baseline)