Downloads · 30 days
4
11% of all-time downloads
talzoomanzoo/qwen3-4b-base-rewrite-sft-32k
qwen3-4b-base-rewrite-sft-32k is a text generation model from talzoomanzoo. Use it when you need the model to write or continue text. It is set up for peft.
LoRA adapter from SFT on self-rewritten reasoning traces at 32k context, trained on Qwen/Qwen3-4B-Base.
Downloads · 30 days
4
11% of all-time downloads
All-time downloads
38
Public
Repo size
529 MB
Likes
0
Public
Click a slice to open those files.
.safetensors529 MB · 100%
From the Hugging Face model README
LoRA adapter from SFT on self-rewritten reasoning traces at 32k context, trained on Qwen/Qwen3-4B-Base.
Checkpoint: step 626 (2 epochs).
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen3-4B-Base"
adapter = "talzoomanzoo/qwen3-4b-base-rewrite-sft-32k"
tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base, torch_dtype="auto", device_map="auto", trust_remote_code=True
)
model = PeftModel.from_pretrained(model, adapter)