Hy-MT3 keeps game code out of the translation, but your names need a glossary

Tencent's open Hy-MT3 30B translated a game string table into 10 languages on one 48 GB card: 214 of 216 strings kept every placeholder.

Ten languages, twelve game strings each, and every key came back where it belonged. Hy-MT3, Tencent's new open family of translation models, can now take a game's string table and return it translated without breaking the code inside. We ran its largest model, the official 8-bit build, on one 48 GB RTX A6000 on our cloud. Of 216 translated strings, 214 kept every {player_name}, %d and <color> tag intact. It translated 12 strings a second when we sent 16 at a time.

If you ship software in several languages, that is the number to care about. A broken placeholder can crash a screen, and a bad sentence rarely does. The model is Apache 2.0 and runs on stock vLLM, an open-source model server, so you can put it on your own 48 GB card today. Two catches: names need the authors' glossary template, and a 32 GB card ran it only slowly.

Same quest text from English to Spanish. Left, the default prompt in two runs, with the invented names changing between runs. Right, the authors' glossary template, with the glossary terms Fragmento de Brasa and Guardamareas

A 30B model that does 3B of work per word

Hy-MT3 is the third generation of Tencent's Hy translation models. It comes in three sizes, 1.8B, 7B and 30B-A3B, where B means billions of parameters. Coverage grew from 38 languages in Hy-MT2 to 102: the 38 carried over plus 64 new ones.

The 30B is a mixture of experts. Picture a team of 128 specialists. Every word consults 8 of them plus one generalist who always sits in, and the rest wait. That is the "A3B": about 3B parameters work on each word, out of 30B. The catch is storage. All 30B still sit in the card's memory, about 31 GB in the 8-bit build.

The model page also ships ready-made instructions, called prompt templates. One for structured files says: "NEVER translate or alter code tags, keys, properties, object names, or variable placeholders." We held the model to it.

What we found: the code survived, two strings slipped

We wrote a 12-string table for a fictional game, full of {player_name}, %d, ${seconds}, <b> tags and [icon:trophy]. Words are for people, placeholders are for the game. A script checked the JSON, the keys and every placeholder.

What we checkedResult
Valid JSON, same keys10 of 10 languages
Placeholders kept, one table per language119 of 120 strings
Placeholders kept, batch of 96 strings in 8 languages95 of 96 strings

Each table took 3.2 to 4.9 seconds in a single request. The two slips both came in languages new to Hy-MT3. In Icelandic, a <b> tag lost its closing bracket. In Basque, {item_name} became {Eitema_name}, as if the model had started to translate the variable itself. Greek, Welsh and Catalan are new too, and they were clean.

Names were the other lesson. Without a glossary, the model invented a Spanish name for the "Tidewardens" faction, and a different one each run: "Guardacuellas", then "Guardacorrientes". Both are fluent Spanish, and neither is the name. A band's name on a tour poster reads the same in every city, and a game's names should too. With the glossary template, the names came out as written in 7 of 7 runs, in Spanish and German.

Who should care, and what to try

  • A team with game or app strings in major languages: worth a trial. The Spanish, German, Catalan, Japanese, Greek and Arabic tables read naturally.
  • Anyone with product or character names: send them through the glossary template every time.
  • Teams shipping in the 64 new languages: keep a placeholder check and a native reviewer, Basque first. It was the weakest language, with a garbled clause in a story paragraph.
  • A 48 GB card: the 30B ran at full speed on the A6000, 116 to 117 tokens a second for one request.
  • A 32 GB card: a real RTX 5090 started only after we moved 3 GB of the model to main memory, and then ran 16 times slower.
  • A 16 to 24 GB card: start with the 7B 8-bit build. On the A6000 told to use only 16 GB, it peaked at about 15 GB and translated 25 strings a second.

The cheap fix for the slips is the one any pipeline should have anyway: check the placeholders of every translated string before it goes into a build, and send the failures back. Running it on your own card also keeps unreleased game text on a machine you control.

Getting there took no special build. The model page says to compile vLLM yourself; the standard vLLM 0.34.0 download served the official 8-bit build as is. From a fresh machine to ready took 365.2 seconds, about six minutes.

The honest limit: short strings and paragraphs, one run per language, and no other vendor's model ran the same table, so these counts have nothing outside the family to compare with.

The model, its templates and its game-localization data are the work of Tencent Hy and the Honor of Kings team, and the vLLM project serves its architecture. We spotted it in an AI Search news video. Our part was the game string bench, its placeholder check, the memory tests on a real RTX 5090 and the SDK example.

Read the full test, with the slips, the memory ladder and the step-by-step example, in the Hy-MT3 Research post.