Qwen3.6-27B
MLX 4-bit · Text + Vision + Thinking + Tool Calling
Apple Silicon native
What's this?
Qwen3.6-27B is a 27B-parameter dense model from Alibaba. It uses a hybrid linear/full attention architecture (3:1 ratio across 64 layers) that combines efficient DeltaNet-style linear attention with full softmax attention at regular intervals. It supports 262K context, vision, video, and multi-token prediction.
This is an MLX 4-bit conversion of the official Qwen3.6-27B weights, ready to run on Apple Silicon with full text, image, and video support. At 4.6 bits/weight, this fits in 16 GB of memory — ideal for 24 GB Macs.
Architecture details
This conversion
- Source: Official Qwen3.6-27B safetensors (BF16, 15 shards)
- Quantization: 4-bit (4.6 bits/weight, 15 GB across 3 shards)
- Vision: Full support via
mlx-vlm. Text, image, and video inputs work out of the box
- Thinking: Toggleable via
<|think_on|> / <|think_off|> tags (see below)
- Tool calling: Works via the included fixed Jinja chat template
- Requirements:
mlx-lm >= 0.31.2, mlx-vlm >= 0.4.4
Quick start
Text
Vision
CLI
System prompt
The first line of your system prompt must be:
The model underperforms without it. You can append anything after that line.
Thinking toggle
This model ships with a fixed Jinja chat template that lets you toggle thinking on the fly. Drop <|think_on|> or <|think_off|> anywhere in your system or user prompt. The template intercepts the tag, strips it from context so the model never sees it, and flips the thinking mode.
Fast answer, no internal reasoning.
The model thinks step by step, then answers.
Chat template
The bundled Jinja template fixes several issues in the official Qwen 3.6 template:
- Tool calls crash on C++ engines. The official template uses Python's
|items filter and |safe, which do not exist in C++ Jinja runtimes (LM Studio, MLX). This template uses direct dictionary key lookups instead.
- The
developer role crashes. Modern APIs send message.role == "developer". The official template throws an exception. This template maps it to system.
- Empty
preserve_thinking spam. The official template wraps every past turn in empty <think/> blocks, wasting context tokens. This template only emits thinking blocks when they contain actual reasoning content.
</thinking> hallucination handling. The model sometimes generates </thinking> instead of the expected closing tag. This template handles both gracefully.
- Thinking toggle.
<|think_on|> / <|think_off|> from any message role.
See chat_template.README.md [blocked] for the full breakdown.
Sampling
From the official Qwen authors. Reserve 128K+ context for thinking mode.
GGUF runtimes use presence_penalty (0 = off). MLX / LM Studio use repeat_penalty (1.0 = off).
Links
Authorship
License
Apache-2.0, inherited from Qwen3.6.