Downloads · 30 days
230
22% of all-time downloads
mickyba/Qwen3.8-27B-3bit-mlx
Qwen3.8-27B-3bit-mlx is a image-text-to-text model from mickyba. 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.
This repository contains a 3-bit quantized MLX version of the Qwen/Qwen3.8-27B multimodal (vision-language) model, optimized for Apple Silicon via MLX and mlx-vlm.
Downloads · 30 days
230
22% of all-time downloads
All-time downloads
1K
Public
Parameters
27.4B
12.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12.7 GB · 100%
How the weights are stored.
U3226.9B · 98%
From the Hugging Face model README
This repository contains a 3-bit quantized MLX version of the Qwen/Qwen3.8-27B multimodal (vision-language) model, optimized for Apple Silicon via MLX and mlx-vlm.
| Attribute | Details |
|---|---|
| Base Model | Qwen/Qwen3.8-27B |
| Architecture | Vision-Language Dense Model (27 Billion Parameters) |
| Quantization | 3-bit uniform quantization (--q-bits 3) |
| Format | MLX Native (.safetensors) |
| Estimated VRAM | ~11–12 GB Unified Memory (vs. ~54 GB in FP16 / ~15 GB in 4-bit) |
| Primary Target | Apple Silicon Macs (M1/M2/M3/M4 with 16GB+ Unified Memory) |
Uniform 2-bit quantization often degrades weights to the point of producing corrupt output ("garbage/word salad").
3-bit quantization provides an optimal middle ground for memory-constrained systems:
Ensure you have Python 3.10+ and the required MLX multimodal packages installed:
pip install -U mlx-vlm mlx
To test the model with a text prompt directly from your terminal:
python3 -m mlx_vlm.generate \
--model <YOUR_HF_USERNAME>/Qwen3.8-27B-3bit-mlx \
--prompt "Hello! Write a clean Python script to reverse a string."
For multimodal/vision inputs:
python3 -m mlx_vlm.generate \
--model <YOUR_HF_USERNAME>/Qwen3.8-27B-3bit-mlx \
--image https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/ai2d-demo.jpg \
--prompt "Describe what you see in this image."
Serve this model locally using an OpenAI-compatible HTTP endpoint to connect with extensions like Continue.dev, Roo Code, or Cline.
python3 -m mlx_vlm.server \
--model <YOUR_HF_USERNAME>/Qwen3.8-27B-3bit-mlx \
--port 8000
config.json)Add the following provider entry to your ~/.continue/config.json:
{
"models": [
{
"title": "Qwen 3.8 27B (3-bit MLX)",
"provider": "openai",
"model": "default",
"apiBase": "http://127.0.0.1:8000/v1",
"apiKey": "sk-local"
}
]
}
| Precision / Quant | Disk Size | Min VRAM | Coherence / Output Quality |
|---|---|---|---|
| FP16 (Base) | ~54 GB | ~60 GB | Baseline (100%) |
| 4-Bit MLX | ~15 GB | ~16 GB | High (~95% quality retention) |
| 3-Bit MLX (This Repo) | ~11 GB | ~12 GB | Moderate-High (Usable logic, fits 16GB Macs) |
| 2-Bit MLX | ~7.5 GB | ~8 GB | Low (Prone to output artifacts / garbage) |
Converted using mlx_vlm.convert on Apple Silicon:
# Convert base model to 3-bit MLX format
python3 -m mlx_vlm.convert \
--hf-path Qwen/Qwen3.8-27B \
-q \
--q-bits 3 \
--mlx-path ~/models/Qwen3.8-27B-3bit-mlx
# Push to Hugging Face Hub
hf repo create Qwen3.8-27B-3bit-mlx --type model
hf upload <YOUR_HF_USERNAME>/Qwen3.8-27B-3bit-mlx ~/models/Qwen3.8-27B-3bit-mlx .