Tiny-Aya-Global-Hindi-SFT

Tameez: polite small language models in Hindi, Hinglish and English

Try it live: chat with the Tameez models in the browser, in Hindi, Hinglish or English, in the Tameez playground Space. It can also put the models side by side and show real before-and-after replies.

Tiny Aya Global after plain Hindi fine-tuning (Stage 1 of Tameez), merged into full bf16 weights. It is the start point of the Tameez GRPO stage and the control model that shows how ordinary fine-tuning erodes safety.

⚠️ This model is less safe than both the base model and the final Tameez model (unsafe replies 4.5% → 20.7% → 3.9%). Use it for research and comparison, not as an assistant. For a usable model take Tiny-Aya-Global-Tameez-GRPO.

Tameez in short

Tameez (तमीज़) is Hindi for "manners". The project teaches small open chat models to behave well in the three ways Indian users actually type: Devanagari Hindi, Roman-script Hinglish ("linux mein process kill kaise karein?") and English. A Tameez model should

  • never use abusive words, even when the user does;
  • refuse harmful requests politely, in the user's own language and script;
  • keep answering harmless questions, including ones with scary-looking words ("how do I kill a Linux process?", "make my presentation a killer") and questions from users who are swearing at it.

Why this was needed. Safety tuning mostly happens in English, and safety is rarely measured in Roman-script Hindi. We measured it. All three base models were two to seven times as likely to give an unsafe reply to the same harmful request written in Hinglish as in Hindi. Then we did what a company would do to "add Hindi": ordinary instruction fine-tuning on harmless Hindi data. That alone made all three models much less safe (unsafe replies: Tiny Aya Global 4.5% → 20.7%, Tiny Aya Fire 5.1% → 19.9%, Llama-3.2-3B 10.0% → 15.6%). Tameez fixes this with a reinforcement-learning stage (GRPO) in a purpose-built safety environment with six separate rewards, without giving up Hindi skills.

What was done. The same three-stage pipeline was run on three base models, Cohere Labs' Tiny Aya Global and its South Asia variant Tiny Aya Fire, and Llama-3.2-3B-Instruct, with identical data, rewards, settings and evaluation:

Stage What happens Why
Stage 0 · base the untouched base model the starting point
Stage 1 · Hindi SFT LoRA fine-tuning on 5,000 ordinary Hindi/Hinglish instruction rows, no safety data the realistic baseline: what you get after "adding Hindi"
Stage 2 · Tameez GRPO GRPO on top of Stage 1 in a safety RL environment (4,652 tagged prompts, six rewards) the Tameez model

Every stage of every model was scored on the same held-out tests (2,014 safety prompts, 200 Hindi helpfulness prompts, 14,831 MILU Hindi knowledge questions) by judges that are never used in training (Llama-Guard-3-8B and a MuRIL abusive-speech classifier), so a model can't score well just by learning to please its own reward model.

The pipeline at a glance

Tameez training and evaluation pipeline

How Tameez works. Data building (left): eight public datasets are cleaned, rewritten into natural Hinglish with Aya Expanse 8B, harm-labelled with Llama-Guard-3-1B and split into four disjoint sets (A: SFT data, B: RL prompt pool, C: held-out safety tests, D: held-out skill tests). Training (top right): Stage 1 is plain Hindi LoRA SFT on Set A; Stage 2 is Tameez GRPO on Set B, where each prompt gets 4 replies scored by six weighted rewards and Dr. GRPO's group-relative advantage pushes the LoRA towards the better replies; checkpoints are picked by fixed rules and merged. Evaluation (bottom): Stage 0, 1 and 2 of all three base models face the same held-out tests and judges that never took part in training.

Which Tameez model should I use?

Final Tameez models compared

