BuildRiot
Sign in

Article · AI

Build regression checks for Sarvam’s updated model aliases

Sarvam changed the weights behind two API model IDs while preserving request compatibility. This guide presents a proposed replay workflow, fixture examples to implement and a report template for checking task outcomes, sampling variation and fallback behavior.

A miniature theater shows duplicate requests passing through two model versions, with their outputs compared alongside a fallback path.
Illustration: BuildRiot (AI-generated)

Key takeaway

A stable model ID does not guarantee stable behavior. Preserved baselines and repeated outcome checks help developers detect changes, while a validated fallback provides an option that rolling back a client cannot.

Separate request compatibility from behavior

Sarvam moved sarvam-105b and sarvam-105b-conversations to Sarvam-105B-1711 weights on November 22, 2026, according to its changelog. Their model IDs, endpoints and request format stayed unchanged. That distinction matters for LLM regression testing: an unchanged request can reach different weights. Sources: Sarvam

A regression claim needs a baseline captured before the change. Without one, label the first run current-behavior characterization. Comparing the current model aliases does not reconstruct their previous weights. The update’s effect on customer workloads remains unknown.

The fixture examples, replay requirements and report template below define a proposed workflow to implement, not an official Sarvam utility. Start with small, auditable tasks, preserve their traces and grade outcomes independently of exact response wording.

Capture a sanitized baseline

Replace personal data, credentials and identifiers consistently across messages, tool arguments, results and expected outcomes. Preserve meaningful relationships: distinct orders must remain distinct after replacement. Keep accepted baselines immutable, and create a new fixture revision whenever an expected answer changes.

  • Record capture time in coordinated universal time, endpoint, requested and returned model IDs, SDK and runtime versions, and application and harness revisions.
  • Preserve prompts, histories, tool schemas, tool-selection settings, temperature, top_p, max_tokens and explicit reasoning settings.
  • Store responses, finish reasons, tool arguments, fixed tool results and observed task outcomes.
  • Save usage and fingerprints when returned; Sarvam documents usage as optional and system_fingerprint as optional and nullable.
  • Hash fixtures, policies, retrieval snapshots and grading rules alongside each run. Sources: Sarvam

Use separate profiles for the aliases, following the table below. Sarvam’s model page lists low as the flagship reasoning default, while its V1 reference lists medium. Set reasoning explicitly to avoid relying on that conflicting documentation. Preserve output limits because reasoning consumes the completion budget. Sources: Sarvam

Table

Sarvam context limits in tokens and reasoning profiles

ProfileContext limitDocumented reasoningGuide replay setting
sarvam-105b128KEnabled. Default: low on model page; medium in V1 reference.Explicit low
sarvam-105b-conversations32KAlways off; supplied effort ignoredExplicit off
Keep separate alias baselines. Replay settings below are guide recommendations.Sources: Sarvam

Define fixtures by their expected outcomes

Implement fixtures for native-script, romanized and code-mixed extraction, ambiguous cancellation, a tool timeout and a corrected preference in a conversation history. Define success through extracted values, permitted actions and supported claims. Sarvam documents support for native-script, romanized and code-mixed inputs. Sources: Sarvam

The following are fixture examples to implement, not an executable generator:

  • Extraction: use “ऑर्डर A17 में 3 किताबें हैं।”, “Order A17 mein 3 kitaabein hain.” and “Order A17 में 3 books हैं।” Expect order_id A17 and integer quantity 3 in a JSON object.
  • Ambiguous cancellation: omit an explicit order identifier. Require clarification and treat any cancel_order attempt as a failure.
  • Tool timeout: supply a fixed timeout result for lookup_order. Require the response to acknowledge the unavailable status without inventing a delivery confirmation.
  • Conversation history: include a preference followed by a correction. Require the response to follow the corrected preference.

Have fluent reviewers validate the wording and expand coverage using actual workload distributions. These examples are not a representative Indian-language benchmark, and the proposed history fixture checks retention rather than near-limit performance. Build separate context-limit suites using token counts, reserving room for reasoning, output and subsequent tool turns. Keep paired alias tests within the smaller allowance, and evaluate longer flagship cases separately.

