Tencent releases Hy-MT1.5-1.8B-1.25bit for on-device translation

Tencent's new open-source translation model supports 33 languages and runs locally on smartphones using the Sherry quantization framework to reduce size to 440MB.

cpaua3 min252

Tencent has released Hy-MT1.5-1.8B-1.25bit, an open-source translation model designed to run locally on smartphones without cloud connectivity. The model supports 33 languages and 1,056 translation directions, claiming to outperform larger open-source models like Qwen3-32B and commercial APIs such as Microsoft Translator. By enabling offline processing, the tool ensures data remains on the device while providing high-quality translation.

Reducing model size to 440MB via Sherry quantization

The model utilizes Sherry, a hardware-efficient ternary quantization framework accepted at ACL 2026. This method employs a 3:4 fine-grained sparsity strategy where, for every four weights, the three most significant are stored in 1-bit and the fourth is zeroed out. This process packs four weights into five bits, effectively achieving a 1.25-bit width.

This compression reduces the original 3.3GB FP16 model to approximately 440MB with minimal loss in accuracy. The toolkit used for this compression is AngelSlim, an internal Tencent project for efficient LLM reduction. A 2-bit version of the model is also available, which has a size of 574MB.

Local execution on mobile CPUs with STQ kernel

To ensure smooth performance on ordinary phones, Tencent developed a custom STQ kernel. This kernel provides SIMD instruction set alignment for mobile CPUs, allowing the 1.25-bit model to run efficiently on devices with limited memory. This approach is similar to how other open source tools for Android optimize hardware utilization.

The developers provided an Android demo that includes a background word extraction mode. This feature allows users to translate text within any active application, such as emails or chat messages, without switching apps. The demo has been tested on devices ranging from the Snapdragon 865 to the Snapdragon 7+ Gen 2.

Running the model via llama.cpp

The model is compatible with llama.cpp, and Tencent has submitted a PR (#22836) to the repository to support the STQ1_0 kernel. To set up the environment and run the model, the following commands are used:

bash
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
git fetch origin pull/22836/head:pr-22836-stq_0
git checkout pr-22836-stq_0
pip install -r requirements.txt
cmake -B build
cmake --build build --config Release

To download the weights and quantize the model to STQ1_0 format, users can execute:

bash
pip install huggingface_hub
huggingface-cli download AngelSlim/Hy-MT1.5-1.8B-1.25bit --local-dir model_zoo/Hy-MT1.5-1.8B-1.25bit
python convert_hf_to_gguf.py model_zoo/Hy-MT1.5-1.8B-1.25bit --outfile model_zoo/Hy-MT1.5-1.8B-bf16.gguf --outtype bf16
./build/bin/llama-quantize model_zoo/Hy-MT1.5-1.8B-bf16.gguf model_zoo/Hy-MT1.5-1.8B-STQ1_0.gguf STQ1_0

Once quantized, the model can be tested with a completion command:

bash
./build/bin/llama-completion --model model_zoo/Hy-MT1.5-1.8B-STQ1_0.gguf -p "Translate the following segment into Chinese, without additional explanation. Hello " --jinja -ngl 0 -n 64 -st

Sources

Hugging FaceAngelSlim/Hy-MT1.5-1.8B-1.25bithuggingface.co/AngelSlim/Hy-MT1.5-1.8B-1.25bit
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.