MLX
Safetensors
llama
text-generation-inference
edit-prediction
next-edit-suggestion
4-bit precision
Instructions to use randmaru/Mellum-4b-base-mlx-mxfp4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use randmaru/Mellum-4b-base-mlx-mxfp4 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Mellum-4b-base-mlx-mxfp4 randmaru/Mellum-4b-base-mlx-mxfp4
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
randmaru/Mellum-4b-base-mlx-mxfp4
This is an MXFP4 MLX quantization of JetBrains/Mellum-4b-base for Apple Silicon inference.
MXFP4 vs 4Bit Quantization Comparison
| Parameter | MXFP4 |
4Bit |
|---|---|---|
| Quantization format | 4鈥慴it floating point with microscaling, group 32, shared exponent E8M0 | 4鈥慴it integer (INT4/NF4) |
| Tensor types | U8, U32, BF16 | BF16, U32 |
Parameter size (safetensors) |
~2.14 GB (2,135,555,369 bytes) | ~2.26 GB (2,261,175,474 bytes) |
| Total storage (all files) | ~2.14 GB (2,142,623,163 bytes) | ~2.27 GB (2,270,778,309 bytes) |
| Hardware support | Most efficient on GPUs with microscaling / FP8 tensor core support | Broad support, but often requires specialized INT4 kernels |
| Apple Silicon compatibility | Designed with hardware microscaling support in Apple Neural Engine / GPU | Works, but without specialized Neural Engine optimization |
| Inference speed | Higher on compatible hardware: FP path, lower dequantization overhead, higher throughput | Kernel鈥慸ependent; usually lower or comparable at similar quality |
| Quality | Better preserves dynamic range, less degradation on outliers | Higher risk of accuracy loss on outliers at the same bitrate |
Key takeaways:
- Parameter size: The MXFP4 version has a slightly smaller
safetensorsfile (~2.14 GB vs ~2.26 GB). This reflects the actual file sizes from the respective repositories; the MXFP4 format with microscaling and floating鈥憄oint storage (U8/U32/BF16) results in a more compact representation in this case compared to the integer version (BF16/U32). - Total storage: MXFP4 also occupies less total disk space (~2.14 GB vs ~2.27 GB) when summing all files in the repository. This indicates more efficient packaging and/or fewer auxiliary files.
- Performance: MXFP4 typically delivers higher inference throughput (tokens/s) on hardware with microscaling/FP8 support, especially on Apple Silicon. The shared exponent per group of 32 elements reduces dequantization overhead and enables the use of floating鈥憄oint tensor cores, which can be faster than conventional INT4 kernels.
- Apple Silicon optimization: The MXFP4 format was developed with the hardware capabilities of Apple chips (M鈥憇eries) in mind, particularly the Neural Engine, which natively supports microscaling. Therefore, MXFP4 is the recommended choice for MacBook and offers the best balance of speed and quality on these devices.
- Quality: MXFP4 preserves the dynamic range of weights better, so generation quality can be higher at the same compression level.
Actual speed depends on the backend, GPU, batch size, and quantization implementation.
- Downloads last month
- -
Model size
0.8B params
Tensor type
U8
路
U32 路
BF16 路
Hardware compatibility
Log In to add your hardware
4-bit
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support
Model tree for randmaru/Mellum-4b-base-mlx-mxfp4
Base model
JetBrains/Mellum-4b-base