---
title: "How to Run Hy-MT3 Locally With llama.cpp: VRAM and Sizes"
url: "https://goremy.ai/blog/articles/hy-mt3-run-locally-llama-cpp"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-30T00:00:21.212Z"
updated: "2026-11-30T00:00:21.212Z"
topic: Local AI
description: "Run Tencent's Hy-MT3 translation model locally with llama.cpp: what VRAM the 30B Q8 needs, when to pick 7B or 1.8B, and the 8192 context limit."
---

# How to Run Hy-MT3 Locally With llama.cpp: VRAM and Sizes

> Run Tencent's Hy-MT3 translation model locally with llama.cpp: what VRAM the 30B Q8 needs, when to pick 7B or 1.8B, and the 8192 context limit.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-30

## What does it take to run Hy-MT3 locally?

You need a GGUF file of Hy-MT3, a recent build of llama.cpp, and enough memory to hold the model. In one public test, the 30B-A3B model at Q8 quantization used more than 31 GB of VRAM on a 48 GB GPU. If you have less, Tencent also released 7B and 1.8B versions with their own GGUF files. Set the context to 8192 tokens, which is the model's stated maximum, and use a plain translation prompt.

## TL;DR

- **Hy-MT3 comes in three sizes**: 1.8B, 7B, and 30B-A3B, and each has a GGUF version made for llama.cpp.
- **The 30B Q8 setup used over 31 GB of VRAM** in a demonstration on a 48 GB GPU, so it needs a big card or a workstation.
- **The 7B and 1.8B versions are the realistic choice** for ordinary laptops and consumer graphics cards.
- **The context limit is 8192 tokens**, so asking for 100+ languages in one reply can get cut short. Batch your languages instead.
- **A quantized model makes more mistakes** than the full-precision benchmarks suggest, especially with less common scripts.
- **Test on your own language pairs** before relying on it for real work.

## What is Hy-MT3?

Hy-MT3 is the third generation of Tencent's open Hy translation models. It covers 102 languages, up from 38 in Hy-MT2. It comes in three sizes: 1.8B, 7B, and 30B-A3B. The "A3B" means it is a mixture-of-experts (MoE) model. It has 30 billion parameters in total, but only about 3 billion are active when it generates each word.

Tencent says it follows instructions better than the previous generation. You can give it a glossary of terms, ask for a tone, tell it to keep delimiters or code tags untouched, or give it background text. It is also tuned for game localization and for translating text pulled from images through OCR (software that reads text in pictures).

The benchmark claims come from Tencent's own model card. They say the 30B-A3B model beats several large general models in non-thinking mode and approaches the strongest closed thinking models. Treat that as the developer's claim. Independent tests, including the one described below, found a more mixed picture on the quantized model.

## Which Hy-MT3 size should I pick?

Pick the biggest one that fits in your memory with room left over for the context. The table below uses the model card's details plus standard rules of thumb for memory.

| Model | Type | Good for | Rough memory at Q8 |
|---|---|---|---|
| Hy-MT3-1.8B | Dense | Phones, older laptops, quick drafts | A few GB |
| Hy-MT3-7B | Dense | Consumer GPUs, most desktops | Roughly 8 GB |
| Hy-MT3-30B-A3B | MoE, 3B active | Workstations, 48 GB-class GPUs | 30 GB and up |

The last column is an estimate, not a published figure. At Q8, a model needs about one byte per parameter, plus extra for the context. The one measured number we have is the 30B model using more than 31 GB of VRAM on a 48 GB card.

The 30B-A3B has a quirk. Only 3 billion parameters work on each word, so generation is fast for its size. But all 30 billion must still sit in memory, because any of them might be needed next. It is cheap to run per word and expensive to store.

## How much VRAM do you need?

VRAM is the memory on your graphics card. A model that fits entirely in VRAM runs much faster than one split between the card and regular RAM.

- **30B-A3B at Q8:** plan for 32 GB or more of free VRAM. The demo used over 31 GB on a 48 GB GPU.
- **30B-A3B at a lower quant:** a 4-bit file is roughly half the size of Q8 in general, which can bring it within reach of a 24 GB card. Check the actual file sizes in the GGUF repository before you download.
- **7B:** comfortable on a 12 GB to 16 GB card at Q8, and smaller still at 4-bit.
- **1.8B:** runs on very modest hardware, including CPU-only setups, though slowly.

Quantization shrinks a model by storing its numbers with less precision. Q8 loses little quality. Lower quants save more memory and lose more. For translation, the losses tend to show up first in lower-resource languages and unusual scripts.

llama.cpp can also push some layers to regular RAM if the model does not fully fit. It works, and it is slower.

## How do you set it up with llama.cpp?

1. **Update llama.cpp.** The demonstration used the latest version. A new model release often needs a recent build, so pull and rebuild before you try.
2. **Download a GGUF file.** The repositories are `tencent/Hy-MT3-1.8B-GGUF`, `tencent/Hy-MT3-7B-GGUF`, and `tencent/Hy-MT3-30B-A3B-GGUF` on Hugging Face. Choose the quant that fits your memory.
3. **Start the server.** This example uses placeholder filenames, so use your own:

