Instructions to use spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp 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("spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp") config = load_config("spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp") # 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 spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp"
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": "spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp"
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 "spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp" \ --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"
- Hermes Agent
How to use spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp 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 "spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp"
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 spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp
Run Hermes
hermes
Qwen3.6-27B-oQ8e-fp16-mtp
An oQ mixed-precision MLX quantization of
Qwen/Qwen3.6-27B, built for Apple Silicon.
This is a dense model: every parameter is active on every token. It is markedly slower than the A3B MoE siblings on the same hardware -- see the benchmark note below before choosing it for long-context work.
Quantization
Uniform 8-bit affine, group size 64 (no per-module overrides).
Bit-width assignment is imatrix-guided (oqe_code_multilingual, 128 samples x 512 tokens) — 503 of 504 collected entries applied. Layers left unquantized are
kept at fp16, which is what the fp16 in the repo name refers to. The mtp suffix means
the checkpoint retains its multi-token-prediction head (1 MTP layer, shared embeddings),
so MTP speculative decoding works without a separate draft model.
- Format: MLX safetensors, 30.9 GB across 2,209 tensors
- Mode: affine
- Calibration report:
oq_imatrix_report.jsonis included in this repo
Architecture
| Base architecture | Qwen3_5ForConditionalGeneration |
| Parameters | 27 B |
| Active per token | 27 B (all parameters active per token) |
| Layers | 64 (16 full-attention, 48 linear-attention) |
| Attention heads | 24 query / 4 key-value, head dim 256 |
| Hidden size | 5120 |
| Vocabulary | 248,320 |
| Max position embeddings | 262,144 |
This is a hybrid-attention model: only the 16 full-attention layers grow a KV cache with sequence length. The remaining 48 linear-attention layers hold a fixed-size recurrent state.
Measured performance
Single-stream, measured on an Apple M1 Max / 64 GB running oMLX. 300-token generations (median of 3) and a 7.5k-token uncached prefill.
| Metric | Value |
|---|---|
| Decode | 15.4 tok/s |
| Prefill | 144 tok/s |
| Cold load | 13.1 s |
These are throughput figures on one machine, not a quality benchmark, and they will vary with hardware, context length and sampler settings. The first request after a model load reads low — that is warm-up, not steady state.
Memory planning
At fp16 the KV cache costs roughly 67 KB per token (16 full-attention layers x 4 KV heads x 256 head dim x 2 for K/V x 2 bytes).
| Context | KV cache at fp16 |
|---|---|
| 32,768 | 2.09 GiB |
| 65,536 | 4.19 GiB |
| 131,072 | 8.38 GiB |
Budget for weights plus KV cache plus runtime overhead. If the cache does not fit, quantizing it (for example TurboQuant 8-bit) roughly halves these figures at no measurable throughput cost.
Usage
Served through oMLX over an OpenAI-compatible API:
curl http://127.0.0.1:8055/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model": "Qwen3.6-27B-oQ8e-fp16-mtp", "messages": [{"role": "user", "content": "Hello"}]}'
Sampling follows Qwen guidance: thinking mode temperature 0.6, top_p 0.95; non-thinking
temperature 0.7, top_p 0.8; top_k 20, min_p 0 throughout. Avoid greedy decoding with
thinking enabled — Qwen documents that the combination can produce endless repetition.
Verified with oMLX. Loading outside oMLX (mlx-lm / mlx-vlm) requires a runtime that honours per-module quantization overrides in
config.json; this has not been tested here.
License
Apache 2.0, inherited from Qwen/Qwen3.6-27B. A copy of
the license is included as LICENSE. Quantization does not change the licensing terms — all
credit for the underlying model belongs to the Qwen team.
- Downloads last month
- 34
8-bit
Model tree for spacecomx/Qwen3.6-27B-oQ8e-fp16-mtp
Base model
Qwen/Qwen3.6-27B