Instructions to use mlx-community/Z1T-0-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Z1T-0-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("mlx-community/Z1T-0-mlx") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use mlx-community/Z1T-0-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "mlx-community/Z1T-0-mlx" --prompt "Once upon a time"
- Atomic Chat
Z1T-0 (MLX)
MLX conversion of Extropic-AI/Z1T-0 β the first open-weight Z1T, an attention-free, DyT-normed, fixed-sparsity decoder LM designed for Extropic's Z1 probabilistic hardware (research post, code).
The original is a JAX/Equinox checkpoint (.eqx) with a bespoke architecture (no softmax
attention: causal depthwise conv + causal cumulative pool; tanh-linear fixed fan-in-4 sparse
projections; Dynamic-Tanh as the only norm). This repo ports it to MLX and ships it as
safetensors + a GPT-2 tokenizer.
Faithfulness: greedy decoding is token-for-token identical to the JAX reference; logits
match to max|Ξ|β1.4e-2 (float32 accumulation-order noise), with 100% per-position argmax
agreement.
Files
model.safetensorsβ weights (float32, ~1.24B params; dominated by the 50257Γ12288 embed/unembed).config.jsonβmodel_type: z1t+ architecture fields.tokenizer.json/vocab.json/merges.txt/tokenizer_config.jsonβ standard GPT-2 BPE.mlx_z1t.py,run.pyβ self-contained MLX inference (no JAX, no mlx-vlm needed).
Usage β standalone (no dependencies beyond MLX)
pip install mlx numpy tiktoken safetensors
python run.py "The meaning of life is" 60
Usage β via mlx-vlm
Requires the z1t model in mlx-vlm (mlx_vlm/models/z1t/):
from mlx_vlm import load, generate
model, processor = load("AlazarM/Z1T-0-mlx")
print(generate(model, processor, "The meaning of life is", max_tokens=60, temperature=0.0).text)
Notes
- This is a portability port (runs on Apple Silicon), not a throughput build. Prefill is ~150 Β΅s/token on an M5 Max; single-token decode is unoptimized.
- The checkpoint ships a numerically-zero positional table (AFTConv already encodes position).
- The model is a small 4-layer research artifact; generations are short and repetitive.
Original weights Β© Extropic, Apache-2.0. This conversion redistributes them unmodified in MLX form.
- Downloads last month
- -
Quantized
Model tree for mlx-community/Z1T-0-mlx
Base model
Extropic-AI/Z1T-0