Instructions to use EigenLabs/Qwen3.6-27B-MLX-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use EigenLabs/Qwen3.6-27B-MLX-6bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("EigenLabs/Qwen3.6-27B-MLX-6bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use EigenLabs/Qwen3.6-27B-MLX-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "EigenLabs/Qwen3.6-27B-MLX-6bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "EigenLabs/Qwen3.6-27B-MLX-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use EigenLabs/Qwen3.6-27B-MLX-6bit 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 "EigenLabs/Qwen3.6-27B-MLX-6bit"
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 EigenLabs/Qwen3.6-27B-MLX-6bit
Run Hermes
hermes
- OpenClaw new
How to use EigenLabs/Qwen3.6-27B-MLX-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "EigenLabs/Qwen3.6-27B-MLX-6bit"
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 "EigenLabs/Qwen3.6-27B-MLX-6bit" \ --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"
- MLX LM
How to use EigenLabs/Qwen3.6-27B-MLX-6bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "EigenLabs/Qwen3.6-27B-MLX-6bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "EigenLabs/Qwen3.6-27B-MLX-6bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EigenLabs/Qwen3.6-27B-MLX-6bit", "messages": [ {"role": "user", "content": "Hello"} ] }'
Qwen3.6-27B-MLX-6bit
A 6-bit quantization of Qwen/Qwen3.6-27B for Apple Silicon (MLX). In our evaluation this is the low-degradation sweet spot: statistically indistinguishable from the BF16 model while being ~2.6× smaller and faster.
- 6.50 bits/weight, ~21 GB on disk
- ~25 tok/s decode, ~22 GB peak memory on an Apple M5 Max
- Weight-only affine quant (activations stay FP16),
group_size=64 - Effectively lossless (see measurements)
Want smaller/faster and can accept a measurable quality cost? See the mixed-4bit build (17 GB, ~30 tok/s). Want maximum fidelity? See the 8-bit build.
Measured quality (vs BF16)
Perplexity, KL-divergence, and top-1 agreement against the BF16 model on a fixed 650-token multi-domain passage. Indicative smoke test, not a full benchmark — a relative comparison between builds.
| Build | bpw | size | ppl | Δppl vs BF16 | KL(bf16‖q) | top-1 agree |
|---|---|---|---|---|---|---|
| BF16 (reference) | 16 | 55.6 GB | 6.622 | — | — | — |
| 8-bit | 8.5 | 27 GB | 6.635 | +0.20% | 0.0018 | 97.7% |
| 6-bit (this model) | 6.5 | 21 GB | 6.595 | −0.41%¹ | 0.0087 | 96.6% |
| mixed-4bit | 5.36 | 17 GB | 6.977 | +5.36% | 0.0405 | 91.5% |
| uniform-4bit | 4.50 | 15 GB | 6.989 | +5.53% | 0.0651 | 89.8% |
¹ within noise — 6-bit is statistically indistinguishable from BF16 on this sample. There is a sharp quality "cliff" below 6-bit: dropping to 4-bit costs ~+5% perplexity and ~6 points of top-1 agreement.
Usage
pip install mlx-lm
mlx_lm.generate --model EigenLabs/Qwen3.6-27B-MLX-6bit \
--prompt "Explain gated delta networks in two sentences." --max-tokens 256
from mlx_lm import load, generate
model, tokenizer = load("EigenLabs/Qwen3.6-27B-MLX-6bit")
messages = [{"role": "user", "content": "What is 17*23?"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=256))
Qwen3.6 is a reasoning model — the chat template opens a <think> block, so responses begin with a chain of thought.
About the model
Qwen3.6-27B is a hybrid architecture: 48 of 64 layers use Gated-DeltaNet linear attention and 16 use full softmax attention, with a 262K context window. At 6-bit, quantization error is negligible across all layer types, so this build uses a uniform 6-bit affine scheme (group_size=64) rather than mixed precision.
Requirements & notes
- Apple Silicon with MLX; ~24 GB free unified memory. Comfortable on 32 GB+, ideal on 48 GB+ for long context.
- Text-only. The MLX
qwen3_5implementation does not load the model's MTP head or its vision tower (usemlx-vlmseparately for images). - Hybrid Gated-DeltaNet layers run on the Metal GPU.
How it was made
from mlx_lm import convert
convert("Qwen/Qwen3.6-27B", mlx_path="Qwen3.6-27B-MLX-6bit", quantize=True, q_bits=6, q_group_size=64)
Tokenizer, chat template, and generation config are copied verbatim from the base model.
License & attribution
Apache 2.0, inherited from Qwen/Qwen3.6-27B (© Alibaba / Qwen team). This is a quantized derivative produced by EigenLabs. Please cite the original Qwen3.6 model.
- Downloads last month
- 226
6-bit
Model tree for EigenLabs/Qwen3.6-27B-MLX-6bit
Base model
Qwen/Qwen3.6-27B