```
llama-server -m ./Hy-MT3-7B-Q8_0.gguf -c 8192 -ngl 99 --port 8080 \
  --temp 0.7 --top-p 0.6 --top-k 20 --repeat-penalty 1.05
```

4. **Open the built-in web interface** at `http://localhost:8080`, or send requests to the server's OpenAI-compatible API from your own scripts.
5. **Use the recommended sampling settings.** For 1.8B and 7B, the model card suggests temperature 0.7, top_p 0.6, top_k 20, and repetition penalty 1.05. For 30B-A3B, use temperature 0.7, top_p 1.0, top_k disabled, and repetition penalty 1.0. Set max tokens to 4096.
6. **Leave the system prompt empty.** The models do not have a default one.

The `-ngl 99` flag tells llama.cpp to put every layer on the GPU. Lower it if you run out of memory.

## How should you prompt it?

Use the full language name in the target slot, in the same language as your prompt. The model card gives templates. The default one looks like this:

```
Translate the following text into {target_lang}. Note that you should only output the translated result without any additional explanation:

{source_text}
```

To enforce your own terminology, put a glossary above the instruction:

```
Reference the following translations:
{term A} translates to {translation A}
{term B} translates to {translation B}

Translate the following text into {target_lang}. Note that you must ONLY output the translated result without any additional explanation:

{source_text}
```

The card also has templates for style, personalization, delimiters, structured data (JSON and similar), and background information. For app strings or game text, the structured data template tells the model to leave keys, tags, and placeholders like `%s` or `{{var}}` alone.

## What are the context limits when translating many languages at once?

The model card lists a maximum context of 8192 tokens. That budget covers your prompt and the model's reply together. Translating one sentence into 102 languages produces a very long reply, and non-Latin scripts often use many tokens per word.

That showed up in the public test. When one prompt asked for all 102 languages, the quantized 30B model returned about 85 in one run, 92 in another, and about 97 in a harder one. The creator suspected the context window for the last case. The one run that finished all 102 was the short game-message test, where the structure (player name, gem count, color tags) stayed intact in every language.

You can avoid this:

- Translate into 5 to 10 target languages per request, not 100.
- Loop over languages in a script and send one request per language.
- Keep each source text short, or split long documents by paragraph.
- Check the reply count in code so a skipped language gets retried.

## How good is Hy-MT3 when run locally?

In that test, the Q8 30B model handled structure well. It kept names, numbers, and tags intact, and it kept product names like "ghost mode" in English. It read through scan errors in a messy two-line text, though it kept a flight code with a letter O instead of a zero.

It was weaker in other places:

- **Script mix-ups.** Some outputs came back in the wrong writing system, such as Thai text appearing in Chinese, or Mongolian and Kazakh in Cyrillic when another script was expected.
- **Slang and idioms.** Some languages translated a game slang phrase literally.
- **Southeast Asian languages** had the most trouble.
- **Skipped languages** when the output got long.

Major languages like French, Spanish, and German mostly held up. The reviewer's verdict was an okay model for well-known languages, with room to improve, and little visible gain over Hy-MT2. That was one quantized run on a small set of prompts, not a benchmark.

## What this means for you

**If you handle sensitive documents** (contracts, HR files, customer data), a local model keeps text on your own machine. That is the main reason to bother with this setup.

**If you localize apps, games, or support content,** the structure-preserving prompts are the most useful part. Start with the 7B model for your top languages, compare it to what you use now, and move up to 30B only if the quality gap justifies the hardware.

**If you need rare languages,** test each one with a native speaker before you commit. Do not assume that "102 languages" means equal quality across all of them.

**If you are not technical,** ask your IT team for help with the llama.cpp step. After that, the web interface works like any chat window.

## Can I build a small translation tool around this?

Probably, and the useful part is often not the model but the wrapper: a form where colleagues paste text, pick a language, and get a result that follows your approved glossary, with a log of past requests. You can describe a tool like that to [Remy](https://goremy.ai) in plain English and get a deployed app with a database and sign-in. Remy apps use AI models from its catalog, and it can register custom or self-hosted models or reach local models over a secure tunnel. If you want a shared internal translation request tracker, you do not have to patch together spreadsheets to build one.

## Frequently Asked Questions

### Can Hy-MT3 run on a laptop?

The 1.8B and 7B versions can. The 7B at a 4-bit or 8-bit quant fits on many consumer graphics cards, and the 1.8B can run on modest hardware. The 30B model is a poor fit unless you have a high-memory GPU or a lot of RAM and patience.

### Is the 30B model faster than a normal 30B model?

Per generated word, it should be closer to a 3B model in compute, because only about 3 billion parameters are active. You still need memory for all 30 billion, so the saving is in speed, not in storage.

### Why did the model skip some languages?

The most likely reason is the 8192-token context, which limits how much it can write in one reply. Asking for 100 languages in one request is a stress test. Send smaller batches for dependable results.

### Does quantization hurt translation quality?

Somewhat. Q8 keeps most of the quality, but the public test showed script errors and slang mistakes that the model card's benchmarks do not mention. Higher precision or a larger model may do better on your language pair, so test it.

### Do I need a system prompt?

No. The models ship without a default system prompt. Put your instructions and glossary in the user message using the templates above.
