Sarvam-1 Multilingual Instruct
Sarvam 1 , 2B text completion model now instruction fine tuned on 5 languages.
This checkpoint continues ShubhWorking/sarvam-1-smoltalk-instruct with supervised fine-tuning on 90,000 Microsoft Updesh conversations and data from Smoltalk for English. The data contains 30,000 examples each in Hindi, Tamil, and Bengali, in two successive rounds of 15,000 per language. Each round balances creative writing, dialogue generation, and summarization.
Both rounds used full-parameter fine-tuning, two A100 80 GB GPUs with PyTorch DDP, BF16 computation, microbatch 4 per GPU, gradient accumulation 4, global batch 32, learning rate 3e-5, 40 warmup updates, cosine decay, and activation checkpointing. The native Sarvam chat template and assistant-only supervision were used, with a maximum sequence length of 8,192 tokens.
Evaluation
These exploratory comparisons use the same 100 seeded examples per language for the starting instruction checkpoint and this checkpoint. The evaluator uses a zero-shot instruction-formatted prompt and ranks answer texts by summed conditional log-likelihood. The scores are sample accuracies, and the small samples have substantial uncertainty. They use a different protocol from Sarvam's published base-model results.
| Benchmark | Language | Starting checkpoint | This checkpoint | Change |
|---|---|---|---|---|
| MMLU | Hindi | 22% | 31% | +9 percentage points |
| MMLU | Bengali | 22% | 26% | +4 percentage points |
| TriviaQA | Hindi | 38% | 44% | +6 percentage points |
| TriviaQA | Tamil | 29% | 45% | +16 percentage points |
Loading
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ShubhWorking/sarvam-1-multilingual-instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
- Downloads last month
- 38
Model tree for ShubhWorking/sarvam-1-multilingual-instruct
Base model
sarvamai/sarvam-1