Downloads · 30 days
69
39% of all-time downloads
pierrelamy/sarvam-105b-mlx-q6
sarvam-105b-mlx-q6 is a text generation model from pierrelamy. 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.
This is an MLX 6-bit affine quantization of sarvamai/sarvam-105b, converted from the public BF16 checkpoint abhinand/sarvam-105b-bf16.
Downloads · 30 days
69
39% of all-time downloads
All-time downloads
177
Public
Parameters
106B
86.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors86.2 GB · 100%
How the weights are stored.
U32106B · 100%
From the Hugging Face model README
This is an MLX 6-bit affine quantization of sarvamai/sarvam-105b, converted
from the public BF16 checkpoint abhinand/sarvam-105b-bf16.
The model is a base/pretrain text-generation model using the sarvam_mla
architecture: DeepSeek-V3-style MLA attention plus sigmoid MoE routing. It is
not an instruction-tuned chat model.
We tested both q4 and q6 locally on Apple Silicon. The q4 conversion loads and runs, but it is not usable: it collapses to whitespace with probability 1.0 across sanity prompts. The q6 conversion is coherent and passed real-weight validation, so q6 is the published practical checkpoint.
Local validation summary:
| Quant | Size | Result |
|---|---|---|
| q4, group size 64 | 56 GB | Broken: collapsed whitespace forward |
| q6, group size 64 | 80 GB | Coherent top-token and generation checks |
Example q6 top-token probes:
| Prompt | Top prediction |
|---|---|
The capital of France is | Paris |
def add(a, b):\n return | a |
Measured locally on an Apple Silicon M5 Max host with 128 GB unified memory.
sarvam_mla port during
conversion.The q4 collapse was investigated against RoPE, config mapping, and the
kv_b_proj sanitize path; those matched the reference implementation. The
failure is attributed to naive 4-bit quantization of this large
DeepSeek-style MLA-MoE model's activation outliers.
This artifact includes the custom configuration/modeling files referenced by
auto_map. Use MLX tooling with remote/local custom code support as needed.
from mlx_lm import load, generate
model, tokenizer = load("pierrelamy/sarvam-105b-mlx-q6")
response = generate(model, tokenizer, prompt="The capital of France is", max_tokens=32)
print(response)
sarvamai/sarvam-105babhinand/sarvam-105b-bf16model.safetensors.index.json: 86,202,965,504 bytesmodel.safetensors.index.json: 106,031,767,424