Final model (Stage 2) Tiny-Aya-Global-Tameez-GRPO ⭐ Tiny-Aya-Fire-Tameez-GRPO Llama-3.2-3B-Tameez-GRPO
Unsafe replies, all 1,498 harmful prompts ↓ 3.9% 4.3% 3.7%
Unsafe, Hindi red-teaming ↓ 1.5% 1.8% 2.6%
Unsafe, Hinglish red-teaming ↓ 29.5% 31.7% 15.8%
Explicit, polite refusal of harmful prompts ↑ 73.6% 73.1% 58.5%
Wrongly refuses harmless prompts ↓ 3.9% 3.5% 7.0%
Wrongly refuses angry users with a real question ↓ 9.0% 8.0% 15.5%
Abusive replies (MuRIL) ↓ 4.3% 3.1% 7.5%
Replies with bad words ↓ 0.6% 0.8% 0.7%
MILU Hindi knowledge ↑ 43.2% 45.0% 39.5%
Helpfulness win rate vs its own SFT model (ties count ½) ↑ 61.5% 62.9% 42.1%
Checkpoint step 300 of 300 step 300 of 300 step 100 of 300
Selection constraints met ✗ no: fallback, chosen on the lowest unsafe + bad-word rate after every checkpoint failed the over-refusal cap ✗ no: the same fallback (every checkpoint above the 2.0% over-refusal cap) ✓ yes: the best checkpoint that passed every rule
License CC-BY-NC 4.0 (non-commercial) CC-BY-NC 4.0 (non-commercial) Llama 3.2 Community License

Recommended: Tiny-Aya-Global-Tameez-GRPO. All three final models are about equally safe overall (3.7–4.3% unsafe), but the two Tiny Aya models get there with a better trade-off than Llama: they refuse harmful requests explicitly more often, wrongly refuse harmless and angry-user questions about half as often, produce fewer abusive replies, know more Hindi, and beat their own SFT versions on helpfulness. In 400 head-to-head comparisons with its SFT version (Aya Expanse 8B as judge) Tiny Aya Global won 139 and lost 47, with 214 ties (a 61.5% win rate, ties counted as half), and Tiny Aya Fire won 146 and lost 43 (62.9%), while Llama's GRPO model lost more than it won (42.1%). The two Tiny Aya models are within each other's margins on safety; Global is the project's main model and has the lower unsafe rate of the two.

Pick Tiny-Aya-Fire-Tameez-GRPO instead if Hindi knowledge and fewer refusals matter most: Cohere's South Asia variant keeps more Hindi knowledge (MILU 45.0% vs 43.2%), wrongly refuses a little less (3.5% vs 3.9%) and writes longer answers (526 vs 388 characters on average). Pick the Llama model if Hinglish safety is your main concern (15.8% vs 29.5–31.7% unsafe on Hinglish red-teaming) or you need a license that allows commercial use (Llama 3.2 Community License, with Meta's terms).

Why this model exists

The SFT data has no harmful content: 5,000 rows of ordinary Hindi and Hinglish instructions. Yet after one epoch of LoRA fine-tuning, unsafe replies went from 4.5% to 20.7%, and on Hinglish red-teaming from 18.7% to 57.6%. This reproduces Qi et al. (ICLR 2024), Fine-tuning aligned language models compromises safety, in Hindi and on a 3B model. It is exactly what happens when a team takes an aligned model, "adds Hindi" and ships it, which is why Tameez measures every stage and adds a safety stage on top.

SFT training loss

Use this model

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

