Downloads · 30 days
10
14% of all-time downloads
Chokun00032/gemma-1b-pruned-th
gemma-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 google/gemma-3-4b (unsloth mirror) for Thai.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
72
Public
Repo size
10.8 GB
Likes
0
Public
Click a slice to open those files.
.bin5.4 GB · 99%
From the Hugging Face model README
Depth-pruned (layer dropping) + healing SFT of google/gemma-3-4b (unsloth mirror) for Thai.
google/gemma-3-4b (unsloth mirror)transformers>=4.50, accelerateimport torch
from transformers import AutoModelForCausalLM, AutoTokenizer
m = "Chokun00032/gemma-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.