Instructions to use Xylolabs/Hy-MT3-7B-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Xylolabs/Hy-MT3-7B-MLX-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download Xylolabs/Hy-MT3-7B-MLX-4bit --local-dir Hy-MT3-7B-MLX-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Hy-MT3-7B MLX 4-bit
tencent/Hy-MT3-7B (7B parameters, 102 languages) converted to MLX for mlx-lm. Affine quantization, group size 64, scales and biases in float16. 4-bit: every linear weight and the token embedding (also the LM head), except mlp.down_proj and self_attn.v_proj in layers 0-3, 28-31 at 6-bit. Norms in float16.
How to run
pip install mlx-lm==0.32.2
mlx_lm.generate --model Xylolabs/Hy-MT3-7B-MLX-4bit --prompt "Translate the following text into English. Note that you should only output the translated result without any additional explanation:
今天天气很好。"
Accuracy
KL against BF16 on WikiText-2, chat and held-out text. chrF++ is the mean of six directions over 1,200 WMT24++ segments.
| Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 | chrF++ |
|---|---|---|---|---|---|---|---|---|
| MLX 4-bit | 4.35 GB | 0.167002 | 84.980% | 0.055181 | 92.333% | 0.172145 | 86.843% | 43.56 |
| MLX 8-bit | 7.97 GB | 0.001188 | 98.922% | 0.000574 | 99.373% | 0.002071 | 98.725% | 43.75 |
| BF16 | 15.01 GB | 43.75 |
chrF++ by direction:
| Quant | en-zh | zh-en | en-ko | ko-en | en-ja | ja-en |
|---|---|---|---|---|---|---|
| MLX 4-bit | 35.18 | 53.64 | 35.16 | 55.07 | 32.18 | 50.16 |
| MLX 8-bit | 35.57 | 53.63 | 35.58 | 54.98 | 32.48 | 50.24 |
| BF16 | 35.50 | 53.62 | 35.49 | 54.99 | 32.70 | 50.19 |
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| Mac Studio M5 Max, 32-core GPU | 36 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
126K |
| Mac Studio M5 Max, 40-core GPU | 48 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
193K |
| Mac Studio M5 Max, 40-core GPU | 64 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
256K |
| Mac Studio M5 Ultra | 96 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 128 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
256K |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | Xylolabs/Hy-MT3-7B-MLX-8bit (8-bit, 8.0 GB) |
256K |
License
Apache License 2.0. See LICENSE.txt and NOTICE.
Updates
- 2026-11-26: First release.
- Downloads last month
- -
Model size
8B params
Tensor type
U32
·
F16 ·
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for Xylolabs/Hy-MT3-7B-MLX-4bit
Base model
tencent/Hy-MT3-7B