# Arabic translation benchmark pack — Hy-MT3 vs Qwen3.8 vs Claude Haiku 5.5

Measured 2026-11-27 on a Mac Studio (Apple M3 Ultra, 96GB, macOS 15.7.4).

This pack contains every prompt, raw output, token count, deterministic check
and score behind the article. Nothing here is hand-written output: each JSONL
row is the response from the model named in the row.

## Headline results

Paragraph test: 20 paragraphs (1,432 English words) from Wikipedia's *AI agent*
article, three runs per paragraph.

| Model | COMET-Kiwi | Glossary strict | Paragraphs with every term |
|---|---:|---:|---:|
| Hy-MT3-30B-A3B (Q8_0, llama.cpp) | 0.7888 | 86.7% | 79.0% |
| Qwen3.8-27B (NVFP4, Ollama) | 0.8017 | 46.7% | 26.3% |
| Claude Haiku 5.5 (API) | 0.8032 | 50.0% | 26.3% |

FLORES-200, 200 sentences with human Arabic references:

| Model | COMET-22 | chrF++ | BLEU |
|---|---:|---:|---:|
| Hy-MT3 | 0.8777 | 52.53 | 23.24 |
| Qwen3.8 | 0.8776 | 52.64 | 24.06 |
| Haiku 5.5 | 0.8765 | 52.47 | 22.94 |

Paired COMET-22 differences are not statistically significant (p = 0.60–0.93).

Cost, from billed API tokens: the article test (60 Haiku generations) cost
$0.01215, or $2.83 per million source words. The whole 2,340-request test cost
$0.04992. Local API cost: $0.

## Method notes

- Paragraph prompt includes the 12-term glossary above, the section name and the
  paragraph. The glossary is a constraint-following test, not a claim that these
  are the only correct Arabic terms.
- "Glossary strict" accepts the ordinary definite/indefinite variation
  (**وكيل ذكاء اصطناعي** / **وكيل الذكاء الاصطناعي**). Plurals and synonyms do
  not count. The table reports term occurrences, not paragraphs.
- COMET-Kiwi is the int8 build of `Unbabel/wmt22-cometkiwi-da`
  (`solailabs/wmt22-cometkiwi-da-int8`), reference-free.
- COMET-22 is `Unbabel/wmt22-comet-da`, reference-based, run on CPU.
- FLORES-200 sample: 200 of the 1,012 devtest sentences, seed 42, fixed indices.
- Local decoding: temperature 0 (greedy). Haiku 5.5 rejects `temperature`,
  `top_p`, `top_k` and `seed`; it ran with thinking disabled and the model's
  default sampling. This is the one parameter asymmetry in the test.
- No human evaluation was performed.

## Runtime

- Hy-MT3: llama.cpp 1.1.0 (build 12774), `-ngl 99`, 8,192 context, Q8_0 GGUF
  (32,791,821,792 bytes). The previous Homebrew 7770 binary had no `hy_v3`
  architecture and could not load it.
- Qwen3.8: Ollama 0.40.16, `qwen3.8:27b-mlx`, NVFP4, 27.8B, 262,144 context.
  The FP8 checkpoint is packaged for vLLM/SGLang/TokenSpeed (CUDA), not Metal:
  Transformers 4.57.3 does not know `qwen3_5` (the config expects 5.8.0.dev0),
  and `mlx_lm.load()` reports `No safetensors found` because it cannot use the
  FP8 layout. The files are present. This is a runtime constraint, not a bad download.
- Claude: `claude-haiku-5-5`, thinking disabled. The API rejects `temperature`,
  `top_p`, `top_k` and `seed`, so sampling could not be pinned; the three runs
  are samples from the default distribution.

## Reproduction

```bash
python3 build_paragraphs.py
python3 build_corpus.py
python3 run_bench.py --model hy --set paragraphs --reps 3
python3 run_bench.py --model qwen --set paragraphs --reps 3
python3 run_bench.py --model claude --set paragraphs --reps 3
python3 score_paragraphs.py
python3 score_flores.py
python3 score_practical.py
```

`score.py` also contains the shared constraint checks and bootstrap helpers.
The COMET models are not bundled; download them with `comet.download_model`
or point `score.py` at a local checkpoint. The pack omits the API key.

## File map

- `index.html` — browsable index of the pack (the landing page).
- `method.html` — readable HTML version of this document.
- `corpus/paragraphs.json` — 20 paragraphs, sections, glossaries, DNT lists.
- `corpus/practical.json` — 40 product strings.
- `source/wikipedia_ai_agent_revision.json` — revision metadata + selected text.
- `flores/sample_200.jsonl` — 200 source/reference pairs.
- `results/*.jsonl` — every raw generation, prompt, token count and latency.
- `scores/` — aggregate summaries and per-output scored rows.
- `scripts/` — corpus builders, runners and scorers. They are included in the zip; direct `.py` URLs return 410 under the site's junk-path rule.
- `prompts.md` — exact prompt templates.
- `terminal/` — real asciinema casts (summary and full demo).

## Licenses

- Wikipedia source: CC BY-SA 4.0. The translations in this pack are derivative
  works and carry the same license.
- FLORES-200: CC BY-SA 4.0 (Meta AI / facebookresearch/flores).
- COMET-22: Apache 2.0. COMET-Kiwi (int8 derivative): CC BY-NC-SA 4.0.
- The harness code and measurement tables are published for reuse with attribution.
- The Wikipedia-derived text and its translations are CC BY-SA 4.0.

## Caveats

- One article, one language pair (English → Modern Standard Arabic).
- Quantization differs between the local models (Q8_0 vs NVFP4). This measures
  the builds that run on this Mac, not the models at equal precision.
- COMET is a metric, not an editor. Automatic scores missed a clear Arabic
  grammar error in the Qwen output.
