AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB

Atomic Chat Discord GitHub X
  • Built by the team behind Atomic Chat, the app that runs open-weight models locally and offline.

Qwen/Qwen3.8-27B for MLX on Apple Silicon, with the vision tower: 3.80 bits per weight in the language model, 13.69 GB on disk in one model.safetensors.

  • Layout: our per-tensor layout (Atomic Dynamic). Full-attention keys and values 8-bit, output 4-bit, queries 3-bit; linear-attention projections 4-bit, their small in_proj_a and in_proj_b left in bf16; MLP gate 3-bit (group 128), up 3-bit, down 3-bit with 5-bit in 16 of the 64 blocks; token embeddings and output head 3-bit (group 128). Group size 64 unless noted.
  • Bits per weight: 3.80, averaged over the language model's 26.9B weights, scales and offsets included. The vision tower (0.46B weights, 0.92 GB) stays in bf16.
  • How it was made: from our bf16 MLX conversion of the original (AtomicChat/Qwen3.8-27B-MLX-bf16): each tensor at its own bit count and group size, with a clipping search for each group's quantization range, then DWQ, which tunes the quantization scales and offsets by distillation with our 8-bit MLX build as the teacher, in a short run of one to two hours on one GPU.
  • Base model: Qwen/Qwen3.8-27B by Qwen. License: apache-2.0, as the original.

How close it is to the original

Against our bf16 MLX conversion, on held-out neutral text (24 chunks of 4096 tokens, the second half of each chunk scored): mean KL divergence 0.148, and it picks the same next token as the bf16 model 82.3% of the time (log: logs/kld-Qwen3.8-27B-MLX-AD-3.8b-DWQ.json). Our MLX harness on 1x H200 NVL, mlx-lm 0.31.3 and mlx-vlm 0.6.15.

Repository Layout Bits per weight On disk Mean KLD Same top-1
AD-3.50bpw-DWQ-12.7GB uniform 3-bit 3.50 12.69 GB 0.215 79.6%
AD-3.70bpw-DWQ-13.4GB mlx-lm mixed_3_4 3.70 13.37 GB 0.166 82.4%
AD-3.80bpw-DWQ-13.7GB (this one) per-tensor, ours 3.80 13.69 GB 0.148 82.3%
AD-4.50bpw-DWQ-16.0GB uniform 4-bit 4.50 16.05 GB 0.053 89.5%
AD-5.00bpw-DWQ-17.7GB per-tensor, ours 5.00 17.74 GB 0.031 91.5%

For scale, plain 3-bit and 4-bit conversions (group 64, no clipping search, no DWQ) measured 0.223 / 78.5% and 0.056 / 89.1% on the same stand.

These are MLX numbers. llama.cpp tokenizes and batches the text differently, so they cannot be compared with the KL divergence in our GGUF card.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB")

prompt = "hello"

if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True, return_dict=False,
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)

mlx-lm runs the text model. For image input, use mlx-vlm (pip install mlx-vlm) with the same repository id.

Limitations

  • Measured on CUDA. We have no Mac run of this file on record, and image input was not tested on it.
  • KL divergence and top-1 come from one held-out text set; they do not measure chat, tools or long context.

Quantization and evaluation by AtomicChat.

Downloads last month
167
Safetensors
Model size
27B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB

Base model

Qwen/Qwen3.8-27B
Finetuned
(844)
this model
Finetunes
1 model

Collection including AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB