Downloads · 30 days
1.5K
20% of all-time downloads
orcarouter/Qwen3.8-27B-MLX
Qwen3.8-27B-MLX is a image-text-to-text model from orcarouter. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
Downloads · 30 days
1.5K
20% of all-time downloads
All-time downloads
7.8K
Public
Parameters
27.4B
72.6 GB on disk
Likes
27
Public
Click a slice to open those files.
.safetensors88.6 GB · 100%
How the weights are stored.
U3226.9B · 98%
From the Hugging Face model README
An MLX build of the official
Qwen/Qwen3.8-27B— a 27B dense hybrid-attention (Gated DeltaNet linear + full attention) native vision-language model with thinking control, tool-calling and an MTP head — quantized to MLX for Apple Silicon. Three precisions (4 / 6 / 8-bit, affine) as subfolders, the 4-bit build also mirrored at the repo root (soorcarouter/Qwen3.8-27B-MLXloads directly in LM Studio), plus a separatemtp/drafter for speculative decoding. The vision tower, norms and conv layers stay in BF16; only language-model linear weights (incl.embed_tokens/lm_head) are quantized. Browse all models in the OrcaRouter Model Catalog; deployed as API here.
| Folder | Bits | Group size | Size | Min Mac RAM | Quality vs BF16 |
|---|---|---|---|---|---|
8-bit/ | 8 | 32 | ~31 GB | 32–64 GB | Near-lossless — best quality |
6-bit/ | 6 | 32 | ~24 GB | 32 GB | Excellent balance |
4-bit/ | 4 | 64 | ~16 GB | 24 GB | Very good — recommended default |
mtp/ | bf16 | — | ~0.9 GB | — | MTP drafter (speculative decoding) |
Repo root =
4-bit/.--model orcarouter/Qwen3.8-27B-MLX(no subfolder) resolves to 4-bit.
Measured on this build: KL divergence and Top-1 token agreement of each quantized precision against the full-precision BF16 reference (wikitext-2, 1024 tokens, MLX CUDA backend). Lower KLD / higher Top-1 = closer to full precision.
| Precision | Mean KLD | KLD p95 | Top-1 agreement |
|---|---|---|---|
| 8-bit | 0.00068 | 0.00233 | 98.34 % |
| 6-bit | 0.00216 | 0.00795 | 96.97 % |
| 4-bit | 0.02824 | 0.10857 | 92.68 % |
8-bit / 6-bit are near-lossless (Top-1 ≈ 97–98 %); 4-bit stays very close (Top-1 ≈ 93 %) — the recommended default for everyday use.
Qwen3.8-27B has a native MTP head. In MLX it is loaded as a separate drafter: the main model
is loaded with MTP stripped, and the drafter is passed explicitly. The drafter lives in
mtp/ (model_type: qwen3_5_mtp, block_size 3) and works with any main precision.
hf download orcarouter/Qwen3.8-27B-MLX --include "6-bit/*" "mtp/*" --local-dir ./Qwen3.8-27B-MLX
python -m mlx_vlm generate \
--model ./Qwen3.8-27B-MLX/6-bit \
--draft-model ./Qwen3.8-27B-MLX/mtp \
--draft-kind mtp --draft-block-size 4 \
--prompt "Explain quantum entanglement in one sentence." --max-tokens 256
Requirements: an mlx-vlm build with the qwen3_5_mtp drafter and --draft-kind mtp (mlx-vlm
main). MTP acceptance is lossless — greedy output is identical, just fewer forward passes.
pip install -U mlx-vlm # needs mlx-vlm >= 0.6.13, mlx >= 0.32
hf download orcarouter/Qwen3.8-27B-MLX --include "4-bit/*" --local-dir ./Qwen3.8-27B-MLX
# text
python -m mlx_vlm generate --model ./Qwen3.8-27B-MLX/4-bit \
--prompt "Explain quantum entanglement in one sentence." --max-tokens 256
# vision (image + text)
python -m mlx_vlm generate --model ./Qwen3.8-27B-MLX/4-bit \
--image path/to/image.png --prompt "Describe this image." --max-tokens 256
# OpenAI-compatible server
python -m mlx_vlm server --model ./Qwen3.8-27B-MLX/4-bit --port 8080
On Apple Silicon the Metal backend is used automatically. (On a Linux CUDA backend, vision requires
MLX_CUDA_USE_CUDNN_SDPA=0; not needed on macOS.)
Repo root is the 4-bit build. Two things: turn off KV-cache quantization (unsupported on this
vision arch — load fails otherwise), and update the MLX runtime (Settings → Runtime) — qwen3_5
support landed in mlx-vlm 0.6.x.
Following the widespread community adoption of the Qwen3.5 and Qwen3.6 series, Qwen3.8 is the most capable generation in the Qwen open-model family to date. Built on the architectural foundation of Qwen3.5, Qwen3.8-27B is a compact, deployment-friendly dense model: a native vision-language model that understands images and videos, with flexible thinking control, designed to carry complex, multi-step tasks through to completion with greater reliability.
reasoning_effort, retain reasoning context via preserve_thinking.mtp/ drafter)temp=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0temp=0.7, top_p=0.80, top_k=20, min_p=0.0, presence_penalty=1.5max-tokens; give ≥ 2048 headroom so the final answer isn't
truncated by the thinking budget.@misc{qwen38,
title = {Qwen3.8: A New Bar for Coding and Cowork},
url = {https://qwen.ai/blog?id=qwen3.8},
author = {{Qwen Team}},
month = {August},
year = {2026}
}
Apache 2.0, inherited from Qwen/Qwen3.8-27B.
Quantization does not change the underlying license obligations.