Hy-MT3-1.8B — LiteRT-LM

This repository holds tencent/Hy-MT3-1.8B, Tencent's translation model for 102 languages (the publisher's count), as one file for Google's LiteRT-LM runtime: Hy-MT3-1.8B_int8.litertlm (1.83 GB). It runs on the CPU and the GPU of a Snapdragon Galaxy S26 and a Pixel 11 Pro with LiteRT-LM 0.20.0, and on a Mac's CPU and GPU (all run on 2026-11-30; on the Mac's GPU, the example under Usage).

After a 1,024-token prefill it decodes 26.27–26.82 tokens/s on the GPU and 11.59–14.12 tokens/s on the CPU (4 threads) of the Galaxy S26, and 13.90–14.01 tokens/s on the GPU and 4.99–8.42 tokens/s on the CPU (4 threads) of the Pixel 11 Pro (each range spans three iterations in one process; see Performance). Speed still being tuned (updates follow).

On a Mac's CPU, three runs over 400 WMT24++ segments in 10 directions scored 41.13–41.22 chrF++ (the mean of the 10 directions' scores; higher is better), against 41.27 for the original model in Transformers (float32). On the CPU and the GPU of both phones, 40 of those segments scored 53.97–54.32 chrF++ over the 40, against the original model's 53.33 on the same 40.

Translate a text on a computer with one command, litert-lm run hy-mt3/Hy-MT3-1.8B_int8.litertlm --backend cpu --top-k 1 --prompt "…", where the prompt is the publisher's translation instruction followed by your text (setup and a full example under Usage).

The file's context is 4,096 tokens, prompt and translation together, so split longer texts. Use one message per conversation, each text in a new conversation: every translation check on this page did so, and a second message in one conversation was not tested. Not run with this file: Linux and Windows computers, iOS, any NPU, and Android GPUs other than the Galaxy S26's Adreno and the Pixel 11 Pro's PowerVR.

Hy-MT3-1.8B, the smallest of the three Hy-MT3 sizes (1.8B, 7B and 30B-A3B), is a dense hunyuan_v1_dense model with 1.79B parameters: 32 layers, hidden size 2048, 16 query and 4 KV heads (GQA) with QK-norm, head_dim 128, a 120,818-token vocabulary and tied embeddings.

File What is inside Size sha256
Hy-MT3-1.8B_int8.litertlm int8 weights in the fully connected layers and the embedding table; prefill signatures of 128 and 1,024 tokens and a decode signature; the tokenizer and the chat template 1.83 GB (1,827,115,008 bytes) 3f85ee21ad6b1b86991a5510ec4669098cea54763a9c46b6aad4d8936d265963

Every run of this file on this page used these bytes (the sha256 above).

Correctness

Translation quality on a Mac's CPU. 400 WMT24++ segments whose English text is at most 600 characters, 40 in each of 10 directions (in each direction, 10 each of news, social, literary and speech), with the publisher's default translation prompt. The original model ran in Transformers 5.14.1 (float32, 4 threads); this file ran three times with LiteRT-LM 0.20.0 (CPU, 4 threads, a fresh engine for each segment). Both decoded greedily, up to 512 tokens. The score is corpus chrF++ per direction (sacrebleu 2.6.0, word order 2).

Direction Original model Run 1 Run 2 Run 3
en → zh_CN 29.75 29.63 29.71 29.56
en → ja_JP 28.50 28.27 28.20 28.35
en → de_DE 53.45 53.72 53.76 53.66
en → fr_FR 59.17 58.43 58.65 58.19
en → ko_KR 32.83 32.50 32.47 32.96
en → hi_IN 36.99 36.57 36.68 36.23
en → th_TH 44.24 44.24 44.47 44.25
en → ar_EG 31.16 31.32 31.09 31.26
zh_CN → en 49.44 49.39 49.52 49.31
ja_JP → en 47.21 47.55 47.64 47.54
Mean of the 10 41.27 41.16 41.22 41.13

The pass criteria, set before the runs: a mean at least the original's minus 1.0, every direction at least the original's minus 3.0, no empty output, and no more outputs at the 512-token cap, or with fewer than half of their letters in the target language's script, than the original model's. All three runs pass. The largest drop in one direction is 0.985 points (run 3, en → fr_FR). No output is empty or reaches the cap; each run, like the original model, has 2 outputs with fewer than half of their letters in the target script.

