Downloads · 30 days
4
9% of all-time downloads
talzoomanzoo/qwen3-4b-base-distill-sft-32k
qwen3-4b-base-distill-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 offline distillation SFT at 32k context on Qwen/Qwen3-4B-Base.
Downloads · 30 days
4
9% of all-time downloads
All-time downloads
46
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 offline distillation SFT at 32k context on Qwen/Qwen3-4B-Base.
Checkpoint: step 298.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "Qwen/Qwen3-4B-Base"
adapter = "talzoomanzoo/qwen3-4b-base-distill-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)