LeoAll models

Leo Sarvam 30B by Leo Labs · Released 14 October 2026

A small gain.
A strong starting point.

400 coding examples. 50 updates. A measured improvement on an already capable base.

Leo Sarvam 30B is our independently developed coding LoRA adapter for Sarvam AI's Sarvam-30B. The evaluated step-50 checkpoint solved two more HumanEval problems than its base and one more problem in the frozen math subset.

The completed comparison

Code · Full HumanEval

96.95%

159 / 164 passed

Base: 157/164 (95.73%). Four gains and two losses across the paired answers: a net two additional passes.

Math · Frozen MATH-500 subset

97.50%

195 / 200 correct

Base: 194/200 (97.00%). Three gains and two losses: a net one additional correct answer. No math training was used.

364 questions, answered by both models: 728 saved and scored responses. Neither model had an omitted or incomplete answer. These are small observed gains from a strong baseline; they do not establish statistically reliable general superiority.

Test method, uncertainty and exact scope

One sampled response per problem, BF16 vLLM inference, temperature 1.0, top-p 1.0, top-k disabled. Native prompts, native end-of-sequence stopping and the 131,072-token context window were used without a lower per-answer reply cap. Both models used the same frozen questions and common scoring procedure. Code was checked with the original HumanEval tests; math used the frozen answer-checking protocol.

HumanEval includes all 164 problems. Math is a fixed 200-question subset of MATH-500, not the full 500-question benchmark. Exact paired McNemar p-values are 0.6875 for coding and 1.0 for math. One stochastic sample and few discordant pairs limit the strength of any broader claim.

Checkpoint discovery overlapped 20 coding and four math questions. On additional cases, coding was 141/144 versus 140/144 and math was 192/196 versus 191/196. Exact/normalized training-question checks found no HumanEval matches; semantic overlap and broader contamination are not ruled out.

Download the evaluation record · Protocol, paired outcomes and integrity audit ↗

400 coding examples

A reproducible shuffled prefix of a 5,000-example coding pool, using NVIDIA OpenCodeInstruct questions and Qwen3.5-27B teacher responses. Attention-only rank-16 LoRA, alpha 32, learning rate 1e-5, with complete assistant targets. This is not a claim of manual curation.

The exact tested adapter

A 20.6 MB PEFT LoRA download. The published adapter matches the evaluated checkpoint byte for byte. Sarvam-30B base weights and suitable GPU memory are required separately. This release contains no merged or quantized variant.

Why step 50?

The best qualified checkpoint in this pilot came early. Additional training did not monotonically improve the measured outcomes.

Checkpoint evidence, with each test's scope retained
CheckpointExamples seenObserved result
Step 50 · released400Completed 164-code + 200-math comparison: 159 vs 157 coding; 195 vs 194 math.
Step 100800Fresh 20-code + 10-math validation: 18 vs 20 coding; 8 vs 8 math. Zero omissions, but failed the coding gate; no full evaluation followed.
Step 6255,000Stopped diagnostic's first 64 coding pairs: 53 vs 64 passed under the corrected common extractor, including nine omitted final code answers.

These checkpoints were not all tested on the same complete bench. Step 50 is the best validated candidate here, not a proven global optimum. Different data prefixes and different update counts were used, so this pilot cannot isolate the effect of data quantity from additional optimization.

A diagnostic found increased EOS probability after the reasoning segment on selected failure prefixes in the final checkpoint, with both NF4 and BF16 backbones. The precise training cause remains unresolved.

Research context

LIMA motivates studying efficient instruction alignment, while CodeRL motivates judging code by execution. LoRA generalization studies provide possible explanations to investigate; our results do not prove spectral collapse or permanent reasoning loss.

Read the verified literature notes, limitations and future tests ↗

Start building with Leo Sarvam

Install a compatible Transformers/PEFT stack, load the pinned Sarvam base and activate the published adapter:

from peft import PeftModel
model = PeftModel.from_pretrained(base_model, "DesaiJayM/Leo-Sarvam-30B")

The model card gives the complete loading example, native prompt settings, pinned base revision and benchmark limitations. Review and test generated code before relying on it.

Base and attribution

Developed by Leo Labs / Dr. Jay Desai on Sarvam-30B by Sarvam AI. This is an independent community adapter, not an official Sarvam AI release or endorsement. Apache 2.0 adapter release; base attribution, source-question credits and training provenance accompany the repository. The original base and prior checkpoints are preserved.