Instructions to use mickyba/Qwen3.8-27B-3bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mickyba/Qwen3.8-27B-3bit-mlx with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("mickyba/Qwen3.8-27B-3bit-mlx") config = load_config("mickyba/Qwen3.8-27B-3bit-mlx") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use mickyba/Qwen3.8-27B-3bit-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mickyba/Qwen3.8-27B-3bit-mlx"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mickyba/Qwen3.8-27B-3bit-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use mickyba/Qwen3.8-27B-3bit-mlx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mickyba/Qwen3.8-27B-3bit-mlx"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mickyba/Qwen3.8-27B-3bit-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mickyba/Qwen3.8-27B-3bit-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mickyba/Qwen3.8-27B-3bit-mlx"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "mickyba/Qwen3.8-27B-3bit-mlx" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen 3.8 27B — 3-Bit MLX Model
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.
📊 Overview & Model Summary
| 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) |
💡 Why 3-Bit?
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:
- Significantly higher coherence & reasoning capabilities compared to 2-bit.
- Lower memory footprint (~11–12 GB VRAM) compared to standard 4-bit (~15 GB VRAM), fitting comfortably on 16GB RAM Macs with system overhead to spare.
🚀 Quickstart & Usage Guide
1. Prerequisites & Installation
Ensure you have Python 3.10+ and the required MLX multimodal packages installed:
pip install -U mlx-vlm mlx
2. Run Generation via CLI
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."
💻 Integration with VS Code & Local Clients
Serve this model locally using an OpenAI-compatible HTTP endpoint to connect with extensions like Continue.dev, Roo Code, or Cline.
Step 1: Start the Server
python3 -m mlx_vlm.server \
--model <YOUR_HF_USERNAME>/Qwen3.8-27B-3bit-mlx \
--port 8000
Step 2: Configure Continue.dev (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 & Performance Comparison
| 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) |
🛠️ Reproduction / How This Model Was Created
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 .
📜 License & Acknowledgments
- Base Model License: Apache 2.0 (inherited from Qwen family)
- Framework: Built with Apple's MLX framework.
- Downloads last month
- 359
3-bit
Model tree for mickyba/Qwen3.8-27B-3bit-mlx
Base model
Qwen/Qwen3.8-27B