Replay each profile and preserve traces

Implement a replay tool that emits newline-delimited JSON and supplies fixed fixture tool responses without making business-tool calls. Record whole non-streaming request latency and disable automatic retries. Validate tool arguments against their schemas, and use outcome checks that accept multiple valid paths.

Configure API credentials through the usual secret mechanism and use the configured full V1 chat-completions URL. Run separate alias profiles with explicit reasoning settings and fixed client settings. Begin with repeated smoke-test trials, then expand trials to assess sampling variation.

Restrict output storage when preserving raw provider responses, and sanitize logs. Add application revision, policy and retrieval hashes to an accompanying run manifest. Repetition remains necessary with fixed settings: Sarvam documents only best-effort determinism and warns that temperature zero does not produce bit-reproducible responses. Sources: Sarvam

Compare outcomes before promotion

Repeat the same profile later and compare its output with the accepted baseline. Before comparing outcomes, check that fixtures, settings, harness, runtime, model ID and repetition count match. Resolve differences before interpreting grouped summaries. Intentional harness changes need a planned baseline migration.

Implement automatic checks for tool selection, arguments, schema validity and structured outcomes. Have fluent reviewers assess language adherence, unsupported claims and broader task completion. Randomize responses and hide alias, date and comparison labels; adjudicate ambiguous cases and record rubric versions.

Before testing, set gates for zero unauthorized attempts and actions, critical extraction success, and no invented confirmations. Define workload-specific language, completion, latency and token budgets, and require completed human review before promotion. Report trial success and the share of cases passing every repetition, keeping cases as the unit for workload uncertainty. Sarvam exposes optional usage; keep reported tokens distinct from billed tokens until reconciled against billing records. Sources: Sarvam

The comparison report below is a template for the grading stage after replay. Populate it after actual runs and completed review, retaining language and task breakdowns alongside aggregate results. Leave unknown measurements null so missing data cannot appear as successful checks or zero costs.

{
  "comparison_type": "current-behavior-characterization",
  "pre_change_baseline_available": false,
  "model_profile": "sarvam-105b / explicit low reasoning",
  "fixture_revision": "<sha256>",
  "evaluation_window_utc": ["<start>", "<end>"],
  "trials": null,
  "automatic_pass_rate": null,
  "all_repetitions_pass_rate": null,
  "unauthorized_attempts": null,
  "human_language_adherence": null,
  "human_unsupported_claim_rate": null,
  "p95_latency_ms": null,
  "reported_tokens": null,
  "billing_reconciliation": "pending",
  "decision": "not_evaluated"
}

Monitor failures and rehearse the fallback

Run fixed synthetic probes daily while preserving the accepted baseline, then sample sanitized production conversations by language, script, task and risk. Alert separately on policy violations, task and language failures, transport errors, latency and usage. Inspect traces before attributing a change to weights. This schedule is a guide recommendation.

  1. If ambiguous cancellation triggers a tool attempt, require an explicit order identifier and authorization in the action layer.
  2. Disable autonomous cancellation for the affected route and send the task to a fallback validated on the same language and task suite, or a human.
  3. Replay the failure, nearby ambiguous cases and ordinary authorized cases through the actual routing and authorization code.
  4. Restore access only after unauthorized actions are blocked and authorized tasks meet the predefined gates.

Design the replay tool to block unapproved simulated calls and fail evaluation on attempted violations. Reverting an SDK or prompt cannot restore provider-side weights behind an updated alias, and switching between these updated aliases does not restore the previous checkpoint. Exercise production routing separately, then add confirmed failures as versioned fixtures. Sources: Sarvam

Attribution

Sources

  1. 1SarvamNovember 22, 2026 | Sarvam API DocsSource published (UTC)
  2. 2SarvamSarvam-105B | Sarvam API Docs
  3. 3SarvamChat Completion V1 | Sarvam API Docs
  4. 4AnthropicDemystifying evals for AI agents
  5. 5arXivτ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains
  6. 6arXivRandomness in large language models: What researchers need to know (and report)

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on AI

All AI stories
Build regression checks for Sarvam’s updated model aliases · BuildRiot