prism-ml/Bonsai-4B-mlx-1bit
- License
- apache-2.0
- Size
- not mirrored yet
No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from prism-ml/Bonsai-4B-mlx-1bit
All models by prism-ml →No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from prism-ml/Bonsai-4B-mlx-1bit
All models by prism-ml →
Prism ML Website | Whitepaper | Demo & Examples | Colab Notebook | Discord
End-to-end 1-bit language model for Apple Silicon
12.8x smaller than FP16 | 4.8x faster on M4 Pro | 60 tok/s on iPhone | runs on Mac, iPhone, iPad
Each weight is a single bit: 0 maps to −scale, 1 maps to +scale. Every group of 128 weights shares one FP16 scale factor.
MLX's quantization formats generally store both a scale and a bias per group: w = mlx_scale * bit + mlx_bias. To pack our scale-only 1-bit weights into this format:
This reconstructs −scale when bit=0 and +scale when bit=1. Because MLX stores two FP16 values per group (scale + bias) instead of one, the effective bits per weight is slightly higher than the GGUF format:
Parameter memory only (weights and scales loaded into memory):
The model directory on disk is ~0.64 GB (~16 MB larger) because it also includes tokenizer, config, and other metadata files alongside the weights.
You can use a simple system prompt such as:
Requires PrismML fork of MLX with 1-bit kernel support (upstream PR pending):
1-bit Bonsai 4B runs natively on iPhone and iPad via MLX Swift. Requires our mlx-swift fork with 1-bit kernels (upstream PR pending).
If you use 1-bit Bonsai 4B, please cite:
For questions, feedback, or collaboration inquiries: contact@prismml.com
mlx_scale = 2 * original_scalemlx_bias = −original_scaleYou are a helpful assistantpip install mlx-lmpip install mlx @ git+https://github.com/PrismML-Eng/mlx.git@prismfrom mlx_lm import load, generate
model, tokenizer = load("prism-ml/Bonsai-4B-mlx-1bit")
response = generate( model, tokenizer, prompt="Explain quantum computing in simple terms.", max_tokens=256,)print(response)@techreport{bonsai, title = {Bonsai: End-to-End 1-bit Language Model Deployment Across Apple, GPU, and Mobile Runtimes}, author = {Prism ML}, year = {2026}, month = {March}, url = {https://prismml.com}}