Hy-MT2-1.8B is Tencent's multilingual translation model covering 40+ languages.
Quantization: Affine integer quantization
Precision: 8-bit (~8.5 bits/weight avg)
Group size: 64
Disk size: 1824 MB
Quantized by:
sahilchachra
Affine quantization at 8-bit with group size 64. Closest to FP16 translation quality. Recommended when memory allows and translation accuracy is the priority.
Evaluated on Apple M5 Pro with MLX. Model loaded once; performance and quality measured in a single pass.
1from mlx_lm import load, generate
2
3model, tokenizer = load("sahilchachra/hy-mt2-1.8b-8bit-mlx")
4
5prompt = (
6 "Translate the following text from English to French.\n"
7 "English: The early bird catches the worm.\n"
8 "French:"
9)
10print(generate(model, tokenizer, prompt=prompt, max_tokens=128, verbose=True))
1from mlx_lm import load, stream_generate
2
3model, tokenizer = load("sahilchachra/hy-mt2-1.8b-8bit-mlx")
4for chunk in stream_generate(model, tokenizer, prompt="Translate \"Hello world\" to Japanese:", max_tokens=64):
5 print(chunk.text, end="", flush=True)
See
tencent/Hy-MT2-1.8B for full model details, supported languages, and intended use.