Text Generation
MLX
Safetensors
qwen3_5
apple-silicon
speculative-decoding
qwen
qwen3
qwen3-next
mtp
mtplx
local-ai
conversational
4-bit precision
Instructions to use Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Youssofal/Qwen3.6-27B-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.6-27B-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
- LM Studio
- Pi new
How to use Youssofal/Qwen3.6-27B-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.6-27B-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.6-27B-MTPLX-Optimized-Speed" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Youssofal/Qwen3.6-27B-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.6-27B-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.6-27B-MTPLX-Optimized-Speed
Run Hermes
hermes
- MLX LM
How to use Youssofal/Qwen3.6-27B-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.6-27B-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.6-27B-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.6-27B-MTPLX-Optimized-Speed", "messages": [ {"role": "user", "content": "Hello"} ] }'
Recommend 3-bit draft head for speed lane
Browse files- MTPLX_PUBLISH_MANIFEST.json +3 -3
- README.md +6 -4
- mtplx_runtime.json +5 -0
MTPLX_PUBLISH_MANIFEST.json
CHANGED
|
@@ -78,7 +78,7 @@
|
|
| 78 |
"name": "mtplx_runtime.json",
|
| 79 |
"resolved_source_path": "/Users/youssof/Documents/MTPLX/models/Qwen3.6-27B-MTPLX-Flat4-CyanKiwiMTP/mtplx_runtime.json",
|
| 80 |
"same_inode_as_source": false,
|
| 81 |
-
"size_bytes":
|
| 82 |
"source_path": "/Users/youssof/Documents/MTPLX/models/Qwen3.6-27B-MTPLX-Flat4-CyanKiwiMTP/mtplx_runtime.json"
|
| 83 |
},
|
| 84 |
{
|
|
@@ -142,7 +142,7 @@
|
|
| 142 |
"name": "README.md",
|
| 143 |
"resolved_source_path": null,
|
| 144 |
"same_inode_as_source": false,
|
| 145 |
-
"size_bytes":
|
| 146 |
"source_path": null
|
| 147 |
},
|
| 148 |
{
|
|
@@ -156,7 +156,7 @@
|
|
| 156 |
],
|
| 157 |
"include_hashes": false,
|
| 158 |
"repo_id": "Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
|
| 159 |
-
"size_bytes":
|
| 160 |
"source_provenance": {
|
| 161 |
"base_model": "Qwen/Qwen3.6-27B",
|
| 162 |
"base_model_revision": "6a9e13bd6fc8f0983b9b99948120bc37f49c13e9",
|
|
|
|
| 78 |
"name": "mtplx_runtime.json",
|
| 79 |
"resolved_source_path": "/Users/youssof/Documents/MTPLX/models/Qwen3.6-27B-MTPLX-Flat4-CyanKiwiMTP/mtplx_runtime.json",
|
| 80 |
"same_inode_as_source": false,
|
| 81 |
+
"size_bytes": 1025,
|
| 82 |
"source_path": "/Users/youssof/Documents/MTPLX/models/Qwen3.6-27B-MTPLX-Flat4-CyanKiwiMTP/mtplx_runtime.json"
|
| 83 |
},
|
| 84 |
{
|
|
|
|
| 142 |
"name": "README.md",
|
| 143 |
"resolved_source_path": null,
|
| 144 |
"same_inode_as_source": false,
|
| 145 |
+
"size_bytes": 2797,
|
| 146 |
"source_path": null
|
| 147 |
},
|
| 148 |
{
|
|
|
|
| 156 |
],
|
| 157 |
"include_hashes": false,
|
| 158 |
"repo_id": "Youssofal/Qwen3.6-27B-MTPLX-Optimized-Speed",
|
| 159 |
+
"size_bytes": 16419070178,
|
| 160 |
"source_provenance": {
|
| 161 |
"base_model": "Qwen/Qwen3.6-27B",
|
| 162 |
"base_model_revision": "6a9e13bd6fc8f0983b9b99948120bc37f49c13e9",
|
README.md
CHANGED
|
@@ -55,6 +55,7 @@ compressed-tensors checkpoint at the revision listed above.
|
|
| 55 |
- architecture: `qwen3-next-mtp`
|
| 56 |
- maximum MTP depth: `3`
|
| 57 |
- recommended profile: `performance-cold`
|
|
|
|
| 58 |
- exactness gate: `Phase 0H paged-verifier smoke`
|
| 59 |
- exactness max absolute diff: `0.0`
|
| 60 |
- verified hardware: `Apple M5 Max, 128 GB unified memory`
|
|
@@ -66,10 +67,11 @@ top-p `0.95`, top-k `20`.
|
|
| 66 |
## Performance Honesty
|
| 67 |
|
| 68 |
This is the speed lane. On the local Apple M5 Max fanmax performance-cold
|
| 69 |
-
benchmark, this artifact reached
|
| 70 |
-
192-token prompt
|
| 71 |
-
|
| 72 |
-
|
|
|
|
| 73 |
|
| 74 |
## Files
|
| 75 |
|
|
|
|
| 55 |
- architecture: `qwen3-next-mtp`
|
| 56 |
- maximum MTP depth: `3`
|
| 57 |
- recommended profile: `performance-cold`
|
| 58 |
+
- recommended draft-only LM head: `3-bit affine, group_size=64`
|
| 59 |
- exactness gate: `Phase 0H paged-verifier smoke`
|
| 60 |
- exactness max absolute diff: `0.0`
|
| 61 |
- verified hardware: `Apple M5 Max, 128 GB unified memory`
|
|
|
|
| 67 |
## Performance Honesty
|
| 68 |
|
| 69 |
This is the speed lane. On the local Apple M5 Max fanmax performance-cold
|
| 70 |
+
benchmark, this artifact reached 60.061 tok/s at depth 3 on the long-code
|
| 71 |
+
192-token prompt when using its contract-recommended 3-bit draft-only LM head,
|
| 72 |
+
with acceptance [100.0%, 98.0%, 87.8%]. The same flat4+CyanKiwi artifact with
|
| 73 |
+
the older 4-bit draft-only LM head measured 57.668 tok/s on the same lane.
|
| 74 |
+
GDN8 remains the conservative quality/default checkpoint.
|
| 75 |
|
| 76 |
## Files
|
| 77 |
|
mtplx_runtime.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
| 6 |
"mtp_sidecar": "Qwen3.6-27B-MTPLX-CyanKiwi-Packed-BF16-INT4-v3",
|
| 7 |
"mtp_depth_max": 3,
|
| 8 |
"recommended_profile": "performance-cold",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
"sampler": {
|
| 10 |
"temperature": 0.6,
|
| 11 |
"top_p": 0.95,
|
|
|
|
| 6 |
"mtp_sidecar": "Qwen3.6-27B-MTPLX-CyanKiwi-Packed-BF16-INT4-v3",
|
| 7 |
"mtp_depth_max": 3,
|
| 8 |
"recommended_profile": "performance-cold",
|
| 9 |
+
"recommended_draft_lm_head": {
|
| 10 |
+
"bits": 3,
|
| 11 |
+
"group_size": 64,
|
| 12 |
+
"mode": "affine"
|
| 13 |
+
},
|
| 14 |
"sampler": {
|
| 15 |
"temperature": 0.6,
|
| 16 |
"top_p": 0.95,
|