# Translation model routing note — 2026-10-03

## Decision

Do not use the 9B general Omnius model as the unconditional translation lane.
Keep it as the semantic fallback for translation requests that also require
reasoning, terminology negotiation, long conversational context, or tool use.
Route plain, typed translation requests to a smaller translation-specific
model selected by language coverage and license.

Recommended evaluation order:

1. **TranslateGemma 4B** for the supported 55-language set when quality is the
   priority and the Gemma license is acceptable. Google reports that the 4B
   translation-tuned model rivals its larger 12B Gemma baseline. It also
   supports image-text translation and has published quantized deployment
   paths. Its material constraint is a 2K-token input context and a strict
   source/target-language template; it is not a drop-in conversational agent.
2. **MADLAD-400 3B MT** as the broad, permissively licensed multilingual lane.
   The published model card lists 419 languages, Apache-2.0 licensing, a 3B T5
   architecture, and a 1.65 GB Q4K artifact versus 11.8 GB original weights.
   It is the strongest first candidate when Omnius needs broad language
   coverage under a production-compatible license.
3. **OPUS-MT/Marian pair-specific models** for a small set of hot language
   pairs where minimum residency and latency matter most. A representative
   English-Maltese checkpoint is 294 MB and Apache-2.0. The tradeoff is model
   and routing proliferation: every direction/pair needs explicit inventory,
   health, and fallback management.
4. **NLLB-200 distilled 600M** only for research/non-commercial evaluation or
   an explicitly compatible use. It covers 196 listed languages at 600M
   parameters, but its CC-BY-NC license and model-card limitations make it a
   poor default production choice. Meta describes it as research-oriented,
   single-sentence translation, not production/document translation, with
   training inputs capped at 512 tokens.

## Operational fit

| Candidate | Best fit | Important constraint | Recommendation |
| --- | --- | --- | --- |
| TranslateGemma 4B | High-quality text/image translation in 55 languages | Gemma license, strict language-coded template, 2K context | Primary quality candidate |
| MADLAD-400 3B MT | Very broad multilingual text under Apache-2.0 | General-domain research model; validate target pairs | Primary broad-production candidate |
| OPUS-MT/Marian | Fixed high-volume language pairs | Pair/direction-specific fleet complexity | Lowest-footprint specialist lane |
| NLLB-200 600M | Low-resource research and offline comparison | CC-BY-NC, 512-token training limit, not production/document use | Evaluation only |
| Qwen3.5 9B Omnius lane | Mixed translation + reasoning/tools/context | Higher residency and latency; generic rather than MT-specific | Semantic fallback, not default MT |

## Router contract

A translation lane should be selected only when the request has a closed,
typed contract:

- source language and target language are explicit or detection has a receipt;
- the requested operation is translation only—no hidden summarization,
  extraction, browsing, or tool work;
- source text, markup policy, glossary version, and source hash are retained;
- chunking respects sentence/document boundaries and rejoins deterministically;
- the selected model supports the pair, input length, script, and license;
- terminology and protected tokens are validated after generation;
- low confidence, unsupported pairs, glossary violations, or mixed reasoning
  requirements fall back to the general Omnius lane.

The lane lease should follow the same rule as the Telegram repair: a finite
TTL that renews on model events, expires naturally when stale, and never stays
resident merely because a request once existed.

## Evaluation gate

Before changing Mapsource or broker routing, build a representative corpus for
the actual language pairs and text types. Compare the current 9B lane with the
three license-compatible candidates on:

- adequacy and named-entity/number preservation;
- terminology and markup preservation;
- p50/p95 first-token and completion latency;
- peak/resident VRAM and cold-load time;
- empty, truncated, wrong-language, and hallucinated-output rates;
- long-input chunk/reassembly behavior.

No live benchmark was run during this repair. Local model loading requires the
repository's accelerator preflight and GPU lease protocol.

## Primary sources

- [Google TranslateGemma 4B model card](https://huggingface.co/google/translategemma-4b-it)
- [Google TranslateGemma announcement and WMT24++ summary](https://blog.google/innovation-and-ai/technology/developers-tools/translategemma/)
- [Google MADLAD-400 3B MT model card](https://huggingface.co/google/madlad400-3b-mt)
- [Meta NLLB-200 distilled 600M model card](https://huggingface.co/facebook/nllb-200-distilled-600M)
- [Helsinki-NLP OPUS-MT English-Maltese model inventory](https://huggingface.co/Helsinki-NLP/opus-mt-en-mt/tree/main)
