Reasoning model · Public release · 17 October 2026

Gargi

A small English language model that thinks step by step on maths problems.

  • 384M parameters
  • ≈17B training tokens
  • Apache-2.0

Training data

About 1,000× less training data

Gargi read about 17 billion tokens of openly licensed and public-domain text, plus synthetic text from open models. Comparable open models are trained on trillions of tokens. On reasoning-style multiple choice, that gap barely shows.

Training tokens · one square ≈ 17 billion

Gargi · ≈17B

Qwen2.5-0.5B · ~18T (as published by its authors)

Base models · same harness · accuracy %Gargi-Base · ≈17B tokens · Qwen2.5-0.5B · ~18T tokens
Base models · same harness · accuracy %
TestGargi-BaseQwen2.5-0.5B
ARC-Easy62.864.7
ARC-Challenge32.332.4
WinoGrande54.656.1
lm-evaluation-harness, 0-shot, greedy. Qwen2.5-0.5B's token count is as published by its authors.

Try it here · ask, and read how it thinks

Runs in this tab · nothing leaves your device

Works best on a laptop or a recent phone with a good connection.

Gargi

Gargi runs inside this tab. Download it once, then ask it anything.

Enter to send, Shift+Enter for a new line. Up to 8 questions per conversation.

Try one of these

For maths, end the question with “Solve it step by step, then give the final answer on the last line as: Final answer: <number>”. The maths examples do this for you. Thinking shows up mainly on maths problems.

Gargi runs entirely inside this tab: the 410 MB model downloads once and is kept by your browser, and your messages never leave your device. Speed depends on your device. Gargi is a 384M-parameter research model and is often wrong on facts, arithmetic and code: double-check anything important. Gargi itself is not safety-tuned, so a filter on this page declines clearly harmful requests.

Prefer not to download? Try Gargi on Hugging Face Spaces

Hear about new Udgam Labs releases first

Subscribers get an email about each new release before we announce it anywhere else. Free, no spam.

We’ll email you updates from Udgam Labs and see which ones you open and click. Unsubscribe anytime. Privacy

What it is

Close to Qwen2.5-0.5B on reasoning benchmarks, from about 1,000× less data.

A 384M-parameter English language model trained from scratch on about 17 billion tokens. It thinks step by step on maths problems, reads up to about 16,000 tokens, and runs comfortably on a laptop.

Read the release post

The result

Within 2 points on reasoning. Clearly behind on knowledge.

On the same evaluation harness, Gargi's base model comes within 2 points of Qwen2.5-0.5B on ARC-Easy, ARC-Challenge and WinoGrande (62.8 vs 64.7, 32.3 vs 32.4, 54.6 vs 56.1), although Qwen2.5-0.5B was trained on ~18 trillion tokens and Gargi on ~17 billion. Knowledge-heavy and everyday-commonsense benchmarks (MMLU, HellaSwag, PIQA) still scale with data, and there Gargi is clearly behind.

How it compares

Gargi trades breadth for efficiency. On reasoning-style multiple choice (ARC, WinoGrande) it is close to models trained on hundreds to thousands of times more data; on knowledge-heavy and everyday-commonsense benchmarks (MMLU, HellaSwag, PIQA) it is clearly behind.
Base models, accuracy %, measured by us on one harness
ModelParamsTraining tokens*MMLUARC-EARC-CHellaSwagWinoGrandePIQA
Gargi-Base384M~0.017T25.562.832.341.554.666.8
Qwen2.5-0.5B494M~18T47.364.732.452.156.170.0
SmolLM2-360M360M~4T25.670.238.356.359.071.5
Granite-4.0-350M (base)352M–32.065.433.752.056.070.7
Gemma-3-270M (pt)268M~6T26.158.828.241.353.468.1

lm-evaluation-harness, 0-shot, greedy, with each model's start token. *Training-token counts for other models are as published by their authors.

It thinks before it answers

The chat model can think step by step before it answers, or answer straight away. It writes its thoughts mainly on maths problems, and thinking lifts its maths score.

GSM8K, thinking on
36.0
Chat template, 0-shot, greedy
GSM8K, thinking off
32.9
Same settings, no thinking
GSM8K 5-shot
19.8
lm-eval, no chat template

Chat model on the other benchmarks: MMLU 24.9 · ARC-E 62.2 · ARC-C 31.0 · HellaSwag 42.0 · WinoGrande 55.2 · PIQA 66.4.

Not a maths specialist

Newer small models trained on far more data score higher on maths. Reported elsewhere, with varying settings: Qwen3-0.6B scores 79.2 on GSM8K with thinking (0-shot pass@1, as reported in the MobileLLM-R1.5 model card); MobileLLM-R1.5-360M 52.8 and Granite-4.0-H-350M 39.3 (8-shot), as published by their authors. Gargi scores 36.0.

