Instructions to use unsloth/Qwen3-Coder-Next-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/Qwen3-Coder-Next-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 unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
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 unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
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 unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
Use Docker
docker model run hf.co/unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
- LM Studio
- Jan
- vLLM
How to use unsloth/Qwen3-Coder-Next-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/Qwen3-Coder-Next-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": "unsloth/Qwen3-Coder-Next-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
- Ollama
How to use unsloth/Qwen3-Coder-Next-GGUF with Ollama:
ollama run hf.co/unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
- Unsloth Studio
How to use unsloth/Qwen3-Coder-Next-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Qwen3-Coder-Next-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unsloth/Qwen3-Coder-Next-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Qwen3-Coder-Next-GGUF to start chatting
- Pi
How to use unsloth/Qwen3-Coder-Next-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use unsloth/Qwen3-Coder-Next-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 unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
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 unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use unsloth/Qwen3-Coder-Next-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
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 "unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M" \ --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"
- Docker Model Runner
How to use unsloth/Qwen3-Coder-Next-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
- Lemonade
How to use unsloth/Qwen3-Coder-Next-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Qwen3-Coder-Next-GGUF:UD-Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-Coder-Next-GGUF-UD-Q4_K_M
List all available models
lemonade list
Check in here for tok/s and benchmarks for local gguf models
π Performance Benchmark: Qwen3-Coder-Next (GGUF Q4_K_M)
Model Quantization: (Q4_K_M)
Backend: LM Studio 0.4.1 (CUDA 12)
π» Hardware Specifications
| Component | Details |
|---|---|
| GPU | NVIDIA GeForce RTX 5080 (16GB GDDR7) |
| Driver | NVIDIA 590 Linux Driver (Latest Branch) |
| CPU | Intel Core Ultra 9 285K |
| RAM | 64GB DDR5 @ 6800 MT/s |
| OS | Fedora 43 Workstation Latest Kernel and Updates |
βοΈ Inference Settings
- Context Length: 60,000 Tokens
- Layer Offloading: 35 MoE Layers to CPU (Rest on GPU)
- KV Cache: Offloaded to GPU (Q8_0 Precision)
- CPU Threads: 8 Cores
- Features: Flash Attention ON
- Max Concurrency: 10
π Results
Testing performed with medium-sized coding prompts.
- Single Request:
40 - 45 tok/s - Concurrent (10 Requests):
- Per Request:
9 - 10 tok/s - Total Throughput:
~70 tok/s
RTX 3090 24GB + Ryzen 9 5950X 32GB RAM - single request, input 70K tokens / output 200 tokens
Qwen3-Coder-Next-Q3_K_XL
"Qwen3-Coder-Next-Q3_K_XL_100K":
cmd: |
/home/user/llama.cpp/build/bin/llama-server
--model /mnt/storage/GGUFs/Qwen3-Coder-Next-UD-Q3_K_XL.gguf
--no-warmup
--ctx-size 100000
--no-context-shift
# --n-gpu-layers 25 <--- do not use, let llama.cpp do its memory fitting algorithm magic! See here: https://deepwiki.com/search/im-confused-about-the-behavior_1eeb09c8-52c8-4c05-93fa-5bb9dce86b96
--temp 1
--top-p 0.95
--top-k 40
--repeat-penalty 1
--min-p 0
--jinja
--host 0.0.0.0
--port ${PORT}
--no-mmap
--flash-attn on
Memory usage: 21.8GB VRAM + 19.9GB RAM
Prompt processing speed: 567 t/s
Generation speed: 36.2 t/s
Qwen3-Coder-Next-Q4_K_XL
"Qwen3-Coder-Next-Q4_K_XL_90K":
cmd: |
/home/user/llama.cpp/build/bin/llama-server
--model /mnt/storage/GGUFs/Qwen3-Coder-Next-UD-Q4_K_XL.gguf
--no-warmup
--ctx-size 90000
--no-context-shift
# --n-gpu-layers 25 <--- do not use, let llama.cpp do its memory fitting algorithm magic! See here: https://deepwiki.com/search/im-confused-about-the-behavior_1eeb09c8-52c8-4c05-93fa-5bb9dce86b96
--temp 1
--top-p 0.95
--top-k 40
--repeat-penalty 1
--min-p 0
--jinja
--host 0.0.0.0
--port ${PORT}
--no-mmap
--flash-attn on
Memory usage: 21.7GB VRAM + 27.4GB RAM + 4.0GB swapfile (on a nvme ssd, read 3.4GB/s write 3.0GB/s)
Prompt processing speed: 460 t/s
Generation speed: 28.9 t/s
What tool did you use to produce benchmark report?
(in my case no bench tool, just some manual runs)
I used a script generated by Codex that inferenced the LMStudio API (it now supports concurrent requests- though in beta)
i should try with llama.cpp to see the difference
Backend : llama.cpp b8086 Cuda 13
Model : MXFP4_MOE
System
GPU : NVIDIA 5080 (16GB GDDR7)
Driver : Driver 591.86 Windows 11
CPU : 9800X3D
RAM : 64GB DDR5 @ 6200 MT/s
OS : Windows 11
-c 24576 ^
--batch-size 1024 ^
--ubatch-size 256 ^
--flash-attn on ^
--cache-type-k q8_0 ^
--cache-type-v q8_0 ^"
I tested it on a 750 line HA YAML with a task to optimise the code, and tweak the colours for a dark theme it did a great job to be honest.
7,441 tokens, 3min 1s, 40.97 tokens/s
Please tell me how you get such huge speeds?
i get 5tk/s on 4090 and 128GB RAM. I offload many layers to cpu and many to gpu.. and im using lm studio..