Instructions to use Zoed/Qwen3-Coder-30B-A3B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Zoed/Qwen3-Coder-30B-A3B-Instruct", filename="Qwen3-Coder-30B-A3B-Instruct-f16-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Zoed/Qwen3-Coder-30B-A3B-Instruct: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 Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Zoed/Qwen3-Coder-30B-A3B-Instruct: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 Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
Use Docker
docker model run hf.co/Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zoed/Qwen3-Coder-30B-A3B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zoed/Qwen3-Coder-30B-A3B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
- Ollama
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with Ollama:
ollama run hf.co/Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
- Unsloth Studio
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct 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 Zoed/Qwen3-Coder-30B-A3B-Instruct 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 Zoed/Qwen3-Coder-30B-A3B-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Zoed/Qwen3-Coder-30B-A3B-Instruct to start chatting
- Pi
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Zoed/Qwen3-Coder-30B-A3B-Instruct: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": "Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Zoed/Qwen3-Coder-30B-A3B-Instruct: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 Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with Docker Model Runner:
docker model run hf.co/Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
- Lemonade
How to use Zoed/Qwen3-Coder-30B-A3B-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Zoed/Qwen3-Coder-30B-A3B-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-Coder-30B-A3B-Instruct-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen3-Coder-30B-A3B-Instruct
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- qwen3
|
| 9 |
+
- qwen3-coder
|
| 10 |
+
- code
|
| 11 |
+
- gguf
|
| 12 |
+
- quantized
|
| 13 |
+
- q4_k_m
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Qwen3-Coder-30B-A3B-Instruct · Q4_K_M GGUF
|
| 18 |
+
|
| 19 |
+
This is a **Q4_K_M GGUF quantization** of [Qwen/Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct), produced from the f16 base.
|
| 20 |
+
|
| 21 |
+
| Property | Value |
|
| 22 |
+
|---|---|
|
| 23 |
+
| Base model | Qwen/Qwen3-Coder-30B-A3B-Instruct |
|
| 24 |
+
| Quantization | Q4_K_M |
|
| 25 |
+
| Format | GGUF |
|
| 26 |
+
| Parameters | 30B (MoE, ~3B active) |
|
| 27 |
+
|
| 28 |
+
## About the base model
|
| 29 |
+
|
| 30 |
+
Qwen3-Coder-30B-A3B-Instruct is a Mixture-of-Experts (MoE) code-focused instruction model developed by [Qwen Team, Alibaba Cloud](https://qwenlm.github.io/). It features 30B total parameters with ~3B active parameters per token.
|
| 31 |
+
|
| 32 |
+
For full details, see the [original model page](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct).
|
| 33 |
+
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
### llama.cpp
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
llama-cli \
|
| 40 |
+
-m Qwen3-Coder-30B-A3B-Instruct-f16-Q4_K_M.gguf \
|
| 41 |
+
--chat-template qwen3 \
|
| 42 |
+
-p "Write a Python function that sorts a list of dictionaries by a given key." \
|
| 43 |
+
-n 512
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
### llama-server
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
llama-server \
|
| 50 |
+
-m Qwen3-Coder-30B-A3B-Instruct-f16-Q4_K_M.gguf \
|
| 51 |
+
--chat-template qwen3 \
|
| 52 |
+
--port 8080
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
### Ollama (via Modelfile)
|
| 56 |
+
|
| 57 |
+
```
|
| 58 |
+
FROM ./Qwen3-Coder-30B-A3B-Instruct-f16-Q4_K_M.gguf
|
| 59 |
+
PARAMETER num_ctx 32768
|
| 60 |
+
TEMPLATE "{{ ... }}" # use Qwen3 chat template
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
## Quantization details
|
| 64 |
+
|
| 65 |
+
| File | Quant | Size (approx.) |
|
| 66 |
+
|---|---|---|
|
| 67 |
+
| `Qwen3-Coder-30B-A3B-Instruct-f16-Q4_K_M.gguf` | Q4_K_M | ~17 GB |
|
| 68 |
+
|
| 69 |
+
**Q4_K_M** uses 4-bit quantization with K-quant method on most layers, providing a good balance between size and quality.
|
| 70 |
+
|
| 71 |
+
## License
|
| 72 |
+
|
| 73 |
+
This quantized model is derived from [Qwen/Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) and is released under the same [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
|
| 74 |
+
|
| 75 |
+
Per Qwen's terms, appropriate credit is given to the original authors:
|
| 76 |
+
|
| 77 |
+
> Qwen3-Coder-30B-A3B-Instruct is developed by Qwen Team, Alibaba Cloud.
|
| 78 |
+
> Original model: https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct
|
| 79 |
+
|
| 80 |
+
## Citation
|
| 81 |
+
|
| 82 |
+
```bibtex
|
| 83 |
+
@misc{qwen3coder,
|
| 84 |
+
title = {Qwen3-Coder},
|
| 85 |
+
author = {Qwen Team},
|
| 86 |
+
year = {2025},
|
| 87 |
+
organization = {Alibaba Cloud},
|
| 88 |
+
url = {https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct}
|
| 89 |
+
}
|
| 90 |
+
```
|