Instructions to use vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit 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("vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit") 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 vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit"
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": "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit"
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 "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit" \ --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 vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit 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 "vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit"
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 vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit
Run Hermes
hermes
- Atomic Chat
Qwen3.8-27B-MTP-MLX-8bit
This is not a standalone model. It holds only the Multi-Token Prediction (MTP) drafter head, so it carries no token embeddings and no
lm_headand it cannot generate text alone. Load it as the draft model beside a matching target, which supplies both.
Qwen ships this head inside
Qwen/Qwen3.8-27B as 15 tensors under
the mtp. prefix, but the MLX converter deletes them when it builds the main
model, so the head is published separately and the runtime loads it as its
own model with model_type: qwen3_5_mtp.
Use with mlx-vlm
mlx_vlm generate \
--model vvsotnikov/Qwen3.8-27B-MLX-8bit \
--draft-model vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit \
--prompt "Write a quicksort in Python." \
--max-tokens 256 --temperature 0.6 --enable-thinking
For local weights:
mlx_vlm generate \
--model /path/to/target-model \
--draft-model /path/to/Qwen3.8-27B-MTP-MLX-8bit \
--prompt "Write a quicksort in Python." \
--max-tokens 256 --temperature 0.6 --enable-thinking
--draft-kind mtp is detected from model_type, so you do not need to pass
it. The drafter proposes tokens each step while the target verifies them, and
only accepted tokens reach the output, so quality follows the target rather
than the drafter.
Model Details
- Model type:
qwen3_5_mtp - MTP block size:
3 - Target architecture: Qwen3.8-27B
- Precision: MLX affine 8-bit, group size 64
- Runtime: MLX /
mlx-vlm0.6.8 - Format: Safetensors with MLX-compatible config and tokenizer files
How this was produced
# 1. split the mtp.* tensors out of the base checkpoint
python -m mlx_vlm.speculative.drafters.qwen3_5_mtp.split \
--model Qwen/Qwen3.8-27B --output Qwen3.8-27B-MTP-MLX-bf16
# 2. quantize the result
mlx_vlm convert --hf-path Qwen3.8-27B-MTP-MLX-bf16 \
--mlx-path Qwen3.8-27B-MTP-MLX-8bit -q --q-bits 8 --q-group-size 64
Round-to-nearest is the only option here, because AWQ needs a forward pass and a drafter cannot run one on its own.
Verification
| Check | Result |
|---|---|
model_type |
qwen3_5_mtp |
block_size |
3 |
| Tensors | 31, being 8 quantized projections and 7 dense norms |
| RMSNorm shift | applied exactly once, checked against the source |
| Acceptance | 94.2% of drafted tokens accepted, 2.88 accepted tokens/round, over 69 rounds, 16.021 tok/s |
Pairing rules
Use a drafter and a target that come from ONE checkpoint, because the drafter binds to the target's embeddings at runtime, so a mismatched pair either fails a hidden-size check or drafts badly. This release publishes these drafters, so you can trade drafter size against acceptance:
License and attribution
The weights derive from Qwen/Qwen3.8-27B
under Apache 2.0, so the original license and its terms carry over.
Read the license itself before you use this model.
- Downloads last month
- 285
8-bit
Model tree for vvsotnikov/Qwen3.8-27B-MTP-MLX-8bit
Base model
Qwen/Qwen3.8-27B