Downloads · 30 days
80
4% of all-time downloads
mlx-community/LFM2-8B-A1B-3bit-MLX
LFM2-8B-A1B-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 other.
Maintainer / Publisher: Susant Achary Upstream model: LiquidAI/LFM2-8B-A1B This repo (MLX 3-bit): mlx-community/LFM2-8B-A1B-3bit-MLX
Downloads · 30 days
80
4% of all-time downloads
All-time downloads
2K
Public
Parameters
8.3B
4.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors4.2 GB · 100%
How the weights are stored.
U328.3B · 100%
From the Hugging Face model README
Maintainer / Publisher: Susant Achary
Upstream model: LiquidAI/LFM2-8B-A1B
This repo (MLX 3-bit): mlx-community/LFM2-8B-A1B-3bit-MLX
This repository provides an Apple-Silicon-optimized MLX build of LFM2-8B-A1B at 3-bit quantization.
3-bit is an excellent size↔quality sweet spot on many Macs—very small memory footprint with surprisingly solid answer quality and snappy decoding.
Memory reality on a single device: Even though ~1B parameters are active at a time, all experts typically reside in memory in single-device runs. Plan RAM based on total parameters, not just the active slice.
config.json (MLX), mlx_model*.safetensors (3-bit shards)tokenizer.json, tokenizer_config.jsonmodel_index.json (and/or processor metadata as applicable)Target: macOS on Apple Silicon (M-series) using Metal/MPS.
max_tokens and batch size.You asked to assume and decide realistic ranges. The numbers below are practical starting points—verify on your machine.
total_params × 0.375 byte → for 8B params ≈ ~3.0 GB| Context window | Estimated peak RAM |
|---|---|
| 4k tokens | ~4.4–5.5 GB |
| 8k tokens | ~5.2–6.6 GB |
| 16k tokens | ~6.5–8.8 GB |
For ≤2k windows you may see ~4.0–4.8 GB. Larger windows/batches increase KV-cache and peak RAM.
While this card is 3-bit, teams often publish multiple precisions. Use this table as a planning guide (8B MoE LM; actuals depend on context/batch/prompts):
| Variant | Typical Peak RAM | Relative Speed | Typical Behavior | When to choose |
|---|---|---|---|---|
| 3-bit (this repo) | ~4.4–8.8 GB | 🔥🔥🔥🔥 | Direct, concise, great latency | Default on 8–16 GB Macs |
| 6-bit | ~7.5–12.5 GB | 🔥🔥 | Best quality under quant | Choose if RAM allows |
| 8-bit | ~9.5–12+ GB | 🔥🔥 | Largest quantized size / highest fidelity | When you prefer simpler 8-bit workflows |
MoE caveat: MoE lowers compute per token; unless experts are paged/partitioned, memory still scales with total parameters on a single device.
Deterministic generation
python -m mlx_lm.generate \
--model mlx-community/LFM2-8B-A1B-3bit-MLX \
--prompt "Summarize the following in 5 concise bullet points:\n<your text>" \
--max-tokens 256 \
--temperature 0.0 \
--device mps \
--seed 0