Instructions to use netprojects/Hy-MT3-30B-A3B-LayerFit-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Hy-MT3-30B-A3B-LayerFit-MLX-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download netprojects/Hy-MT3-30B-A3B-LayerFit-MLX-4bit --local-dir Hy-MT3-30B-A3B-LayerFit-MLX-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Hy-MT3-30B-A3B LayerFit MLX 4-bit
tencent/Hy-MT3-30B-A3B (revision 08ae9ac), Tencent's strongest Hy-MT3 translation model (about 100 languages, mixture of experts with
about 3B active parameters per token), for Apple Silicon, built with LayerFit™: a per-layer search that spends the bits where the
model needs them most. 16.9 GB on disk.
| Build | Size | Suggested Mac memory |
|---|---|---|
| 4-bit (this build) | 16.9 GB | 24 GB |
| 3-bit | 13.2 GB | 18 GB |
| 6-bit · 8-bit | larger | our standard builds; LayerFit adds little at 6 bits and above |
LayerFit: same size, closer to the original
A standard quant gives every layer the same bits. LayerFit measures how much each part of the model suffers at low bits (the experts, the shared expert and attention of every layer, the embeddings and the output head), then fills the same size budget where it helps most:
| Same size, same test | Top-1 agreement with bf16 | Error (KL) |
|---|---|---|
| Standard 4-bit (same bits in every layer) | 90.4% | 0.1270 |
| LayerFit 4-bit | 91.6% | 0.0787 (38% lower) |
Our harness: weights against our bf16 conversion of tencent/Hy-MT3-30B-A3B, passages in many languages. The exact recipe is in layerfit-recipe.json.
Translations. On the 10 translation prompts we use for all our Hy-MT3 builds (into Greek, Chinese, Japanese, German, French, Spanish, Arabic and Russian, and from Greek and Chinese into English), this build passes 10/10 and picks the same next token as bf16 at 98.0% of 204 positions. Our standard 4-bit build of the same size agrees with bf16 on 97.1% of the same positions; this LayerFit build on 98.0%. Measured on a MacBook Pro M5 Max, 27 November 2026, mlx-lm 0.32.
Use
pip install -U "mlx-lm>=0.32.2"
mlx_lm.generate --model netprojects/Hy-MT3-30B-A3B-LayerFit-MLX-4bit --trust-remote-code --temp 0.7 --top-p 1.0 --max-tokens 1024 \
--prompt "Translate the following text into Greek. Note that you should only output the translated result without any additional explanation:
The museum opens at nine in the morning."
Hy-MT3-30B-A3B uses the hy_v3 architecture, which mlx-lm does not ship yet: this repository includes hy_v3.py (our MLX
implementation, the same as in our standard builds) and config.json points to it, so pass --trust-remote-code /
trust_remote_code=True. The router stays in float32 and is not quantized. Tencent's recommended settings: temperature 0.7,
top_p 1.0, up to 4,096 new tokens. See the original model card for Tencent's results and prompt templates.
Licence
Apache-2.0, as tencent/Hy-MT3-30B-A3B. LICENSE.txt is Tencent's file, unchanged; NOTICE describes the conversion.
Built by Paris Michalas, NetProjects. LayerFit™ is a NetProjects trademark. Not affiliated with Tencent.
- Downloads last month
- 60
4-bit
Model tree for netprojects/Hy-MT3-30B-A3B-LayerFit-MLX-4bit
Base model
tencent/Hy-MT3-30B-A3B