Instructions to use stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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 "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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": "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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 "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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 "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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"
- MLX LM
How to use stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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 "stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-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 stamsam/Qwen3.6-28B-REAP-mixedbit-tuned-mlx
Run Hermes
hermes
Qwen3.6-28B-REAP-mixedbit-tuned-mlx
An MLX "mixedbit" quantization of 0xSero/Qwen3.6-28B (a REAP-pruned Qwen3.5/3.6 hybrid MoE), shipped with the buun hardened chat template and a documented, tested inference config.
The weights are not fine-tuned. This repo's value is: (1) the mixed-bit MLX quant (~13 GB), (2) the bundled hardened chat template, and (3) a battle-tested deployment config — see below.
What is "mixedbit"?
A non-uniform MLX quantization: different layers are stored at different bit-widths instead of a single uniform 4-bit. The result here is ~13 GB on disk — actually smaller than a standard uniform 4-bit quant of the same model (~16–17 GB), because some layers are pushed below 4 bits while sensitive layers are kept higher. It runs well on Apple Silicon via mlx-lm / oMLX.
Architecture: qwen3_5_moe — a hybrid linear-attention + MoE model (40 layers, fused 3-D expert tensors, ~3B active params per token). This matters for tooling (see "Known incompatibilities").
Lineage & credits
- Base / weights:
0xSero/Qwen3.6-28B— REAP 20%-pruned fromQwen/Qwen3.6-35B-A3B, LoRA-SFT'd on Claude Opus reasoning traces. All model capability is theirs. This repo only re-quantizes those weights to MLX mixedbit. - Chat template:
spiritbuun/buun-Qwen3.6-chat_template— hardened Qwen3.5/3.6 template (fixes the official template's "empty-think poisoning" bug). The original stock template is preserved here aschat_template.STOCK.jinja.bak. - Base architecture: Qwen3.5/3.6 by Alibaba/Qwen.
Please honor the licenses/terms of the upstream 0xSero/Qwen3.6-28B and Qwen base models. (No explicit license file was present in the source; defer to upstream.)
Recommended config (tested)
| Setting | Value | Why |
|---|---|---|
enable_thinking |
False for coding/tool-use/chat | Far more reliable & faster; thinking-ON can ramble. |
| Thinking budget | ~6000 (when thinking ON) | Caps the reasoning loop so it commits instead of spiraling. |
| Sampling | temp 0.3–0.4, top_p 0.9, top_k 20 | (temp ~0.7 for open chat) |
fix_mistral_regex |
True | Required for this quant's tokenizer. |
Two good modes: (1) coding/tool-use → enable_thinking=False (fast, reliable); (2) hard open-ended reasoning → thinking ON + max_tokens ~5000–6000.
⚠️ Known incompatibilities (oMLX speculative features)
Because of the hybrid linear-attention/MoE architecture, these crash and should be left OFF:
- DFlash →
[convert] Only length-1 arrays can be converted to Python scalars(intarget_qwen_gdn). Also single-stream. - SpecPrefill →
'_OffsetAdjustedRoPE' object has no attribute 'dims'. - MTP → this quant does not carry the
mtp.*tensors.
Plain (non-speculative) decoding works great: ~78 tok/s in chat, ~49 tok/s on large (27K-token) agentic prompts. TurboQuant KV cache @ 6-bit is fine if you want to save runtime memory on long contexts.
Capability (informal, correctly-prompted)
Strong at: math, everyday programming, algorithms (LIS, Dijkstra, DP, thread-safe queues), tool-calling (clean JSON), and agentic planning. Weakness: niche factual recall (e.g. specific geography) — it can hallucinate and ruminate when it lacks knowledge; pair it with a search tool for fact-lookups.
- Downloads last month
- 170
4-bit