Downloads · 30 days
60
5% of all-time downloads
mlx-community/granite-4.0-h-tiny-3bit-MLX
granite-4.0-h-tiny-3bit-MLX is a text generation model from mlx-community. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
Downloads · 30 days
60
5% of all-time downloads
All-time downloads
1.2K
Public
Parameters
6.9B
3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors3 GB · 100%
How the weights are stored.
U326.9B · 100%
From the Hugging Face model README
Maintainer / Publisher: Susant Achary
This repository provides an Apple-Silicon-optimized MLX build of IBM Granite-4.0-H-Tiny with 3-bit weight quantization (plus usage guidance for 2/4/5/6-bit variants if RAM allows).
Granite 4.0 is IBM’s latest hybrid Mamba-2/Transformer family with selective Mixture-of-Experts (MoE), designed for long-context, hyper-efficient inference and enterprise use. :contentReference[oaicite:0]{index=0}
This MLX build targets Granite-4.0-H-Tiny (≈ 7B total, ≈ 1B active parameters). For reference, the family also includes H-Small (≈32B total / 9B active) and Micro/Micro-H (≈3B dense/hybrid) tiers. :contentReference[oaicite:5]{index=5}
config.json (MLX), mlx_model*.safetensors (3-bit shards), tokenizer files, and processor metadata.The upstream Hugging Face model cards for Granite 4.0 (Tiny/Small) provide additional training details, staged curricula and alignment workflow. Start here for Tiny: ibm-granite/granite-4.0-h-tiny. :contentReference[oaicite:6]{index=6}
| Tier | Arch | Params (total / active) | Notes |
|---|---|---|---|
| H-Small | Hybrid + MoE | ~32B / 9B | Workhorse for enterprise agent tasks; strong function-calling & instruction following. :contentReference[oaicite:10]{index=10} |
| H-Tiny (this repo) | Hybrid + MoE | ~7B / 1B | Long-context, efficiency-first; great for local dev. :contentReference[oaicite:11]{index=11} |
| Micro / H-Micro | Dense / Hybrid | ~3B | Edge/low-resource alternatives; when hybrid runtime isn’t optimized. :contentReference[oaicite:12]{index=12} |
Context Window: up to 128k tokens for Tiny/Base preview lines. :contentReference[oaicite:13]{index=13}
License: Apache-2.0. :contentReference[oaicite:14]{index=14}
Empirically on M-series Macs:
Performance varies by Mac model, image/token lengths, and temperature; validate on your workload.
| Variant | Typical Peak RAM (7B-class) | Relative speed | Typical behavior | When to choose |
|---|---|---|---|---|
| 2-bit | ~3–4 GB | 🔥🔥🔥🔥 | Smallest footprint; most lossy | Minimal RAM devices / smoke tests |
| 3-bit (this build) | ~5–6 GB | 🔥🔥🔥🔥 | Direct, concise, great latency | Default for local dev on M1/M2/M3/M4 |
| 4-bit | ~6–7.5 GB | 🔥🔥🔥 | Better detail retention | When you need stronger faithfulness |
| 5-bit | ~8–9 GB | 🔥🔥☆ | Higher fidelity | For heavy docs / structured outputs |
| 6-bit | ~9.5–11 GB | 🔥🔥 | Max quality under MLX quant | If RAM headroom is ample |
Figures are indicative for language-only Tiny (no vision), and will vary with context length and KV cache size.
# Plain generation (deterministic)
python -m mlx_lm.generate \
--model <this-repo-id> \
--prompt "Summarize the following notes into 5 bullet points:\n<your text>" \
--max-tokens 200 \
--temperature 0.0 \
--device mps \
--seed 0