Language and instructions
Choose the Target language. Koharu’s own system prompt, Index-Translate’s translation instruction in English, asks the model to translate each page into it and to answer in the same JSON. Add your own under Additional instructions, in any language and form, such as the spelling of names, terminology, tone, pronouns, or text that should remain untranslated; Koharu adds them, as written, after its own prompt. Test them on several pages after correcting OCR. LFM3 1.7B is made for a limited set of target languages. Other local and hosted models accept every target language Koharu offers.How pages are translated
Translation is one conversation per open project: one turn per page, in page order, so each page sees the pages translated before it. See translation for what the model receives. Translating selected text blocks is a turn of the same conversation. Changing the model, the target language, or the instructions starts a new one. Each page is sent as its texts in reading order, and the answer must return every one. A text the model gives back unchanged, such as a copyright line, keeps its original lettering: its clean-up is hidden and it gets no translation. Koharu retries a page’s translation when:- The answer is malformed or misses a text: once.
- The answer copies the page before’s: once, without the earlier pages.
- The provider blocks the page or its answer for its content: once, without the earlier pages, which may be what it blocked.
- The page doesn’t fit the model’s context window, or fills it: once, without the older half of the earlier pages.
- A local model’s answer is cut off, as when it keeps repeating itself: up to twice, with more randomness, since it would otherwise answer the same way.
Options
A model that can’t take the reasoning level you choose, such as Off on a model that always reasons, stops the run and names the setting. Vision works only with a model that reads images; any other model translates without the page image. Both options add time, and on Koharu’s own tests with Index-Translate 9B neither read better, so try them on a few pages before keeping them.
Local quantization
Koharu’s local models load their default quantization. To choose another, set the model in~/.koharu/config.toml with the quantization after a colon, for example model = "koharu/index-translate-9b:Q8_0" under [pipeline.translator]. Smaller files need less memory, usually at a quality cost. Hosted providers control their own serving precision.
Generated translations remain editable project data. Review the wording and page layout before export.