Image-Text-to-Text
MLX
Safetensors
qwen3_5
mxfp4
mtp
speculative-decoding
qwen3.5
conversational
4-bit precision
Instructions to use sleepyeldrazi/Qwen3.5-9B-MXFP4-MTP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use sleepyeldrazi/Qwen3.5-9B-MXFP4-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("sleepyeldrazi/Qwen3.5-9B-MXFP4-MTP") config = load_config("sleepyeldrazi/Qwen3.5-9B-MXFP4-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
- LM Studio
- Pi new
How to use sleepyeldrazi/Qwen3.5-9B-MXFP4-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 "sleepyeldrazi/Qwen3.5-9B-MXFP4-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": "sleepyeldrazi/Qwen3.5-9B-MXFP4-MTP" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use sleepyeldrazi/Qwen3.5-9B-MXFP4-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 "sleepyeldrazi/Qwen3.5-9B-MXFP4-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 sleepyeldrazi/Qwen3.5-9B-MXFP4-MTP
Run Hermes
hermes
Qwen3.5-9B-MXFP4-MTP
MXFP4 quantization of Qwen/Qwen3.5-9B with native MTP (Multi-Token Prediction) heads for speculative decoding.
Model specs
| Component | Precision | Size |
|---|---|---|
| Main model (32 layers) | mxfp4 group_size=32 | ~4.60 GB |
| MTP decoder layer (x1) | mxfp4 (linear projections), bf16 (fc, norms) | ~0.25 GB |
Total: ~4.8 GB.
- Architecture: Qwen3.5-9B (Qwen3.5 hybrid attention)
- Layers: 32 (8 full-attention, 24 linear-attention)
- Context: 262,144 tokens
- MTP: 1 decoder layer, separate lm_head (not tied)
- Quantization: mxfp4 (OCP Microscaling FP4), group_size=32
Use with MLX
pip install -U mlx-lm
python -m mlx_lm generate \
--model sleepyeldrazi/Qwen3.5-9B-MXFP4-MTP \
--max-tokens 100 \
--temperature 0.0 \
--prompt "Explain quantum computing in one sentence."
MTP speculative decoding
The MTP heads are already in the checkpoint. Use --mtp flag with mlx-lm-mtp for ~24% faster generation.
python -m mlx_lm generate \
--model sleepyeldrazi/Qwen3.5-9B-MXFP4-MTP \
--mtp \
--max-tokens 200 \
--temperature 0.5 \
--prompt "Explain the theory of relativity."
Provenance
- Base weights:
Qwen/Qwen3.5-9B - Quantized with
mlx_lm convert -q --q-group-size 32 --q-bits 4 --q-mode mxfp4
- Downloads last month
- 641
Model size
2B params
Tensor type
U8
路
U32 路
BF16 路
F32 路
Hardware compatibility
Log In to add your hardware
4-bit