CoolFace
Modelpublic

Vontra/Qwen3.8-27B-oQ8

sourceHugging Faceapache-2.0updated 17d agoView on Hugging Face
1likes369downloads
Model Card

<p align="center"> <a href="https://qwenlm.github.io/"><img src="qwen-logo.png" width="96" height="95" alt="Qwen"></a><br> <img src="https://img.shields.io/badge/Apple_Silicon-MLX-000000?style=for-the-badge&logo=apple&logoColor=white" alt="Apple silicon MLX"> <img src="https://img.shields.io/badge/Vontra-oMLX-6E56CF?style=for-the-badge&logo=huggingface&logoColor=white" alt="Vontra oMLX"> </p>

<h1 align="center">Qwen3.8-27B — oQ8</h1>

<p align="center"> An oMLX-produced 8-bit conversion of <a href="https://huggingface.co/Qwen/Qwen3.8-27B">Qwen/Qwen3.8-27B</a>, packaged for MLX-VLM and oMLX on Apple silicon. </p>

<p align="center"> <a href="https://huggingface.co/Qwen/Qwen3.8-27B">Original model</a> · <a href="https://qwenlm.github.io/">Qwen</a> · <a href="https://github.com/Blaizzy/mlx-vlm">MLX-VLM</a> · <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a> </p>

About this conversion

This repository contains the oQ8 MLX conversion of Qwen3.8-27B. Its stored recipe is uniform 8-bit affine with group size 64 and contains no per-module precision overrides. The upstream model is a dense, native vision-language model with flexible thinking control and support for text, images, and video. Its tokenizer, processor configuration, chat template, and generation configuration are preserved.

ItemValue
Base model`Qwen/Qwen3.8-27B`
FormatMLX safetensors
QuantizationoQ8 / uniform 8-bit affine, group size 64
Precision overridesNone
Conversion stackmlx-vlm 0.6.3, mlx-lm 0.31.3, mlx 0.32.0
Weight shards6
Weight size29.50 GB (27.48 GiB)
Maximum configured context262,144 tokens
Architectureqwen3_5 / Qwen3_5ForConditionalGeneration

Apple-silicon performance

This checkpoint was load-tested and generation-tested on the following machine:

HardwareConfiguration
HostMac Studio
ChipApple M3 Ultra
CPU32 cores (24 performance + 8 efficiency)
Unified memory256 GB
RuntimeMLX-VLM 0.6.3 / MLX 0.32.0
MeasurementResult
Decode (median)24.08 tokens/s
Reported peak memory35.61 GB
Timed runs3 × 256 generated tokens
Warm-up256 generated tokens
Prompt81 tokens after chat templating

The decode figure is the median of three greedy 256-token runs after a 256-token Metal-kernel warm-up. Individual runs measured 24.09, 24.08, and 24.07 tokens/s. This is a practical local reference, not a controlled cross-platform benchmark; prompt length, context growth, sampler settings, memory pressure, thermal state, and runtime versions can materially change performance.

Quick start with MLX-VLM

bash
python -m pip install -U mlx-vlm huggingface_hub


python -m mlx_vlm.generate \
  --model Vontra/Qwen3.8-27B-oQ8 \
  --prompt "Explain the difference between linear and full attention." \
  --max-tokens 512

Download for local use:

bash
hf download Vontra/Qwen3.8-27B-oQ8 \
  --local-dir ~/.omlx/models/Vontra/Qwen3.8-27B-oQ8

Using it with oMLX

  1. 1.Place the model at ~/.omlx/models/Vontra/Qwen3.8-27B-oQ8.
  2. 2.Refresh the oMLX model registry.
  3. 3.Load Qwen3.8-27B-oQ8 and use the chat UI or OpenAI-compatible endpoint.
bash
curl "$OMLX_BASE_URL/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OMLX_API_KEY" \
  -d '{
    "model": "Qwen3.8-27B-oQ8",
    "messages": [{"role": "user", "content": "Write a short Swift actor example."}],
    "temperature": 1.0,
    "top_p": 0.95,
    "max_tokens": 256
  }'

For long prompts, begin with a conservative context limit and increase it while watching memory pressure. The configured context is a model capability, not a guarantee that every host can prefill it within available unified memory.

Architecture

Qwen3.8-27B is a dense causal language model with a vision encoder. It uses the Qwen3.5 architectural foundation, interleaving Gated DeltaNet linear-attention blocks with periodic full-attention blocks.

Architecture detailUpstream value
Parameters27B
Language layers64
Hidden size5,120
Attention heads / KV heads24 / 4
Linear-attention V / QK heads48 / 16
FFN intermediate size17,408
Vocabulary / padded embeddings248,320
Configured context262,144 tokens

For upstream evaluations, usage guidance, intended use, limitations, safety information, and the full architecture discussion, see the original model card.

Conversion and validation notes

  • —Source weights: the official Qwen checkpoint.
  • —Quantization: uniform 8-bit affine weights with group size 64 and no per-module overrides.
  • —The upstream tokenizer, processor files, chat template, and generation configuration are preserved.
  • —Both quantization and quantization_config preserve the oQ8 recipe.
  • —All 2,180 converted tensors and all six indexed shards were checked locally.
  • —Quantization can reduce output quality relative to the source weights; use a higher-precision variant when quality matters more than memory use.
  • —The model was loaded and exercised through end-to-end generation on Apple silicon.

This is a community conversion, not an official Qwen release. Validate quality and numerical behaviour on your own representative workload before production use.

Licence and attribution

The upstream model is released under the Apache License 2.0. A copy is included in this repository; review it before use or redistribution.

All model design, training, benchmark, and upstream documentation credit belongs to Qwen and the original contributors. The MLX conversion, Apple-silicon validation, compatibility work, and packaging are provided by Vontra.

<!-- vontra-chooser-start -->

Choose for your Mac

64GB Macs · 128GB Macs · 256GB Macs

Published peak memory: 35.61 GB; estimated starting tier: 64GB, leaving about 28 GB nominal headroom. The collections use published M3 Studio peaks with at least 25% nominal headroom; fit on other Macs is an estimate, and full context is not guaranteed. Start with short context and one request.

Runtime and evidence

The exact tested oMLX application version is not recorded here; a library version is not an app version. The original performance tables retain their benchmark conditions and speed figures; this documentation update adds no new test results.

Quick start and demo prompt

bash
hf download Vontra/Qwen3.8-27B-oQ8 --local-dir ./models/Qwen3.8-27B-oQ8

Add the downloaded folder to oMLX model directories, refresh the list, and follow this card's architecture and MTP compatibility requirements before loading.

Try this in a new chat with a 128-token output limit:

text
Explain why the sky looks blue in three short sentences.

This is a demo prompt to try, not a recorded successful run; a captured demonstration for this documentation update is not yet available.

Follow Vontra for new Apple Silicon releases and fixes. <!-- vontra-chooser-end -->