Instructions to use AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB") config = load_config("AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
AtomicChat/Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB
- 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_aandin_proj_bleft 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
Quantized



