GanitLLM
Collection
14 items
•
Updated
GanitLLM-4B_SFT_CGRPO is our flagship Bengali mathematical reasoning model trained using the novel Curriculum-GRPO approach. Key improvements over the base Qwen3-4B model:
| Property | Value |
|---|---|
| Model Type | Causal Language Model |
| Base Model | Qwen/Qwen3-4B |
| Parameters | 4B |
| Training | SFT + Curriculum-GRPO |
| Context Length | 4,096 tokens |
| Language | Bengali, English |
This model was trained using our multi-stage pipeline:
<think> and <answer> tag structurefrom transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "dipta007/GanitLLM-4B_SFT_CGRPO"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
problem = "একটি দোকানে ১২টি আপেল আছে। যদি ৫টি আপেল বিক্রি হয়, তাহলে কতটি আপেল বাকি থাকবে?"
prompt = f"""A conversation takes place between the user and the assistant. The user asks a question, and the assistant solves the problem. Please reason step by step in Bengali, and put your final answer in the <answer> </answer> tags.
Question: {problem}"""
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(**model_inputs, max_new_tokens=2048, temperature=0.7)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
response = tokenizer.decode(output_ids, skip_special_tokens=True)
print(response)
vllm serve dipta007/GanitLLM-4B_SFT_CGRPO --max-model-len 4096
| Model | Bn-MGSM | Bn-MSVAMP | Avg. Words | Bengali % |
|---|---|---|---|---|
| Qwen3-4B (base) | 69.20 | 70.50 | 943 | 14.79% |
| GanitLLM-4B_SFT_CGRPO | 76.80 | 76.40 | 193 | 88.71% |
| Model | Parameters | Training | Link |
|---|---|---|---|
| GanitLLM-4B_SFT_CGRPO | 4B | SFT + CGRPO | Link |
| GanitLLM-4B_SFT_GRPO | 4B | SFT + GRPO | Link |
| GanitLLM-4B_CGRPO | 4B | CGRPO | Link |
| GanitLLM-1.7B_SFT_CGRPO | 1.7B | SFT + CGRPO | Link |
| GanitLLM-0.6B_SFT_CGRPO | 0.6B | SFT + CGRPO | Link |
will be updated
This model is released under the Apache 2.0 License.