Image-Text-to-Text
MLX
Safetensors
English
qwen3_5
vision-language
quantized
coder
conversational
4-bit precision
Instructions to use chaddy81/Qwen3.6-27b-coder-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use chaddy81/Qwen3.6-27b-coder-4bit-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("chaddy81/Qwen3.6-27b-coder-4bit-mlx") config = load_config("chaddy81/Qwen3.6-27b-coder-4bit-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 chaddy81/Qwen3.6-27b-coder-4bit-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 "chaddy81/Qwen3.6-27b-coder-4bit-mlx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "chaddy81/Qwen3.6-27b-coder-4bit-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use chaddy81/Qwen3.6-27b-coder-4bit-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 "chaddy81/Qwen3.6-27b-coder-4bit-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 chaddy81/Qwen3.6-27b-coder-4bit-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use chaddy81/Qwen3.6-27b-coder-4bit-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 "chaddy81/Qwen3.6-27b-coder-4bit-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 "chaddy81/Qwen3.6-27b-coder-4bit-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"
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
library_name: mlx
|
| 5 |
+
tags:
|
| 6 |
+
- mlx
|
| 7 |
+
- qwen3_5
|
| 8 |
+
- vision-language
|
| 9 |
+
- quantized
|
| 10 |
+
- coder
|
| 11 |
+
base_model: chaddy81/Qwen3.6-27b-coder
|
| 12 |
+
pipeline_tag: image-text-to-text
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# chaddy81/Qwen3.6-27b-coder-4bit-mlx
|
| 16 |
+
|
| 17 |
+
This is a **4-bit** quantized [MLX](https://github.com/ml-explore/mlx) conversion of
|
| 18 |
+
[chaddy81/Qwen3.6-27b-coder](https://huggingface.co/chaddy81/Qwen3.6-27b-coder), for fast local inference on Apple Silicon.
|
| 19 |
+
|
| 20 |
+
## Details
|
| 21 |
+
|
| 22 |
+
- **Base model:** [chaddy81/Qwen3.6-27b-coder](https://huggingface.co/chaddy81/Qwen3.6-27b-coder)
|
| 23 |
+
- **Architecture:** `Qwen3_5ForConditionalGeneration` (`qwen3_5`) — vision-language model (text + image + video)
|
| 24 |
+
- **Text backbone:** 64 layers, hidden 5120, 24 attention heads / 4 KV heads (GQA), vocab 248320, context length 262144 (256K)
|
| 25 |
+
- **Vision tower:** 27 layers, hidden 1152
|
| 26 |
+
- **Quantization:** 4-bit, 4.501 bits-per-weight (MLX affine), group size 64
|
| 27 |
+
- **Files:** 3 safetensors shards, ~14 GB
|
| 28 |
+
- **Converted with:** `mlx_lm` 0.31.1, source dtype bfloat16
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
pip install mlx-lm
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
```python
|
| 37 |
+
from mlx_lm import load, generate
|
| 38 |
+
|
| 39 |
+
model, tokenizer = load("chaddy81/Qwen3.6-27b-coder-4bit-mlx")
|
| 40 |
+
prompt = "Write a Python function that returns the nth Fibonacci number."
|
| 41 |
+
messages = [{"role": "user", "content": prompt}]
|
| 42 |
+
text = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
|
| 43 |
+
print(generate(model, tokenizer, prompt=text, max_tokens=512, verbose=True))
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Or from the CLI:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
mlx_lm.generate --model chaddy81/Qwen3.6-27b-coder-4bit-mlx --prompt "Explain async/await in Python."
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Quantization variants
|
| 53 |
+
|
| 54 |
+
| Variant | bits-per-weight | Size | Repo |
|
| 55 |
+
|---|---|---|---|
|
| 56 |
+
| 8-bit | 8.5 | ~27 GB | [chaddy81/Qwen3.6-27b-coder-8bit-mlx](https://huggingface.co/chaddy81/Qwen3.6-27b-coder-8bit-mlx) |
|
| 57 |
+
| 6-bit | 6.5 | ~20 GB | [chaddy81/Qwen3.6-27b-coder-6bit-mlx](https://huggingface.co/chaddy81/Qwen3.6-27b-coder-6bit-mlx) |
|
| 58 |
+
| 4-bit | 4.5 | ~14 GB | [chaddy81/Qwen3.6-27b-coder-4bit-mlx](https://huggingface.co/chaddy81/Qwen3.6-27b-coder-4bit-mlx) |
|
| 59 |
+
|
| 60 |
+
## Notes
|
| 61 |
+
|
| 62 |
+
- Conversion emitted a tokenizer regex warning referencing a Mistral discussion; this is a generic
|
| 63 |
+
`tokenizers` notice and does not affect the Qwen3.5 architecture or quantized weights. If you observe
|
| 64 |
+
unexpected tokenization, load the tokenizer with `fix_mistral_regex=True`.
|
| 65 |
+
- License inherited from the base model; refer to [chaddy81/Qwen3.6-27b-coder](https://huggingface.co/chaddy81/Qwen3.6-27b-coder).
|