Instructions to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V # Run inference directly in the terminal: llama cli -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V # Run inference directly in the terminal: llama cli -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V # Run inference directly in the terminal: ./llama-cli -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V # Run inference directly in the terminal: ./build/bin/llama-cli -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Use Docker
docker model run hf.co/joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
- LM Studio
- Jan
- vLLM
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
- SGLang
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with Ollama:
ollama run hf.co/joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
- Unsloth Desktop
- Pi
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with Docker Model Runner:
docker model run hf.co/joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
- Lemonade
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Run and chat with the model
lemonade run user.Qwopus3.5-9B-Coder-MTP-GGUF-IQ4_XS_V
List all available models
lemonade list
- Hermes Agent
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
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 joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V
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 "joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF:IQ4_XS_V" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
🌟 Qwopus3.5-9B-Coder-MTP-gguf
This is a set of custom IQ4_XS quants of Qwopus3.5-9B-Coder using mradermacher's imatrix, also mirroring mradermacher's mmproj files.
V6 is based on the newer Flash version Qwopus3-5-9B-Coder-Flash
Initially I ran this to retain the MTP heads. Then went further, experiment with uplifting certain layers and the quant sizing of the MTP layers. Very basic stuff, but the result is pretty solid: 98,304 context (don't forget to use yarn past 32K!) in ~6GB VRAM when using beellama/KVarN and initial ~60t/s on a RTX4060 with Windows 11.
| Version | file | size | tensorfile |
|---|---|---|---|
| 1 | Qwopus3.5-9B-Coder-MTP-IQ4_XS | ~5.29GiB | tensorv1.txt |
| 2 | Qwopus3.5-9B-Coder-MTP-IQ4_XS_v2 | ~5.02GiB | tensorv2.txt |
| 3 | Qwopus3.5-9B-Coder-MTP-IQ4_XS_v3 | ~4.99GiB | tensorv3.txt |
| 4 | No gguf, experimental | - | tensorv4.txt |
| 5 | No gguf, too large | ~5.85GB | tensorv5.txt |
| 6 | Qwopus3-5-9B-Coder-Flash-IQ4_XS_v6 | ~5.23GiB | tensorv6.txt |
Tools
GGUF was produced using scripts from the root of llama.cpp's source code.
Quants were produced using llama-quantize.exe from llama.cpp's binary releases.
V6 produced using GGUFY directly from full precision shards. Thanks again qskousen!
Get a gguf (or use ggufy to do both in one step)
python convert_hf_to_gguf.py --outfile T:\_Qwen\Qwopus3.5-9B-Coder\__output\Qwopus3.5-9B-Coder-MTP-{ftype}.gguf --outtype auto --model-name Qwopus3.5-9B-Coder --verbose T:\_Qwen\Qwopus3.5-9B-Coder
V1
This version is standard iq4_xs (with imatrix, thanks mradermacher!) with the MTP layers held at BF16
llama-quantize --imatrix Qwopus3.5-9B-Coder.mradermacher.imatrix.gguf --tensor-type "blk\.32\..*=BF16" T:\_Qwen\Qwopus3.5-9B-coder\__output\Qwopus3.5-9B-Coder-MTP-bf16.gguf T:\_Qwen\Qwopus3.5-9B-coder\__output\Qwopus3.5-9B-Coder-MTP-IQ4_XS.gguf IQ4_XS 8
V2
Try keeping a few ffn_down at Q5_K, MTP mostly Q5_K
llama-quantize --imatrix Qwopus3.5-9B-Coder.mradermacher.imatrix.gguf --tensor-type-file tensors2.txt T:\_Qwen\Qwopus3.5-9B-coder\__output\Qwopus3.5-9B-Coder-MTP-bf16.gguf T:\_Qwen\Qwopus3.5-9B-coder\__output\Qwopus3.5-9B-Coder-MTP-IQ4_XS_v2.gguf IQ4_XS 8
V3
Can we go smaller? Yes, but it doesn't gain much.
llama-quantize --imatrix Qwopus3.5-9B-Coder.mradermacher.imatrix.gguf --tensor-type-file tensors3.txt T:\_Qwen\Qwopus3.5-9B-coder\__output\Qwopus3.5-9B-Coder-MTP-bf16.gguf T:\_Qwen\Qwopus3.5-9B-coder\__output\Qwopus3.5-9B-Coder-MTP-IQ4_XS_v3.gguf IQ4_XS 8
V4
Proved inconclusive, no gain.
V5
GGUF too big, eats context space on my 8GB GPU
V6
A little big, most of the time 98K context fits. The new Flash version is extremely fast for this build, getting nearly 60t/s to start.
inference
llama.cpp models.ini (beellama v0.4.3 - newer versions allow KVarN for MTP as well, I've not tried yet)
[*]
load-mode=none
mmproj-offload=on
ctx-size=98304
batch-size=2048
ubatch-size=512
cache-type-k=kvarn4
cache-type-v=kvarn2
cache-reuse=256
flash-attn=on
kv-offload=on
n-gpu-layers=all
fit=on
fitt=200
rope-scale=4
kv-tail-tokens=1024
spec-draft-n-max=2
ctx-checkpoints=32
cache-ram=4096
kv-unified=on
temperature=0.7
repeat-penalty=1.0
top-k=20
top-p=0.95
min-p=0.0001
reasoning=on
rope-scaling=yarn
yarn-orig-ctx=32768
[Qwopus3.5-9B-v3.5-MTP.coder_V1]
model=C:\llm\_Qwen\Qwopus3.5-9B-v3.5-MTP.coder_V1\Qwopus3.5-9B-Coder-MTP-IQ4_XS.gguf
jinja=on
chat-template-file=C:\llm\_Templates\Qwopus-9B-jackrong\chat_template.jinja
chat-template-kwargs={"preserve_thinking":"true"}
spec-type=draft-mtp
spec-draft-type-k=q8_0
spec-draft-type-v=q4_0
[Qwopus3.5-9B-v3.5-MTP.coder_V2]
model=C:\llm\_Qwen\Qwopus3.5-9B-v3.5-MTP.coder_V2\Qwopus3.5-9B-Coder-MTP-IQ4_XS_v2.gguf
jinja=on
chat-template-file=C:\llm\_Templates\Qwopus-9B-jackrong\chat_template.jinja
chat-template-kwargs={"preserve_thinking":"true"}
spec-draft-type-k=q8_0
spec-draft-type-v=q4_0
[Qwopus3.5-9B-v3.5-MTP.coder_V3]
model=C:\llm\_Qwen\Qwopus3.5-9B-v3.5-MTP.coder_V3\Qwopus3.5-9B-Coder-MTP-IQ4_XS_v3.gguf
jinja=on
chat-template-file=C:\llm\_Templates\Qwopus-9B-jackrong\chat_template.jinja
chat-template-kwargs={"preserve_thinking":"true"}
spec-type=draft-mtp
spec-draft-type-k=q8_0
spec-draft-type-v=q4_0
[Qwopus3.5-9B-v3.5.coder_MM_V3]
model=C:\llm\_Qwen\Qwopus3.5-9B-v3.5-MTP.coder_V3\Qwopus3.5-9B-Coder-MTP-IQ4_XS_v3.gguf
mmproj=C:\llm\_Qwen\Qwopus3.5-9B-Coder-mmproj-f16.gguf
jinja=on
chat-template-file=C:\llm\_Templates\Qwopus-9B-jackrong\chat_template.jinja
chat-template-kwargs={"preserve_thinking":"true"}
ctx-size=98304
rope-scaling=yarn
yarn-orig-ctx=32768
rope-scale=3
Conclusion
Prediction acceptance only dropped marginally on V3 compared to V1, still trends above 60% during coding tasks. Unable to quantify any gains from bumping 4 ff_down weights from IQ4_S to Q5_K. Next run I will try V2 again but bump all ff_down weights to Q6_K and MTP head to Q6_K/Q8_K and see where it stands.
V6 marks the first version to use empircal data to decide which layers to avoid making smaller or to make bigger. This initial run only looked for strong kurtosis.
thanks
First, thanks to the Qwen team for such a great model.
Thanks to everyone who has contributed to the bountiful tools, documents and most of all open weights.
Special thanks to mradermacher, unsloth and Jackrong!
- Downloads last month
- 952
4-bit
Model tree for joeblowma/Qwopus3.5-9B-Coder-MTP-GGUF
Base model
Qwen/Qwen3.5-9B-Base