Downloads · 30 days
2
3% of all-time downloads
Chokun00032/qwen-1b-pruned-th
qwen-1b-pruned-th is a text generation model from Chokun00032. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Depth-pruned (layer dropping) + healing SFT of Qwen2.5-3B for Thai.
Downloads · 30 days
2
3% of all-time downloads
All-time downloads
58
Public
Parameters
1.7B
3.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
Depth-pruned (layer dropping) + healing SFT of Qwen2.5-3B for Thai.
Qwen2.5-3Btransformers>=4.44, accelerateimport torch
from transformers import AutoModelForCausalLM, AutoTokenizer
m = "Chokun00032/qwen-1b-pruned-th"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForCausalLM.from_pretrained(m, torch_dtype=torch.bfloat16, device_map="cuda")
ids = tok("ปัญญาประดิษฐ์ คือ", return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=120, do_sample=True,
temperature=0.7, top_p=0.9, repetition_penalty=1.3)
print(tok.decode(out[0], skip_special_tokens=True))
repetition_penalty>=1.2 to avoid loops.