Skip to content

docs(translate): Phase 0 decision memo (P0.7) + harness rows G-K - #148

Merged
Ezo-mas merged 1 commit into
mainfrom
docs/translate-p0-memo
Nov 27, 2026
Merged

Ezo-mas merged 1 commit into
mainfrom
docs/translate-p0-memo

Conversation

@Ezo-mas

@Ezo-mas Ezo-mas commented Nov 27, 2026

Copy link
Copy Markdown
Member

What

  • docs/translate/BAKEOFF.md — the P0.7 decision memo for sign-off: every Phase 0 table, recalibrated thresholds, licences, dependencies and open items.
  • benchmarks/translate/mt_bench.py — new bake-off rows and options:
    • G / H / I / J: CPU-tier candidates (OPUS bible models, HPLT via Marian npz → CTranslate2).
    • K: any OpenAI-compatible chat API with row D's prompt and context. Pacing and retry waits are excluded from timings; runs resume after a stop; inline <thought> blocks are stripped.
    • BL_PROMPT_STYLE (chat / translategemma / nothink) and BL_PROMPT_FILE.
  • benchmarks/translate/prompts/v2.json — the owner's use-case prompt.

Proposals in the memo

  • Direction: standalone, local-first app with an optional opt-in OpenAI-compatible translation API.
  • GPU tier: EuroLLM-9B IQ3_XS with the v1 prompt.
  • CPU tier: OPUS — tc-bible-big-bat-en for English, tc-base-bat-zle for Russian.
  • Russian: direct translation, no pivot through English.
  • Speech: Silero (Russian) and Supertonic (English).
  • Phones: MediaSource + AAC player.

Checks

  • ruff check / format-check: pass
  • mypy (backend/core backend/audio backend/launcher benchmarks): pass
  • pytest backend/tests: 2296 passed, 5 skipped (POSIX/macOS-only launcher tests)

Row K was exercised against a local fake API: context building, the 429 and dropped-connection retries, system-prompt folding, thought stripping and resume.

Nothing under backend/ or frontend/ changed. Results stay in the gitignored results/translate/.

…ws G-K

BAKEOFF.md records every Phase 0 result and the proposals for sign-off:
standalone local-first app with an optional opt-in OpenAI-compatible
translation API; EuroLLM-9B IQ3_XS on GPU, OPUS-MT on CPU (bible bat-en
for English, bat-zle for Russian); direct Russian; Silero + Supertonic;
MSE+AAC phone player; thresholds, licences, dependencies, open items.

mt_bench.py:
- rows G/H/I/J: CPU-tier OPUS/HPLT candidates (HPLT via a Marian npz ->
  CTranslate2 conversion)
- row K: any OpenAI-compatible chat API with row D's prompt and context;
  rate-limit pacing and retries kept out of the timings, resumable runs,
  inline-thinking stripped
- BL_PROMPT_STYLE (chat / translategemma / nothink) and BL_PROMPT_FILE

prompts/v2.json: the owner's use-case prompt.
@Ezo-mas
Ezo-mas merged commit 2452a97 into main Nov 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant