MLX quants
Collection
92 items • Updated
How to use Xylolabs/Hy-MT3-1.8B-MLX-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download Xylolabs/Hy-MT3-1.8B-MLX-8bit --local-dir Hy-MT3-1.8B-MLX-8bit
tencent/Hy-MT3-1.8B (1.8B parameters, 102 languages) converted to MLX for mlx-lm.
pip install mlx-lm==0.32.2
mlx_lm.generate --model Xylolabs/Hy-MT3-1.8B-MLX-8bit --prompt "Translate the following text into English. Note that you should only output the translated result without any additional explanation:
今天天气很好。"
KL against BF16 on WikiText-2, chat and held-out text, with chrF++ as the six-direction mean 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 | 1.04 GB | 0.070610 | 85.275% | 0.070797 | 87.020% | 0.080821 | 85.294% | 40.91 |
| MLX 8-bit | 1.90 GB | 0.000859 | 98.225% | 0.000559 | 98.961% | 0.000940 | 98.529% | 41.64 |
| BF16 | 3.58 GB | 41.84 |
chrF++ by direction:
| Quant | en-zh | zh-en | en-ko | ko-en | en-ja | ja-en |
|---|---|---|---|---|---|---|
| MLX 4-bit | 33.54 | 50.47 | 33.09 | 51.20 | 30.36 | 46.83 |
| MLX 8-bit | 34.25 | 50.27 | 34.14 | 51.73 | 31.86 | 47.58 |
| BF16 | 34.54 | 50.24 | 34.10 | 51.63 | 32.81 | 47.71 |
| Hardware | Memory | File | Context |
|---|---|---|---|
| Mac Studio M5 Max, 32-core GPU | 36 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 48 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 64 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
| Mac Studio M5 Ultra | 96 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 128 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | Xylolabs/Hy-MT3-1.8B-MLX-8bit (8-bit, 1.9 GB) |
256K |
Apache License 2.0. See LICENSE.txt and NOTICE.
8-bit
Base model
tencent/Hy-MT3-1.8B