Downloads · 30 days
36
6% of all-time downloads
zherebetskyy/Qwen3.8-27B-mxfp8-mlx
Qwen3.8-27B-mxfp8-mlx is a image-text-to-text model from zherebetskyy. 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.
[](https://github.com/ml-explore/mlx) [](https://opensource.org/licenses/Apache-2.0) [](why-mxfp8-is-superior-for-accuracy)
Downloads · 30 days
36
6% of all-time downloads
All-time downloads
622
Public
Parameters
27.4B
67.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors28.7 GB · 100%
How the weights are stored.
U3226.9B · 98%
From the Hugging Face model README
This repository contains Qwen3.8-27B quantized to MXFP8 format using mlx-vlm.
It provides an ideal middle ground for Apple Silicon users who want near-lossless FP16 accuracy with half the memory footprint and significantly faster token generation compared to full-precision weights.
Ensure you have mlx-vlm installed:
pip install --upgrade mlx-vlm
from mlx_vlm import generate, load
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config
# Load model and processor
model_id = "zherebetskyy/Qwen3.8-27B-mxfp8-mlx"
model, processor = load(model_id)
config = load_config(model_id)
# Prepare prompt & image input
image = ["[http://images.cocodataset.org/val2017/000000039769.jpg](http://images.cocodataset.org/val2017/000000039769.jpg)"]
prompt = "Describe the contents of this image in detail."
formatted_prompt = apply_chat_template(processor, config, prompt, num_images=1)
# Generate response
output = generate(model, processor, formatted_prompt, image, max_tokens=256)
print(output)
python -m mlx_vlm.generate \
--model zherebetskyy/Qwen3.8-27B-mxfp8-mlx \
--image <PATH_TO_IMAGE> \
--prompt "Describe this image." \
--max-tokens 200
When choosing a quantized variant of Qwen3.8-27B, balancing memory, token generation speed, and reasoning accuracy is key. Below is how MXFP8 compares to alternative quantizations:
| Format | Bit-Width | Quantization Strategy | Dynamic Range | Outlier Preservation | Relative Accuracy (% of FP16) |
|---|---|---|---|---|---|
| MXFP8 (This Model) | 8-bit | Microscaling (E4M3 / E8M0 scale) | Very High | Superior | ~99.5% - 99.9% |
| 6-bit MLX | 6-bit | Uniform Linear / Grouped | Moderate | Good | ~97.5% - 98.5% |
| 4-bit MLX | 4-bit | Grouped Integer (INT4) | Limited | Low | ~92.0% - 95.0% |
| NVFP4 MLX | 4-bit | Microscaling (E2M1 / FP4) | Low-Medium | Medium | ~93.5% - 96.0% |
E8M0 Scaling):
Unlike traditional uniform integer quantization (such as standard INT4 or INT8), standard OCP Microscaling (MX) formats divide tensors into fine-grained blocks (typically size 32) and assign a shared 8-bit scale factor (E8M0). This allows sub-block values to adjust scaling dynamic ranges dynamically without truncating high-magnitude features.E4M3 Layout):
Language and vision models suffer accuracy loss in low-bit representations because weight distributions concentrate near zero while containing critical outlier values in active channels. MXFP8's E4M3 dynamic range preserves high-energy activation and weight outliers effortlessly.4-bit, NVFP4) work well for simple chat, they often experience severe performance degradation on multi-step reasoning, mathematical tasks, structural JSON parsing, and dense visual processing. MXFP8 preserves full-precision quality on benchmark reasoning tasks.mlx-vlm >= 0.6.13