Instructions to use Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed 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("Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed") 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 Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed"
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": "Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed 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 "Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed"
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 Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed
Run Hermes
hermes
- MLX LM
How to use Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed", "messages": [ {"role": "user", "content": "Hello"} ] }'
Qwen3.5-9B MTPLX Optimized Speed
Fast local 9B inference for Apple Silicon, packaged for MTPLX native Multi-Token-Prediction speculative decoding.
This is the 9B speed checkpoint: a 6-bit MLX body with BF16 MTP heads, tuned as the stronger small-Mac option above the 4B release.
Run It
brew install youssofal/mtplx/mtplx
mtplx start
mtplx run "hello" --model Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed
For an OpenAI-compatible local server:
mtplx serve --model Youssofal/Qwen3.5-9B-MTPLX-Optimized-Speed --profile sustained --max --port 8000 --no-stats-footer
Why This Exists
MTPLX uses the model's own MTP heads to generate draft tokens, then verifies those tokens with the main model. When the draft heads are well-matched, you get higher throughput without running a separate drafter model.
MTPLX reads mtplx_runtime.json and selects the measured defaults automatically.
Recommended Runtime Defaults
| Setting | Value |
|---|---|
| Backend | qwen3-next-mtp |
| Default depth | D2 |
| Target sampler | temp=0.60, top_p=0.95, top_k=20 |
| Draft sampler | temp=0.60, top_p=0.95, top_k=20 |
| Profile | sustained |
| Benchmark fan mode | max |
Performance
Measured in MTPLX on Apple Silicon using the release runtime path.
| Mode | TPS | Verify time | Acceptance |
|---|---|---|---|
| AR baseline | 64.96 | - | - |
| D1 comparison | 92.87 | 6.83s | 0.9120 |
| D2 promoted default | 101.32 | 4.13s | 0.9398, 0.8102 |
| D3 comparison | 96.30 | 4.58s | 0.9278, 0.7732, 0.6443 |
Model Build
| Component | Format |
|---|---|
| Main body | 6-bit MLX affine, group size 64 |
| MTP heads | BF16 native MTP sidecar |
| Sampler | target and draft temp=0.60, top_p=0.95, top_k=20 |
This is not a full-precision checkpoint. It is built for fast local use on Apple Silicon through MTPLX.
Files
model-*.safetensors: MLX body shardsmtp.safetensors: MTP sidecarmtplx_runtime.json: MTPLX runtime contract and measured defaultsMTPLX_PUBLISH_MANIFEST.json: file sizes and artifact metadata- tokenizer and config files for local loading
- Downloads last month
- 1,648
6-bit