What changed in v2
- Combined the v1 dataset with new v2 distillation data (~7.3k KZRS examples + ~3.6k plain pairs, 2 epochs) targeting v1 failure modes:
- English-source → Indonesian manga text
- Punctuation-only bubbles (e.g.,
…?, !?) preserved instead of skipped
- OCR garbage / stray residue and boilerplate credit/licence lines skipped cleanly
- Standalone
先生 / 先輩 kept as Sensei / Senpai
- Achieves 100% strict JSON validity (98/98) across all three evaluation suites (up from 96/98 in v1), eliminates wrong SKIPs on punctuation-only bubbles, and raises real-page SKIP accuracy from
89.6% to 98.2% (0 false positives) with Indonesian chrF up +3.7 points on real manga pages.
Usage with KZRS
Run with llama.cpp (using a GGUF from KazeGemPT-E2B-it-v2-GGUF) or any OpenAI-compatible server (e.g. vllm serve kouzen-neo/KazeGemPT-E2B-it-v2):
llama-server -m KazeGemPT-E2B-it-v2-Q4_K_M.gguf --port 8080 -c 8192 --jinja --reasoning off --alias kazegemptkzrs translate <input_dir> --provider custom --base-url http://127.0.0.1:8080/v1 --model kazegempt \ --api-key none --lang Indonesian --params params.json --free-text
Input is the KZRS OCR prompt (build_ocr_prompt) containing {"id": "OCR text", ...}; output is a JSON object with the same keys ("SKIP" for SFX, name tags, credits, and OCR garbage; honorifics preserved; optional _names glossary). Disable thinking/reasoning mode (--reasoning off or enable_thinking=False).
Evaluation Results
Comparison across three evaluation suites (Synthetic 32 chunks / 67 items, Pepper&Carrot English comics 36 chunks / 68 items, and 5 Real Japanese manga pages 30 chunks / 163 items). Reference for Pepper&Carrot, Real pages, and Synthetic-vs-teacher is Qwen/Qwen3.8-27B-FP8 (teacher); Synthetic-vs-GT uses human reference translations.
Table with columns: Suite / Metric, Gemma 4 E2B-it (base), KazeGemPT v1, KazeGemPT v2 (this model), Qwen3.8-27B-FP8 (teacher)| Suite / Metric | Gemma 4 E2B-it (base) | KazeGemPT v1 | KazeGemPT v2 (this model) | Qwen3.8-27B-FP8 (teacher) |
|---|
| All 3 suites — JSON valid | — | 96/98 (98.0%) | 98/98 (100.0%) | 88/98 (89.8%*) |
| Synthetic — JSON valid | 32/32 | 32/32 | 32/32 | 32/32 |
| Synthetic — SKIP vs GT (ID / EN) | 0/15 / 0/15 | 15/15 / 15/15 (wrong SKIP: 1/1) | 15/15 / 15/15 (wrong SKIP: 0/0) | 11/15 / 8/15 |
| Synthetic — chrF vs GT (ID / EN) | 59.9 / 70.5 | 63.6 / 68.1 | 63.6 / 70.5 | 63.1 / 74.6 |
| Synthetic — SKIP acc / chrF vs teacher | — | 90.3% / 69.3 | 91.8% / 68.6 | 100% / 100 (ref) |
| Pepper&Carrot (EN) — JSON valid | 35/36 | 34/36 (94.4%) | 36/36 (100.0%) | 30/36* |
| Pepper&Carrot — SKIP acc / chrF vs teacher | — | 86.6% / 63.0 (82 items) | 80.0% / 62.6 (90 items) | 100% / 100 (ref) |
| Real pages (JA) — JSON valid | — | 30/30 | 30/30 | 26/30* |
| Real pages — SKIP acc vs teacher | — | 89.6% (P 99.2 / R 82.4) | 98.2% (P 100.0 / R 96.9) | 100% (ref) |
| Real pages — chrF vs teacher (All / ID / EN) | — | 64.8 / 66.2 / 63.7 | 65.1 / 70.0 / 61.4 | 100 (ref) |
| Held-out v2 dev (28 chunks) — chrF / punct / 先生・先輩 | — | 67.6 / 0/7 / 10/11 | 69.4 / 7/7 / 11/11 | ref |
*Teacher (Qwen3.8-27B-FP8) ran with thinking enabled (8192 token cap) and ran out of tokens on 10/66 hard Pepper&Carrot / real-page chunks.
Known Limitations
- Pepper&Carrot (English comic) SKIP accuracy is 80.0% (on 90 items across 30 chunks, P 72.7% / R 72.7%), lower than v1's 86.6% (measured on 82 items across 28 chunks; v1 failed JSON parsing on the 2 hardest credit/signage chunks that v2 parsed).
- Dialogue chrF-vs-teacher is slightly below v1 on two sets: Synthetic (
68.6 vs 69.3, -0.7) and Pepper&Carrot (62.6 vs 63.0, -0.4), and English-target chrF on real pages is slightly below v1 (61.4 vs 63.7), while Indonesian-target chrF on real pages (70.0 vs 66.2) and Synthetic vs human GT (ID 63.6 / EN 70.5) improved.
- 2B-class model: Always review outputs for idioms, slang, long credit blocks, and heavily garbled OCR.
- Format scope: Fine-tuned specifically for the KZRS OCR JSON prompt; general chat or other prompt templates are not tested.
Training & Data Statement
- Teacher:
Qwen/Qwen3.8-27B-FP8 (Apache-2.0) generated KZRS-format translations and original manga scenes, filtered for JSON validity, SKIP rules, and honorific retention.
- Sources: Japanese and English sentences from Tatoeba (CC-BY 2.0 FR, attribution to Tatoeba contributors) plus synthetic teacher-written scenes and OCR noise/credit templates. No copyrighted manga pages or scans were used in training.
- Dataset availability: The training dataset is not published (kept private for internal development).
- Recipe: LoRA (
r=64, alpha=128, lr=1e-4, cosine schedule, bf16, assistant-only loss, vision/audio frozen), 2 epochs (1,336 steps) on 10,684 training examples (~7.3k KZRS + ~3.6k plain pairs).
License & Attribution