4-bit MLX weights of microsoft/Aion-1.0-Instruct-2.3B for mlx-lm on Apple silicon; mlx-lm has no aion_instruct model type, so this repository includes the model file aion_instruct.py.
pip install mlx-lm==0.32.2
mlx_lm.generate --model Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit --trust-remote-code --prompt "Give me a short introduction to large language models."
--trust-remote-code is required: mlx-lm loads aion_instruct.py only with it.
Mean KL divergence and top-1 agreement against BF16 weights evaluated in float32 on held-out chat and WikiText-2.
| Quant | Size | Mixed-text KL | top-1 |
|---|---|---|---|
| MLX 4-bit | 1.64 GB | 0.01738 | 94.17% |
| MLX 8-bit | 2.43 GB | 0.00047 | 98.96% |
| Hardware | Memory | File | Context |
|---|---|---|---|
| Mac Studio M5 Max (also MacBook Pro 14-inch M5 Max, 32-core GPU) | 36 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
| Mac Studio M5 Max (also MacBook Pro 14-inch M5 Max, 40-core GPU) | 48 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
| Mac Studio M5 Max (also MacBook Pro 14-inch M5 Max, 40-core GPU) | 64 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
| Mac Studio M5 Ultra | 96 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
| Mac Studio M5 Max, 40-core GPU (also MacBook Pro 14-inch) | 128 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
| Mac Studio M5 Ultra | 256 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit (1.64 GB) |
32K |
MIT License, copied in LICENSE. We quantized the weights to MLX 4-bit and added aion_instruct.py, our MLX port of the model code.
model.safetensors (1.6 GB). Checked with mlx-lm 0.32.2; loading needs --trust-remote-code.microsoft/Aion-1.0-Instruct-2.3B