Views
No views yet
qwen3-sa-hi-think is a Sanskrit → Hindi Machine Translation model fine-tuned on top of Qwen3-4B, enhanced with Thinking Tokens to enable structured latent reasoning during translation.
The model was trained using LoRA (rank 32) on top of the thinking-enabled variant of Qwen3, allowing it to internally perform step-by-step reasoning before producing the final Hindi output.<think> tokens during SFT)alpha=1632k tokens)<think> ... </think>) during training.
These guide the model to produce hidden chain-of-thought reasoning internally, improving:<fill><fill>Base Model: Qwen3-4B-Thinking
LoRA Rank: 32
LoRA Dropout: 0.05
LoRA Target Modules: q_proj, k_proj, v_proj, o_proj
Batch Size: <fill>
Learning Rate: <fill>
Epochs: <fill>
Optimizer: AdamW
Scheduler: cosine
Framework: LLaMA-Factory
Reasoning Tokens: Enabled (+latent CoT)1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "sanganaka/qwen3-4B-sa-hi-think",
5 device_map="auto"
6)
7
8tokenizer = AutoTokenizer.from_pretrained("pretamray/qwen3-sa-hi-think")
9
10text = "कोन्वस्मिन्साम्प्रतं लोके गुणवान्कश्च वीर्यवान्"
11
12inputs = tokenizer(text, return_tensors="pt").to(model.device)
13out = model.generate(**inputs, max_new_tokens=120)
14print(tokenizer.decode(out[0], skip_special_tokens=True))