For maths, end the question with “Solve it step by step, then give the final answer on the last line as: Final answer: <number>”. It gives the most reliable answers.

Long documents: reliable up to about 16K tokens

A 5-digit code is hidden early in a long document of real text and asked for at the end; 30 trials per length. Gargi was trained at 32K tokens and finds the code every time at 8K, 93% of the time at 16K and 90% at 20K. Beyond that it falls away, while several other small models hold to 32K. Use Gargi with inputs up to about 16K tokens.

Needle in a haystack, % of 30 trials found
ModelParams8K16K20K24K32K
Gargi384M1009390130
Qwen3-0.6B600M100100100100100
Hunyuan-0.5B-Instruct500M100100100100100
Falcon-H1-Tiny-R-0.6B600M1009710010097
Granite-4.0-H-350M350M100100100100100
ERNIE-4.5-0.3B300M100100100100100
Gemma-3-270M-it270M10010010010063
LFM2.5-350M350M900000
SmolLM2-360M-Instruct360M60n/an/an/an/a

Each model gets its own start token; lengths beyond a model's declared context are marked n/a.

All rows were measured by us on the same harness and settings (lm-evaluation-harness, 0-shot, GSM8K 5-shot, greedy, with each model's start token), unless marked as published by the model's authors.

What it is good for, and what it is not

Good fits

  • Learning and experimenting with small models.
  • Offline, on-device chat and step-by-step maths explanations, where mistakes are acceptable.
  • Reading and answering questions about documents up to about 16K tokens.

Where it falls short

Safety

Gargi has not been safety-tuned beyond a small set of refusal examples. In our tests it may follow harmful requests (for example, it gave steps when asked how to break into a neighbour's house), and it sometimes lists other assistants it is not (“I'm not ChatGPT, Gemini, …”) without being asked.

The name

Gargi

Gargi Vachaknavi

Gargi is named after Gargi Vachaknavi, the Vedic philosopher remembered for asking the hardest questions.

A small model that thinks before it answers.

The model, and how to run it

The model

Parameters
384M · Gemma 4-style decoder, sliding-window + global attention
Initialisation
Random weights; trained from scratch
Training data
≈17B tokens read in total: openly licensed or public-domain text, plus synthetic text from open models
Context
Trained at 32K tokens; reliable recall up to ~16K (100% at 8K, 93% at 16K, 90% at 20K)
Modes
Thinking on (step-by-step reasoning before the answer) or off
Prompt format
Gemma 4 chat format; the included chat template handles thinking on and off
Language
English
Licence
Apache-2.0 (weights and tokenizer)

How to run it

It runs comfortably on a laptop or phone-class device. Use the Q8_0 GGUF unless memory is tight.

# Ollama (/set think for step-by-step thinking)
ollama run hf.co/udgamlabs/Gargi-GGUF:Q8_0

# llama.cpp, with a 16K-token context
llama-cli -hf udgamlabs/Gargi-GGUF:Q8_0 -c 16384

# MLX on Apple silicon
pip install mlx-lm
mlx_lm.chat --model udgamlabs/Gargi-MLX

Quantization · GSM8K with thinking, first 200 problems

Quantization · GSM8K with thinking, first 200 problems
BuildSizeGSM8KSame as f16
f16770 MB39.0–
Q8_0 (recommended)410 MB37.596.5%
Q4_K_M238 MB32.087%

Greedy, via Ollama. Q8_0 matches f16 closely; Q4_K_M loses a few points (each score is ±3.4 points at this sample size).

From an AI agent

Gargi also runs as a tool on our MCP server, so Claude Code, Codex, Cursor and other MCP clients can call it. Each call is one message, with thinking on or off; for a maths word problem, the tool’s maths setting asks Gargi to solve it step by step and give a final answer.

# Claude Code
claude mcp add --transport http udgamlabs https://mcp.udgamlabs.com/mcp

# Codex
codex mcp add udgamlabs --url https://mcp.udgamlabs.com/mcp

# Cursor: .cursor/mcp.json
{ "mcpServers": { "udgamlabs": { "url": "https://mcp.udgamlabs.com/mcp" } } }

The tool is gargi_chat; the same server has every model that runs as a tool (all tools, and setup for Claude, VS Code and other apps). The model runs on a shared free CPU on Hugging Face, so the first call after a quiet spell waits while it starts.

Weights and builds

Weights and tokenizer are released under Apache-2.0. The chat template is the Gemma 4 template (Apache-2.0). Gargi was trained on openly licensed and public-domain text and synthetic text from openly licensed models; the model card lists every source and its licence.