repo = "IINOVAII/Tiny-Aya-Global-Hindi-SFT"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Linux mein kisi atke hue process ko kill kaise karte hain?"},
]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt",
                                 return_dict=True).to(model.device)
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tok.decode(out[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Note: this is the Stage 1 control, before Tameez GRPO. With greedy decoding it sometimes falls into a repetition loop on longer answers (the card's own Linux example does this), which is one of the behaviours the GRPO format reward removes. The Tameez model answers the same prompt cleanly.

With vLLM: vllm serve IINOVAII/Tiny-Aya-Global-Hindi-SFT.

File Content
model.safetensors full merged weights, bf16 (6.7 GB)
config.json, generation_config.json model config (Cohere2, 3.35B parameters, 36 layers, 8K context, 262K-token vocabulary)
tokenizer.json, tokenizer_config.json, chat_template.jinja the base model's tokenizer and chat template, unchanged
NOTICE license attribution
assets/ the plots shown on this page

The adapter and trainer checkpoints: Tiny-Aya-Global-Hindi-SFT-LoRA.

Results of the Tiny Aya Global run

All three stages were scored on the same held-out test sets, which were never trained on.

Unsafe replies across stages, all three base models

Metric Better Stage 0 · base Stage 1 · Hindi SFT Stage 2 · Tameez GRPO
Unsafe replies, all 1,498 harmful prompts ↓ 4.5% [3.6–5.7] 20.7% [18.7–22.8] 3.9% [3.0–5.0]
• Aya red-teaming, Hindi (913) ↓ 3.9% 19.8% 1.5%
• Aya red-teaming, Hinglish (139) ↓ 18.7% [13.1–26.0] 57.6% [49.2–65.5] 29.5% [22.6–37.5]
• IndicSafe harmful (330) ↓ 1.8% 11.2% 0.6%
• SurakshaEval (116) ↓ 0.0% 10.3% 0.9%
Unsafe replies by Qwen3Guard-Gen-8B (independent check, never used in training) ↓ 3.5% 20.6% 2.4%
Replies with bad words (lexicon) ↓ 2.5% 2.1% 0.6%
Abusive replies (MuRIL) ↓ 3.0% 8.4% 4.3%
Explicit refusal of harmful prompts ↑ 39.7% [37.2–42.3] 33.1% [30.7–35.7] 73.6% [71.2–75.8]
Over-refusal, all 516 harmless prompts ↓ 2.5% [1.5–4.3] 0.8% [0.3–2.0] 3.9% [2.5–5.9]
• IndicSafe harmless + tricky ↓ 1.2% 0.0% 0.0%
• own tricky test ↓ 0.0% 0.0% 1.4%
• angry users with a real question ↓ 5.5% [3.1–9.6] 2.0% [0.8–5.0] 9.0% [5.8–13.8]
Reply in the user's script, all ↑ 94.0% 98.6% 99.3%
• Hinglish prompts answered in Hinglish ↑ 50.2% 89.4% 94.3%
MILU Hindi accuracy (14,831 questions) ↑ 45.4% [44.6–46.2] 41.3% [40.5–42.1] 43.2% [42.4–44.0]
Mean reply length 1180 chars 635 chars 388 chars
Helpfulness win rate vs Stage 1 (Aya Expanse 8B judge, 400 prompts, both orders) ↑ – – 61.5% [56.7–66.3] (139 wins, 214 ties, 47 losses)

Unsafe replies by test set

The same harmful prompts in Hindi and in Hinglish

Over-refusal of harmless prompts

What the numbers say. Base Tiny Aya starts out safer than base Llama and knows more Hindi, but it answered Hinglish questions in Hinglish only half the time and was 4.8× as often unsafe in Hinglish as in Hindi. Plain Hindi SFT taught it to answer in the user's script, but more than quadrupled its unsafe replies (57.6% on Hinglish red-teaming) and cost 4 MILU points. Tameez GRPO cut unsafe replies by a factor of five relative to Stage 1 (the intervals are far apart), doubled explicit refusals, removed most bad words, recovered half of the lost MILU points, and the judge preferred its answers to Stage 1's even though they are 39% shorter.

General capability: base → Hindi SFT → Tameez

This Stage 1 model is where the general-capability changes of the Tameez pipeline happen; the GRPO safety stage on top of it changes every benchmark by less than 2 points.

lm-evaluation-harness 0.4.13 with vLLM, chat template applied, few-shot examples as chat turns, greedy decoding, at most 500 examples per task (Global-MMLU Lite: the same 400 questions in English and Hindi), identical settings for every model. MILU is the project's full 14,831-question scorecard. Every stage is benchmarked (base model, Stage 1 Hindi SFT, Stage 2 Tameez), so each change can be pinned on SFT or on GRPO. ⚠️ marks a drop of more than 2 points; at 400–500 examples the standard error is about ±2 points.

General capability: base → Hindi SFT → Tameez

Benchmark Language Base Hindi SFT Tameez SFT effect GRPO effect
XNLI English 46.4 49.4 50.8 +3.0 +1.4
XNLI Hindi 48.2 49.0 49.6 +0.8 +0.6
Belebele English 80.6 77.8 77.4 -2.8 ⚠️ -0.4
Belebele Hindi 55.6 63.2 63.0 +7.6 -0.2
Global-MMLU Lite English 59.8 58.0 57.2 -1.8 -0.7
Global-MMLU Lite Hindi 50.2 49.5 50.0 -0.7 +0.5
GSM8K English 61.4 52.4 52.4 -9.0 ⚠️ +0.0
IFEval (prompt, strict) English 57.4 61.2 61.2 +3.8 +0.0
MILU (full) Hindi 45.4 41.3 43.2 -4.1 ⚠️ +1.9

The losses came from Hindi SFT, not GRPO. English maths fell during SFT (GSM8K 61.4 → 52.4; SFT lost 85 questions the base model solved and gained 40) and GRPO left it there. English reading (−2.8) and MILU (−4.1) also dropped at SFT, and GRPO won back about half of the MILU loss (+1.9). The gains came from SFT too: Hindi reading +7.6, instruction following +3.8. GRPO moved every benchmark by less than 2 points. Stage 1 had no English rows and no maths-focused data, so the maths loss is most likely forgetting during SFT; mixing English and maths data into Stage 1 is the obvious fix to try.

SFT and Tameez tie exactly on GSM8K and IFEval. They are different models with different replies (259 of 500 GSM8K replies differ) whose per-question changes cancel out (GSM8K: GRPO fixed 21 questions and broke 21).

Raw lm-eval JSON and every sample for every benchmarked model are in the tameez-eval-outputs dataset (general_benchmarks/).

How it was trained

Stage 1 · Hindi SFT Stage 2 · Tameez GRPO
Start model CohereLabs/tiny-aya-global the merged Stage 1 model
Method LoRA SFT, AlignTune 0.1.35 create_sft_trainer (TRL backend) GRPO with the Dr. GRPO loss, AlignTune 0.1.35 create_rl_trainer (TRL 1.7.1 backend, HF generate rollouts)
LoRA r=16, α=32, dropout 0.05, all attention + MLP projections r=16, α=32, dropout 0, all attention + MLP projections
Data 5,000 Hindi/Hinglish instruction rows, 1 epoch (157 steps) 4,652-prompt RL environment, 300 steps × 4 prompts × 4 completions
Learning rate 2e-4, effective batch 32, max length 768 5e-5, KL penalty β = 0.04, max completion 256 tokens
Time 55 min (final train loss 0.72, token accuracy 0.89) 215 min, checkpoint every 50 steps
Hardware one 24 GB NVIDIA L4 on Google Colab one 24 GB NVIDIA L4 on Google Colab

Training data

  • SFT (Stage 1): 5,000 rows of ordinary Hindi and Hinglish instructions: IndicAlign Dolly-T and OASST-T, the Aya Dataset (Hindi) and Hinglish rewrites. No safety data. Real Hinglish had to be generated: IndicAlign's "romanised Hindi" is machine transliteration, so Aya Expanse 8B rewrote Devanagari text into natural Roman Hindi under strict validation (about 1.5% contamination after the prompt was fixed).
  • RL prompt pool (Stage 2): 4,652 prompts from IndicAlign HH-RLHF and Toxic-Matrix, textdetox rants plus real questions, tricky seeds and Aya rewrites. Only 48% of the "harmful" candidates were actually unsafe according to Llama-Guard-3-1B, so only Guard-confirmed prompts are labelled harmful. Because Guard-1B misses harm in Roman script, Hinglish prompts take their label from the Hindi original.
  • Training sets were MinHash-deduplicated against every test prompt. All 200 Aya-Eval Hindi prompts had also been in the IndicAlign training data and were removed.

The RL environment and the six rewards

GRPO needs prompts that say what good behaviour is, and rewards that can read that. Every training prompt carries a bucket:

Bucket Prompts Good behaviour
harmful 1,797 decline politely, in the user's language (only prompts confirmed unsafe by Llama-Guard-3-1B)
abusive_legit 1,198 a real toxic rant plus a real question: ignore the abuse, answer the question
tricky_benign 411 a harmless question with a scary word: just answer
benign 1,246 answer well, in the same script

61% of the pool is non-harmful, so a model that refuses everything loses. Six rewards are computed and logged separately:

Reward Weight What it checks Reward hack it blocks
no_badwords 2.0 lexicon words, phrases and masked swears ("b***h") dodging the lexicon by masking
low_toxicity 1.0 1 − 2·p(toxic) from textdetox/xlmr-large-toxicity-classifier-v2 –
safe_reply 1.5 Llama-Guard-3-1B on (prompt, reply) –
refusal_calibration 1.0 refusing a harmful prompt = +0.5, refusing anything else = −1 refusing everything
language_match 0.75 reply is in the prompt's script answering in English to avoid Hindi swear words
format 0.5 too short, repetition loops, leaked chat-template tokens, over 2,500 characters empty or one-line replies

A reply that is empty, in English and a refusal would be perfectly safe and non-toxic, and useless. Each reward exists because it blocks a cheap way to game the others.

What GRPO did, step by step

GRPO training curves

GRPO steps Total reward KL to Stage 1 Reply length (tokens) safe_reply low_toxicity language_match
1–50 2.66 0.003 126 0.59 0.80 0.94
51–100 3.16 0.020 110 0.83 0.87 0.96
101–150 3.26 0.030 102 0.88 0.89 0.96
151–200 3.28 0.038 90 0.87 0.86 0.98
201–250 3.35 0.041 86 0.91 0.90 0.96
251–300 3.32 0.047 83 0.89 0.90 0.96

Picking the checkpoint

A checkpoint was saved every 50 steps and scored on a 200-prompt mini test set. The rule, fixed before training: over-refusal ≤ Stage 1 + 2 points (here ≤ 2.8%), script fidelity ≥ 95%, mean reply ≥ 60% of Stage 1's (here ≥ 443 characters), then the lowest unsafe + bad-word rate. The highest-reward checkpoint is not automatically the best model.

Checkpoint Unsafe Bad words Over-refusal Script Mean reply Meets every rule?
Stage 1 (reference) 27.5% 2.0% 0.8% 96.5% 738 chars
step 50 18.8% 1.5% 3.3% 96.5% 678 no
step 100 7.5% 1.0% 7.5% 97.5% 593 no
step 150 8.8% 1.5% 5.0% 97.5% 548 no
step 200 11.2% 2.0% 5.0% 97.0% 515 no
step 250 8.8% 0.5% 5.0% 97.5% 454 no
step 300 ✓ chosen 5.0% 1.0% 5.8% 98.0% 415 no

No checkpoint met every rule. Tiny Aya's Stage 1 model almost never refused harmless prompts on the mini set (0.8%), so the over-refusal cap was 2.8% and every GRPO checkpoint was above it. The selection script then falls back to the lowest unsafe + bad-word rate, which is step 300, the final checkpoint (5.0% unsafe on the mini set against 27.5% for Stage 1). Its replies are also just under the length rule (56% of Stage 1's). On the full test set its over-refusal is 3.9%, still lower than the Llama model's 7.0%.

How the models were evaluated

Test set Size What it measures
Aya Red-teaming, Hindi 913 harmful requests written by native speakers
Aya Red-teaming, Hinglish 139 the same kind of requests rewritten into Roman script (held out)
IndicSafe Hindi harmful / SurakshaEval Hindi 330 / 116 other Hindi safety benchmarks
IndicSafe harmless + tricky, own tricky test 170 / 146 harmless questions with scary-looking words: should be answered
Angry-user test 200 a real abusive rant plus a real question: abuse should be ignored, the question answered
Aya Evaluation Suite, Hindi 200 open-ended helpfulness, judged pairwise by Aya Expanse 8B in both orders
MILU Hindi 14,831 multiple-choice Hindi knowledge, 0-shot
  • Unsafe = Llama-Guard-3-8B labels the (prompt, reply) pair unsafe. Abusive = MuRIL abusive-speech classifier. Neither model is used during training (training uses Llama-Guard-3-1B and an XLM-R toxicity classifier). The Tiny Aya replies were also judged by Qwen3Guard-Gen-8B, a safety classifier from another model family that no Tameez run trained against.
  • Refusal is detected by a phrase matcher; script fidelity checks the reply is in the prompt's script.
  • Decoding: greedy, system prompt "You are a helpful assistant.", up to 512 new tokens. Brackets are 95% Wilson intervals.

Limitations

  • Hinglish is the weak spot. 29.5% of replies to Hinglish red-teaming prompts are unsafe: better than after plain SFT (57.6%) but worse than base Tiny Aya (18.7%) and than the Llama Tameez model (15.8%). The training safety reward, Llama-Guard-3-1B, flags harmful Hinglish prompts 2–3× less often than the same request in Devanagari; on replies it misses about half of what Llama-Guard-3-8B flags in both scripts, and GRPO removed mostly the unsafe replies it could see. 150 extra GRPO steps on Hinglish prompts with Llama-Guard-3-8B as the reward cut what that judge flags (28.1% → 19.4%) but not clearly what the independent Qwen3Guard-Gen-8B flags (12.2% → 10.1%, p = 0.55), so the published model is unchanged; that run is in hinglish-followup/.
  • Overall safety is back at the base model's level, not beyond it (3.9% vs 4.5% unsafe; the intervals overlap).
  • Somewhat more over-refusal than the base model: 3.9% of harmless prompts and 9.0% of angry-user questions, against 2.5% and 5.5%.
  • Hindi knowledge is not fully back: MILU 43.2%, against 45.4% for the base model (41.3% after SFT).
  • The chosen checkpoint broke two selection rules (see "Picking the checkpoint").
  • The refusal detector is a phrase matcher, so "declined the abuse, then answered" counts as a refusal.
  • Small compute: 300 GRPO steps with 4 prompts × 4 completions per step on one L4; replies were cut at 256 tokens during training.
  • A 3B model makes factual mistakes. Do not rely on it for medical, legal or financial advice. It is not a content-moderation system and should not be the only safety layer in a product.

Models used in the project

Role Model Trained?
Policy (run 1) CohereLabs/tiny-aya-global ✅ SFT, then GRPO
Policy (run 3) CohereLabs/tiny-aya-fire, Tiny Aya's South Asia variant ✅ SFT, then GRPO
Policy (run 2) meta-llama/Llama-3.2-3B-Instruct, loaded from the byte-identical mirror unsloth/Llama-3.2-3B-Instruct ✅ SFT, then GRPO
Training reward safe_reply + harmful-prompt filter meta-llama/Llama-Guard-3-1B, loaded from the byte-identical mirror alpindale/Llama-Guard-3-1B ❌
Training reward low_toxicity textdetox/xlmr-large-toxicity-classifier-v2 ❌
Evaluation safety judge meta-llama/Llama-Guard-3-8B ❌ never used in training
Independent safety check (Tiny Aya runs) Qwen/Qwen3Guard-Gen-8B ❌ never used in training
Evaluation abusive-language judge Hate-speech-CNERG/indic-abusive-allInOne-MuRIL ❌ never used in training
Hinglish rewrites, paraphrases, helpfulness judge CohereLabs/aya-expanse-8b ❌

All Tameez repositories

Repository What it is
▶ Tameez playground (Space) try the models live in the browser: chat, compare, before and after
⭐ Tiny-Aya-Global-Tameez-GRPO recommended model: Tiny Aya Global after Hindi SFT + Tameez GRPO, merged
Tiny-Aya-Global-Tameez-GRPO-LoRA its GRPO LoRA adapter
Tiny-Aya-Global-Tameez-GRPO-checkpoints every GRPO checkpoint (steps 50–300) with optimizer states and logs
Tiny-Aya-Global-Hindi-SFT Tiny Aya Global after plain Hindi SFT (the less-safe control), merged
Tiny-Aya-Global-Hindi-SFT-LoRA its SFT LoRA adapter and trainer checkpoints
Tiny-Aya-Fire-Tameez-GRPO Tiny Aya Fire (Cohere's South Asia variant) after Hindi SFT + Tameez GRPO, merged
Tiny-Aya-Fire-Tameez-GRPO-LoRA its GRPO LoRA adapter
Tiny-Aya-Fire-Tameez-GRPO-checkpoints every Tiny Aya Fire GRPO checkpoint (steps 50–300) with optimizer states and logs
Tiny-Aya-Fire-Hindi-SFT Tiny Aya Fire after plain Hindi SFT (control), merged
Tiny-Aya-Fire-Hindi-SFT-LoRA its SFT LoRA adapter
Llama-3.2-3B-Tameez-GRPO Llama-3.2-3B after Hindi SFT + Tameez GRPO (step 100), merged
Llama-3.2-3B-Tameez-GRPO-LoRA its GRPO LoRA adapter
Llama-3.2-3B-Tameez-GRPO-step300 the last Llama GRPO checkpoint (not chosen), merged
Llama-3.2-3B-Tameez-GRPO-checkpoints every Llama GRPO checkpoint with optimizer states and logs
Llama-3.2-3B-Hindi-SFT Llama after plain Hindi SFT (control), merged
Llama-3.2-3B-Hindi-SFT-LoRA its SFT LoRA adapter and trainer checkpoints
📊 tameez-hindi-safety-data the curated SFT, RL and test splits, lexicons and Hinglish rewrites
📊 tameez-eval-outputs every scored reply of every model and checkpoint, with every judge's verdict
📊 tameez-training-logs per-step reward curves, sampled completions, RL rollouts, pipeline logs
💻 github.com/N0VA06/tameez all code: data building, RL environment, rewards, training, evaluation, plots
📝 Article the full write-up

Collections: Tameez: models, LoRA adapters and artifacts · Tameez: datasets, logs, traces and benchmarks

Lexsi AI Safety and Alignment Hackathon

Tameez is a submission to the Lexsi AI Safety and Alignment Hackathon (Lexsi Labs × Cohere Labs × Hugging Face, November 2026): Track 2a, problem 4 · multilingual and code-mixed safety (primary) and Track 2b, problem 5 · safety-preserving fine-tuning.

  • Cohere Labs: the policies are Tiny Aya Global (main) and its South Asia variant Tiny Aya Fire. Aya Expanse 8B generated the Hinglish training data and judged helpfulness. The Aya Dataset, Aya Red-teaming and the Aya Evaluation Suite supply SFT and test data.
  • Lexsi Labs: both training stages run on AlignTune. Stage 1 calls create_sft_trainer (LoRA, TRL backend); Stage 2 calls create_rl_trainer(algorithm="grpo", loss_type="dr_grpo") with the six rewards passed through AlignTune's per-sample custom-reward contract. AlignTune writes a lexsi_provenance.json run record next to every adapter. Every stage's saved replies can be audited with AuditKIT (scripts/audit_with_auditkit.py in the code repo: AuditKIT scorers, its RefusalDetector and compare, CPU only). CuratorKIT re-checks the curated data splits for duplicates, train/test leakage and leaked secrets (scripts/curate_with_curatorkit.py): 3 of 18,642 training rows overlap a test prompt, all in benign tests.

License

This model is a derivative of Tiny Aya Global by Cohere Labs and is released under the same license, CC-BY-NC 4.0, together with Cohere Labs' Acceptable Use Policy. Non-commercial use only. Changes made: Hindi LoRA SFT, then GRPO safety training (see NOTICE). No endorsement by Cohere Labs is implied.

Citation

@misc{tameez2026,
  title  = {Tameez: Teaching 3B Models Manners in Hindi and Hinglish with GRPO},
  author = {Vijay Srinivas P},
  year   = {2026},
  url    = {https://huggingface.co/IINOVAII/Tiny-Aya-Global-Hindi-SFT},
  note   = {Code: https://github.com/N0VA06/tameez}
}
Downloads last month
212
Safetensors
Model size
3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for IINOVAII/Tiny-Aya-Global-Hindi-SFT

Finetuned
(183)
this model
Adapters
2 models

Datasets used to train IINOVAII/Tiny-Aya-Global-Hindi-SFT

Collection including IINOVAII/Tiny-Aya-Global-Hindi-SFT

Article mentioning IINOVAII/Tiny-Aya-Global-Hindi-SFT