On the phones. 40 of the 400 segments, the first four rows of each direction (segments 1, 2, 3 and 5 of one news document, its only segments in the 400), decoded greedily with LiteRT-LM 0.20.0 (up to 512 tokens), one engine for all 40 and a new conversation for each. Corpus chrF++ over the 40: Galaxy S26 CPU 54.32 and GPU 53.97, Pixel 11 Pro CPU 54.32 and GPU 54.30, the original model 53.33. The pass criteria, set before the runs: at least the original's minus 2.0, no empty output, and no more outputs at the cap than the original's (none). All four pass.

  • Prompts. LiteRT-LM 0.20.0 renders all 400 prompts exactly as Transformers does with the publisher's chat template. On the phones, each of the 40 prompts came to as many tokens as in Transformers (2,789 in all).
  • Tokenizer. The file's tokenizer is the publisher's tokenizer.json, byte for byte.
  • Start token. The chat template writes the start token itself, so the file declares no start token for LiteRT-LM to add; the default export would have fed it twice.
  • Stop token. The file's stop token is 120020, the publisher's end-of-sequence token; the original model stopped there on all 400 segments.
  • Run-to-run text. Greedy output on the CPU is not the same in every run: the three Mac runs did not all give the same text on 306 of the 400 segments, with means within 0.09 points of each other.

Usage

Hy-MT3 takes translation instructions; the publisher's card gives the prompts. In the English prompt, name the target language in full, in English (for example "French"). On a computer, litert-lm 0.20.0 needs Python 3.10 or newer, so run this in a virtual environment of such a Python:

pip install litert-lm==0.20.0 huggingface_hub
hf download litert-community/Hy-MT3-1.8B Hy-MT3-1.8B_int8.litertlm --local-dir hy-mt3
PROMPT='Translate the following text into French. Note that you should only output the translated result without any additional explanation:

The train to the airport leaves every fifteen minutes from platform two.'
litert-lm run hy-mt3/Hy-MT3-1.8B_int8.litertlm --backend cpu --top-k 1 --prompt "$PROMPT"

# GPU
litert-lm run hy-mt3/Hy-MT3-1.8B_int8.litertlm --backend gpu --top-k 1 --prompt "$PROMPT"

Run as written on 2026-11-30 on a Mac (Apple silicon, macOS 27.0), in a new Python 3.14.6 venv (the pip line installed litert-lm 0.20.0 and huggingface_hub 2.5.0): both commands printed Le train pour l'aéroport part toutes les quinze minutes depuis la plateforme deux., the same bytes on the CPU and on the Mac's GPU.

--top-k 1 decodes greedily, as every translation check on this page did. The file carries no sampler settings; for this model size the publisher's card (at commit 3e6f986e) recommends temperature 0.7, top-p 0.6, top-k 20 and repetition penalty 1.05.

Every translation check on this page used the publisher's default prompt as plain text, without the bold marks of their table: in English, and in Chinese for zh_CN → en. Their card lists six more prompt forms (terminology, style, personalization, delimiters and two for structured data), which were not checked here.

On Android, the phone numbers on this page come from LiteRT-LM 0.20.0's Python API on the phones (the Android arm64 wheel of litert-lm-api on PyPI), run from adb shell. The file was not run in an app or through LiteRT-LM's Kotlin API.

Performance

Android phones

A Snapdragon Galaxy S26 (SM-S942Q, SM8850, Adreno GPU) on Android 16 and a Pixel 11 Pro (PowerVR GPU) on Android 17, LiteRT-LM 0.20.0, 2026-11-30. Each row is one process: one engine, then three benchmark iterations on it, each a 1,024-token prefill and 256 decoded tokens in a 2,048-token context; each range spans the three iterations. CPU = XNNPACK with 4 threads (4 busy threads, counted from /proc during the iterations). GPU = OpenCL with fp16 activations: the file declares no activation type, and LiteRT-LM 0.20.0's log gives fp16 as its default for the text decoder. On both phones the GPU took every node of prefill_128, prefill_1024 and decode, in one partition each.

