Nirnaya (निर्णय) means "decision" in Hindi. The Nirnaya family are decision models: give one a state and a set of questions, and it returns one answer per question with a probability on every option, in a single pass.
Nirnaya Flash 1.0 is the fastest and best-calibrated member of the family. It reads text, images and audio, in English and Indian languages.
| Base model | Gemma 4 E4B |
| Public Decision Index 0.3 | 51.90 |
| Public vision index | 59.44 |
| Median latency | 30 ms per request (p95 164 ms), measured with the vLLM inference engine |
| Options per question | Up to 255 |
The figures above come from complete runs of the Decision Index kit. Private board scores are added here once they are published.
The model needs the inference code in github.com/NeverInAsh/nirnaya-inference and the Decision Index kit.
python -m decision_index run --engine mmclm.di_engine:NirnayaEngine \
--option model=<model dir> --option head=<model dir>/head.pt \
--option temperature_fit=<model dir>/t_entropy.json \
--option twice_max=3000 --option max_model_len=32768 --option gpu_mem=0.85 \
--edition 0.3 --rows <rows.jsonl> --out <run dir>
For the vision suite, use mmclm.di_engine:NirnayaVisionEngine with max_soft_tokens=560 and max_images=2.
For audio, use mmclm.di_engine:NirnayaAudioEngine. Install librosa fastapi uvicorn python-multipart, start the HTTP server with python -m mmclm.serve --model <model dir> --port 8000, and send requests to POST /v1/decisions.
| File | What it is |
|---|---|
model*.safetensors |
Fine-tuned model weights |
head.pt |
The decision head, which scores every option |
t_entropy.json |
Serving temperature used for calibration |
The model was fine-tuned on a huge amount of data: about 69% text, 17% images and 14% audio, with about 13% in languages other than English. We don't publish the list of sources. By category, they cover:
Labels come from each source's ground truth, from rules for generated data and, for part of the data, from soft labels produced by a larger Gemma model.
We excluded every Decision Index benchmark source from the start. We then filtered every candidate training row against all rows of the public Decision Index 0.3 suite, the public vision suite and our own held-out tests. A row is dropped when it fails any of these checks:
| Check | What it catches |
|---|---|
| Exact text | The same normalised string of 25 or more characters |
| 13-word overlap | Any run of 13 consecutive words shared with a test row |
| Perceptual image hash | An image within 2 bits of a test image on a 64-bit perceptual hash, which catches resized and re-encoded copies |
Example. Say a test row contains:
The customer says the parcel left the warehouse on Monday but has still not arrived at the address.
And a candidate training row contains:
Yesterday the customer says the parcel left the warehouse on Monday but has still not arrived, so they called.
The sentences differ, so an exact check alone would miss this. But both contain the same 13 consecutive words, "the customer says the parcel left the warehouse on Monday but has still", so the row is dropped.
Limits of these checks:
Probabilities are calibrated with an entropy-aware temperature fitted on our own test set, never on the Decision Index suite. It softens confidence and never changes which option is chosen. On the public suite, using the board's published definition, we estimate ECE at about 3.9 and NLL at about 0.87. The board publishes its own figures after review.
The weights are open and need no sign-up. If you build with Nirnaya, a "Built with Nirnaya" mention is appreciated.
Nirnaya Flash 1.0 is a modified version of Gemma 4 E4B and is released under the Apache License 2.0, the same licence as the base model. See NOTICE for attribution, which anyone redistributing this model must keep.
model.safetensors 16 GBhead.pt 166 MB