Downloads · 30 days
5
12% of all-time downloads
sahilchachra/Tessera-4B-Preview-int4-mlx
Tessera-4B-Preview-int4-mlx is a machine learning model from sahilchachra. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as cc-by-nc-4.0.
MLX quantization of sahilchachra/Tessera-4B-Preview for Apple Silicon.
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
42
Public
Parameters
4.2B
2.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 99%
How the weights are stored.
U324.2B · 100%
From the Hugging Face model README
MLX quantization of sahilchachra/Tessera-4B-Preview for Apple Silicon.
Variant: Affine int4
Disk size: 2277 MB
Quantized by: sahilchachra
Evaluated on Apple M5 Pro with MLX. Model loaded once; performance and quality measured in a single pass.
| This model | FP16 baseline | |
|---|---|---|
| Decode tok/s (avg, long traces) | 98.2 | 31.96 |
| Peak memory (GB) | 3.003 | 8.82 |
| Disk size (MB) | 2277 | 8907 |
| Benchmark | This model | FP16 baseline | n |
|---|---|---|---|
| MATH-500 (math reasoning) | 86.7% (answered 27/30) | 86.7% (answered 28/30) | 30 |
| IFEval (instruction following) | 50.0% | 30.0% | 30 |
| GSM8K (math, accuracy) | 90.0% | 93.3% | 30 |
| HumanEval (code, pass@1) | 83.3% | 86.7% | 30 |
| MMLU (knowledge, accuracy) | 63.3% | 56.7% | 30 |
| Level | This model | FP16 baseline |
|---|---|---|
| level 1 | 100.0% | 83.3% |
| level 2 | 100.0% | 100.0% |
| level 3 | 83.3% | 66.7% |
| level 4 | 66.7% | 83.3% |
| level 5 | 83.3% | 100.0% |
| Context length | Decode tok/s |
|---|---|
| ~128 tokens | 100.3 |
| ~256 tokens | 100.1 |
| ~512 tokens | 100.2 |
| ~1024 tokens | 99.9 |
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("sahilchachra/tessera-4b-4bit-mlx")
response = generate(model, tokenizer, prompt="Your prompt here", max_tokens=256, verbose=True)
| Model | Variant |
|---|---|
| sahilchachra/tessera-4b-4bit-mlx | Affine int4 ← this model |
| sahilchachra/tessera-4b-8bit-mlx | Affine int8 |
| sahilchachra/tessera-4b-mxfp4-mlx | Block float MX FP4 |
| sahilchachra/tessera-4b-mxfp8-mlx | Block float MX FP8 |
| sahilchachra/tessera-4b-optiq-5bpw-mlx | OptiQ mixed-precision (target 5.0 bpw) |
See sahilchachra/Tessera-4B-Preview for full model details and intended use.