-
Notifications
You must be signed in to change notification settings - Fork 294
Archive Benchmark System
hydropix edited this page May 9, 2026
·
1 revision
This page documents how to use the TranslateBookWithLLM benchmark system to test LLM translation quality.
# Run quick benchmark (19 languages)
python -m benchmark.cli run --openrouter-key YOUR_KEY
# Run full benchmark (40+ languages)
python -m benchmark.cli run --full --openrouter-key YOUR_KEY
# Publish results to this wiki
python -m benchmark.cli wiki-publish| Requirement | Description |
|---|---|
| Ollama | Running locally with at least one model installed |
| OpenRouter API Key | For translation evaluation (get one here) |
| Git | For publishing to the wiki |
python -m benchmark.cli run [OPTIONS]| Option | Description |
|---|---|
-m, --models |
Models to test (auto-detects if omitted) |
-l, --languages |
Language codes to test (e.g., fr de ja) |
--full |
Test all 40+ languages |
--openrouter-key |
OpenRouter API key |
--evaluator |
Evaluator model (default: anthropic/claude-haiku-4.5) |
--ollama-endpoint |
Custom Ollama URL |
--resume |
Resume interrupted run by ID |
| Command | Description |
|---|---|
list |
Show all benchmark runs |
show RUN_ID |
Display run details (-d for detailed stats) |
export RUN_ID |
Export to CSV (-o path) |
delete RUN_ID |
Delete a run (-f to skip confirmation) |
merge RUN_IDs |
Combine runs (--publish to auto-publish) |
| Command | Description |
|---|---|
wiki |
Generate wiki pages locally |
wiki-publish |
Generate and push to GitHub wiki |
| Category | Languages |
|---|---|
| European | French, German, Spanish, Italian, Portuguese, Polish |
| Asian | Chinese (Simplified/Traditional), Japanese, Korean, Vietnamese, Thai |
| South Asian | Hindi, Bengali, Tamil |
| Cyrillic | Russian, Ukrainian |
| Semitic | Arabic, Hebrew |
Adds: Dutch, Swedish, Danish, Norwegian, Finnish, Greek, Romanian, Hungarian, Czech, Indonesian, Malay, Filipino, Bulgarian, Serbian, Latin, Ancient Greek, Sanskrit, Welsh, Basque, Catalan, Galician, Irish, Scottish Gaelic, Icelandic, Maltese
Each translation is scored 1-10 on:
| Metric | What it measures |
|---|---|
| Accuracy | Meaning preservation |
| Fluency | Natural expression in target language |
| Style | Literary style/tone preservation |
| Overall | Combined quality score |
| Score | Indicator | Quality |
|---|---|---|
| 9-10 | 🟢 | Excellent |
| 7-8 | 🟡 | Good |
| 5-6 | 🟠 | Acceptable |
| 3-4 | 🔴 | Poor |
| 1-2 | ⚫ | Failed |
5 classic literature excerpts (~500 chars each):
- Pride and Prejudice (Austen, 1813) - Ironic prose
- The Picture of Dorian Gray (Wilde, 1890) - Sensory description
- A Study in Scarlet (Doyle, 1887) - Dialogue
- Walden (Thoreau, 1854) - Philosophical prose
- Moby-Dick (Melville, 1851) - Archaic narrative
# 1. Install model
ollama pull new-model:tag
# 2. Run benchmark
python -m benchmark.cli run -m new-model:tag --openrouter-key KEY
# 3. View results
python -m benchmark.cli show RUN_ID --detailed
# 4. Merge with existing results
python -m benchmark.cli merge old_run new_run --publishSet in .env:
API_ENDPOINT=http://localhost:11434/api/generate
OPENROUTER_API_KEY=your_key
WIKI_REPO_URL=https://github.com/username/repo.wiki.git| Issue | Solution |
|---|---|
| No models found | Run ollama list and ollama pull model
|
| Wiki push fails | Create at least one wiki page on GitHub first |
| Slow benchmarks | Use quick benchmark or fewer models |