Phone Backend Prefill (1,024 tokens) Decode (256 tokens) Time to first token Engine creation Peak (VmHWM) MemAvailable, start → lowest
Galaxy S26 GPU 685.7–803.2 tok/s 26.27–26.82 tok/s 1.31–1.53 s 2.59 s 0.81 GiB 6.55 → 3.21 GiB
Galaxy S26 CPU, 4 threads 170.7–335.2 tok/s 11.59–14.12 tok/s 3.13–6.09 s 0.23 s 3.03 GiB 6.68 → 5.37 GiB
Pixel 11 Pro GPU 397.7–454.4 tok/s 13.90–14.01 tok/s 2.32–2.65 s 2.74 s 0.55 GiB 8.97 → 5.83 GiB
Pixel 11 Pro CPU, 4 threads 26.95–94.82 tok/s 4.99–8.42 tok/s 10.92–38.19 s 0.66 s 2.71 GiB 8.93 → 7.93 GiB
  • Clocks. Each process started at Android thermal status 1 with no CPU or GPU cap. During the CPU processes the phones capped their CPUs: in 33 of 34 samples (one every 2–3 s) on the Galaxy S26, whose CPU clock ceiling fell to 32 % of its maximum, and in 79 of 81 samples on the Pixel 11 Pro. Iterations 2 and 3 were slower than iteration 1 on both CPUs, so the fast end of each CPU range is iteration 1. During the GPU processes the Galaxy S26 capped its GPU in 13 of 17 samples and its CPU in 16, and the Pixel 11 Pro its GPU in none of 28 and its CPU in 16.
  • First engine creation and caches. The engine creation in the table read caches beside the model file, which the 40-segment check before it had written. That first creation, with no cache present, took 3.64 s on the Galaxy S26 GPU, 2.26 s on its CPU, 20.29 s on the Pixel 11 Pro GPU and 4.60 s on its CPU. The CPU's cache, an XNNPACK cache file, takes 1.80 GB on both phones. The GPU writes a program cache and a weight cache: 7.2 MB and 296 bytes on the Galaxy S26, 8.2 MB and 1.79 GB on the Pixel 11 Pro. On the GPU, the later process loaded its compiled programs from the cache without a DATA_LOSS error.
  • Memory. VmHWM is the process's peak resident memory and MemAvailable the memory the phone reports as available, both read from /proc. On the GPU, MemAvailable fell by much more than VmHWM: by 3.34 GiB on the Galaxy S26, whose GPU driver allocations (kgsl) peaked at 3.34 GiB, and by 3.14 GiB on the Pixel 11 Pro.

Conversion notes

The file was made from the source at commit 3e6f986e with hf-to-litertlm at commit 483cac9, whose converter exports with litert-torch 0.9.4 (recipe dynamic_wi8_afp32, with Transformers 5.14.1, PyTorch 2.13.0 and litert-lm-builder 0.18.0).

  • Rope. The source's dynamic rope with alpha 1000 is baked into a fixed rope_theta of 11,158,839.925, which the converter records as faithful up to position 262,144, far past this file's 4,096 tokens.
  • Chat template. The file's template is the publisher's, with its three reads of a message's content made to accept a list of text parts as well as a string.

Two of the converter's tools at the same commit then gave the graph its GPU form and added the 1,024-token prefill. These steps used litert-lm and litert-lm-builder 0.19.1; every check of the finished file on this page used LiteRT-LM 0.20.0.

  • gpu_graph_retrofit.py turns the KV-cache writes into odml.cache_update composites and the attention products into odml.runtime_bmm composites, and rewrites the attention mask and the transposes and reshapes that feed the V cache to match; the weight bytes stay the same.
  • prefill_bucket_clone.py adds prefill_1024, a copy of prefill_128 for 1,024 tokens; the existing signatures and the weight bytes stay the same.

Known runtime issues

  • Android GPU with LiteRT-LM v0.18.0 and v0.18.1. This file keeps some of its weights outside the model graph (LiteRT's external weights), and on a Pixel 8a the GPU backend of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on a Qwen3-0.6B file with external weights (LiteRT-LM #3986). This file's Android GPU runs used LiteRT-LM 0.20.0 only (the Snapdragon Galaxy S26 and the Pixel 11 Pro above, 2026-11-30).
  • A conversation preface with no messages. In LiteRT-LM's source from v0.14.0 to main at commit ee50b5bb (2026-10-23), a conversation preface with no messages that is rendered on its own renders the chat template with an empty message list: at creation with SetPrefillPrefaceOnInit(true) (C++) or prefillPrefaceOnInit (web; Kotlin from v0.15.0), off by default, when the preface has tools or extra context, and in renderPrefaceIntoString() (Kotlin, Swift) and the C API's preface render, even for an empty preface. This file's template reads messages[0] without checking that the list is non-empty; with LiteRT-LM 0.18.1, this template then failed with Failed to apply template: undefined value. LiteRT-LM 0.20.0 was not checked for this. The default path, where the first message is rendered together with the preface, is not affected, and a system message in the preface avoids it.
  • macOS's own Python. On our Mac (macOS 27.0), /usr/bin/python3 is Python 3.9.6; with it, pip install litert-lm==0.20.0 stops with ERROR: Could not find a version that satisfies the requirement litert-lm==0.20.0.

License

LICENSE.txt in this repository is the original model's license, copied byte for byte from tencent/Hy-MT3-1.8B at commit 3e6f986e. It says "Copyright (C) 2026 Tencent. All rights reserved." and "Tencent Hy-MT3 is licensed under Apache-2.0." Hy-MT3-1.8B_int8.litertlm is that model converted to LiteRT-LM, with int8 weights (see the file table above).

Downloads last month
30
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for litert-community/Hy-MT3-1.8B

Quantized
(28)
this model