Specifications
Artifacts
The FP16 reference weights (8.05 GB) are in the ternary GGUF repo.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Half the footprint of 8B. Made for low memory edge deployments
| Parameters | ~4B |
| Max context | 32,768 tokens (native 8,192, extended 4x via YaRN) |
| Modalities | Text |
| License | Apache 2.0 |
| Family | Format | Repository | On disk |
|---|---|---|---|
| Bonsai (1-bit) | GGUF | prism-ml/Bonsai-4B-gguf | 0.57 GB |
| Bonsai (1-bit) | MLX | prism-ml/Bonsai-4B-mlx-1bit | 0.63 GB |
| Ternary (1.58-bit) | GGUF | prism-ml/Ternary-Bonsai-4B-gguf | 1.07 GB |
| Ternary (1.58-bit) | MLX | prism-ml/Ternary-Bonsai-4B-mlx-2bit | 1.13 GB |
BONSAI_MODEL=4B ./scripts/run_llama.sh -p "Summarize this file: ..."
BONSAI_MODEL=4B ./scripts/start_llama_server.sh # OpenAI-compatible API on :8080
./llama-cli -m ./Bonsai-4B-gguf/Bonsai-4B-Q1_0.gguf -c 0 -p "Hello"
mlx_lm.generate --model prism-ml/Ternary-Bonsai-4B-mlx-2bit --prompt "Hello"