Downloads · 30 days
62
33% of all-time downloads
lqfdjbf32n/Qwen3-4B-Stage1
Qwen3-4B-Stage1 is a text generation model from lqfdjbf32n. 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.
A 4B parameter model fine-tuned on ~308k mixed samples covering general chat, instruction following, math, coding, and factual QA. This is Stage 1 of a multi-stage training pipeline built on top of Qwen3-4B.
Downloads · 30 days
62
33% of all-time downloads
All-time downloads
186
Public
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.5 GB · 82%
From the Hugging Face model README
A 4B parameter model fine-tuned on ~308k mixed samples covering general chat, instruction following, math, coding, and factual QA. This is Stage 1 of a multi-stage training pipeline built on top of Qwen3-4B.
| File | Description |
|---|---|
adapter_model.safetensors | LoRA adapter weights (unmerged) |
adapter_config.json | LoRA configuration |
qwen4b-s1-Q4_K_M.gguf | Quantized GGUF (Q4_K_M, ~2.4GB) |
tokenizer.json | Tokenizer |
| Dataset | Samples | Purpose |
|---|---|---|
| open-thoughts/OpenThoughts-114k | 113,957 | Reasoning / Chain-of-thought |
| teknium/OpenHermes-2.5 | 30,000 | General chat |
| HuggingFaceH4/ultrachat_200k | 30,000 | Conversation |
| WizardLM/WizardLM_evol_instruct_V2_196k | 20,000 | Instruction following |
| nvidia/OpenMathInstruct-2 | 50,000 | Math |
| AI-MO/NuminaMath-CoT | 20,000 | Math competition |
| hotpot_qa | 10,000 | Multi-hop QA |
| squad_v2 | 8,000 | Factual QA |
| trivia_qa | 5,000 | Factual QA |
| google-research-datasets/natural_questions | 5,000 | Factual QA |
| google-research-datasets/mbpp | 374 | Coding |
| iamtarun/python_code_instructions_18k_alpaca | 5,000 | Coding |
| bigcode/self-oss-instruct-sc2-exec-filter-50k | 10,000 | Coding |
Total: ~308k samples, 2 epochs
| Parameter | Value |
|---|---|
| LoRA rank | 64 |
| LoRA alpha | 64 |
| Learning rate | 1e-4 cosine |
| Epochs | 2 |
| Sequence length | 4096 |
| Batch size | 4 (effective 32) |
| Optimizer | adamw_8bit |
| Final loss | 0.4861 |
Trained on AMD Instinct MI300X (192GB VRAM), ROCm 6.2.4, Unsloth 2026.3.3, PyTorch 2.7.1+rocm6.2.4. Runtime: ~16.3 hours.
ollama run hf.co/lqfdjbf32n/Qwen3-4B-Stage1:Q4_K_M
llama-cli -m qwen4b-s1-Q4_K_M.gguf \
-p "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n<|im_start|>user\nYour question here<|im_end|>\n<|im_start|>assistant\n" \
-n 512
from unsloth import FastLanguageModel
from peft import PeftModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
"unsloth/Qwen3-4B",
max_seq_length=4096,
dtype=torch.bfloat16,
load_in_4bit=False,
)
model = PeftModel.from_pretrained(model, "lqfdjbf32n/Qwen3-4B-Stage1")
model = model.merge_and_unload()
| Model | Description |
|---|---|
| Qwen2.5-0.5B-ReasonChat | 0.5B edge model, reasoning + chat merged |
| Qwen3-4B-Stage1 | 4B general foundation (this model) |
| Qwen3-4B-Stage2 | 4B + Claude reasoning injection (coming soon) |