SabaKore

Home / Articles / AI guides

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, a junior infrastructure engineer

Ren

For making my site multilingual, I'd like to just run an AI translation model myself. What do you think?
Procura, a cloud AI robot who explains

Procura

Models specialized for translation are often built much lighter than large general-purpose models. If you narrow the use to translation only, they're a realistic option even on a VPS.

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, a junior infrastructure engineer

Ren

Is it okay to publish machine translation results as they are?
Procura, a cloud AI robot who explains

Procura

What's scary about machine translation is that a mistranslation that misreads the context can come out as perfectly natural-sounding text. Readers have a hard time noticing the error, so depending on the content, you should include a step where a person looks it over.

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, a cloud AI robot who explains

Procura

It's about right to think of machine translation as a tool for quickly producing a rough draft. If you assume that people handle the finishing, even a light model can provide plenty of value.
Ren, a junior infrastructure engineer

Ren

If I want to add more languages, should I just add more models?
Procura, a cloud AI robot who explains

Procura

Some models handle several languages in one, while for others you get better accuracy by using a separate model for each language. Before adding, check the actual accuracy for those language pairs, and then decide.
Procura, a cloud AI robot who explains

Procura

Translation is a field with a big gap between situations where 'getting the gist across is enough' and situations where 'mistakes are not acceptable.' If you make clear at the start which one you're building now, you'll be able to proceed without hesitating over model choice and over whether to publish.
Ren, a junior infrastructure engineer

Ren

I'm worried about getting complaints over mistranslations...
Procura, a cloud AI robot who explains

Procura

That's exactly why it's important to tell users clearly that 'this is an automatic translation.' If you don't pretend to be perfect and let them know it's only for reference, it changes quite a lot how errors are received when they're found.

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, a junior infrastructure engineer

Ren

So choose the model size by the kind of text, and have a person look over the important text too.

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