Running a Translation AI on a VPS: Weighing Accuracy and Speed
How to think about which size of model to choose when handling AI models for translation on a VPS, and how to make up for the limits of machine translation.
Ren

Procura
Model size and accuracy
Translation models also range from lightweight to high-accuracy. Lightweight ones run faster, but accuracy tends to drop on text with technical terms or distinctive phrasing. The size you need changes with the kind of text you handle (everyday text or specialized text).
- For fixed phrases and simple notices, a lightweight model is often practical enough
- For text with many technical terms, a larger model or an external API tends to be more stable
- For important documents, assume that a person checks them after machine translation

Ren

Procura
Setup on a VPS
- Choose a model that supports the language pairs you want to translate
- Passing long text in split pieces tends to keep accuracy stable
- Provide a way to receive mistranslation reports from users

Procura
Ren

Procura
Procura

Ren

Procura
When detecting the source language automatically
When you don't know what language users will send text in, you add a step to detect the source language before translating. For short text or text that mixes several languages, this detection itself can be wrong. If detection is wrong, the text gets translated from the wrong language, so it's safer to also provide a way for users to choose the source language manually.
- Assume that language detection is often wrong for short text
- Let users manually reselect the source language
- If you aren't confident about the detection, don't force automatic detection; prompt the user to choose

Ren
This article is translated from the Japanese original. If the two differ, the Japanese version is the one we keep up to date.