Instructions to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-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 n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-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 n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS # Run inference directly in the terminal: llama cli -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS # Run inference directly in the terminal: llama cli -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
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 n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
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 n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
Use Docker
docker model run hf.co/n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
- LM Studio
- Jan
- vLLM
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-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": "n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
- Ollama
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF with Ollama:
ollama run hf.co/n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
- Unsloth Desktop
- Pi
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
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": "n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF with Docker Model Runner:
docker model run hf.co/n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
- Lemonade
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
Run and chat with the model
lemonade run user.Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-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 n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
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 n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS
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 "n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF:IQ4_XS" \ --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"
Qwen3-Coder-30B-A3B-Instruct - code-focused imatrix GGUF
GGUF quantizations of Qwen/Qwen3-Coder-30B-A3B-Instruct (MoE, 30.5B total / 3.3B active) produced with an importance matrix calibrated on source code only, so the quantization error is biased away from the weights that matter for code generation.
Files
| File | Bits | Size | Notes |
|---|---|---|---|
...-IQ4_XS.gguf |
~4.25 | ~16 GB | best quality that still mostly fits a 16 GB GPU |
...-IQ3_M.gguf |
~3.7 | ~14 GB | full offload on 16 GB VRAM with room for context |
...-Q4_K_M.gguf |
~4.8 | ~18.6 GB | highest quality here, needs partial CPU offload on 16 GB |
code.imatrix is the importance matrix itself, reusable for other quantization levels.
Calibration data
~4.5 MB of real source files sampled from public repositories, covering Python, JavaScript, TypeScript, Go, Rust, C, C++, Java, shell, SQL, plus project Markdown/JSON/YAML/TOML config so formatting-heavy output stays intact (repos: requests, flask, express, gin, ripgrep, nlohmann/json, gson, sqlite, rustlings).
120 chunks x 512 tokens were used for the imatrix pass.
Reproduce
# 1. base model -> Q8_0 GGUF
python3 convert_hf_to_gguf.py ./Qwen3-Coder-30B-A3B-Instruct \
--outtype q8_0 --outfile Qwen3-Coder-30B-A3B-Instruct-Q8_0.gguf
# 2. importance matrix on the code corpus
llama-imatrix -m Qwen3-Coder-30B-A3B-Instruct-Q8_0.gguf \
-f code_calib.txt -o code.imatrix --chunks 120 -c 512
# 3. quantize
llama-quantize --allow-requantize --imatrix code.imatrix \
Qwen3-Coder-30B-A3B-Instruct-Q8_0.gguf out-IQ4_XS.gguf IQ4_XS
Running on a Radeon RX 9060 (16 GB, RDNA4)
Vulkan backend is the most reliable path on RDNA4 today:
llama-server -m Qwen3-Coder-30B-A3B-Instruct-code-imatrix-IQ3_M.gguf \
-ngl 99 -c 16384 -fa on
If VRAM runs short with IQ4_XS or Q4_K_M, keep the attention layers on the GPU and push MoE expert tensors to system RAM:
llama-server -m ...-IQ4_XS.gguf -ngl 99 --n-cpu-moe 12 -c 16384 -fa on
Only 3.3B parameters are active per token, so CPU offload of a few expert layers costs much less throughput than it would on a dense model.
- Downloads last month
- 147
4-bit
Model tree for n19875624/Qwen3-Coder-30B-A3B-Instruct-code-imatrix-GGUF
Base model
Qwen/Qwen3-Coder-30B-A3B-Instruct