Instructions to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF") model = AutoModelForCausalLM.from_pretrained("second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF") - llama-cpp-python
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF", filename="Qwen3-Coder-30B-A3B-Instruct-Q2_K.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 second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF: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 second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF: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 second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/Qwen3-Coder-30B-A3B-Instruct-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": "second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
- SGLang
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-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 "second-state/Qwen3-Coder-30B-A3B-Instruct-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": "second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "second-state/Qwen3-Coder-30B-A3B-Instruct-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": "second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with Ollama:
ollama run hf.co/second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
- Unsloth Studio
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-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 second-state/Qwen3-Coder-30B-A3B-Instruct-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 second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF to start chatting
- Pi
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF: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": "second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF: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 second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3-Coder-30B-A3B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
Update models
Browse files- .gitattributes +15 -0
- Qwen3-Coder-30B-A3B-Instruct-Q2_K.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q3_K_L.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q3_K_M.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q3_K_S.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q4_0.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q4_K_S.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q5_0.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q5_K_M.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q5_K_S.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q6_K.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-Q8_0.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-f16-00001-of-00003.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-f16-00002-of-00003.gguf +3 -0
- Qwen3-Coder-30B-A3B-Instruct-f16-00003-of-00003.gguf +3 -0
- config.json +39 -0
|
@@ -33,3 +33,18 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Qwen3-Coder-30B-A3B-Instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Qwen3-Coder-30B-A3B-Instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Qwen3-Coder-30B-A3B-Instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Qwen3-Coder-30B-A3B-Instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Qwen3-Coder-30B-A3B-Instruct-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Qwen3-Coder-30B-A3B-Instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Qwen3-Coder-30B-A3B-Instruct-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Qwen3-Coder-30B-A3B-Instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Qwen3-Coder-30B-A3B-Instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Qwen3-Coder-30B-A3B-Instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Qwen3-Coder-30B-A3B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Qwen3-Coder-30B-A3B-Instruct-f16-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
Qwen3-Coder-30B-A3B-Instruct-f16-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
Qwen3-Coder-30B-A3B-Instruct-f16-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca6feebb651e684b7606841a4e5008b2ff4464f5e7695733a128d5ae35b8ea56
|
| 3 |
+
size 11258611360
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b1693e53f965df4179ba3958944a35d6336fe135124fd91056013aeb4c39ead
|
| 3 |
+
size 15900671648
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6c6d553c9bddc569430672ee57e2293c1b9833268c3687bdfe2f12bc5148509
|
| 3 |
+
size 14711848608
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:505cb7a5199e681fd70a372d50b2880ea68af757c726eca7f63b2af6b551b395
|
| 3 |
+
size 13292469920
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1afa6a166898cd05a6291a4bf5f0204241bc122b4f9b9f1dc5eac9a8f04b7253
|
| 3 |
+
size 17304491680
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c111309e37bc5f8ebac319839a8b6e5b4536e9a5804121df63d027bbd55b5b6
|
| 3 |
+
size 18556688032
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb8be748267bb5ba34fe6b88d6cc1061fd5bbe52b89e85e660cf2419d5b04487
|
| 3 |
+
size 17456010912
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13a370d5adf44b300fd70f96df5a25ad99f3fdf4588fea5a3cb8e13922f1cfec
|
| 3 |
+
size 21080512160
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cca9d05d96a6fb431f241b9295efb5a4002e2fdd248afcf1513a7bc5747954d
|
| 3 |
+
size 21725583008
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f78b3bc3212aadd67e2e1d8d6feb130b2abac75b995ab74317c121217b727919
|
| 3 |
+
size 21080512160
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07a79d3335c97f7ed9e525f17570ae5977f98b68a749353520e4b323940a0b0e
|
| 3 |
+
size 25092533920
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f22993e29318b5b9ec2026f6b65802a5ca99b38ab4844aab83aed8a26ce00ff6
|
| 3 |
+
size 32483933856
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfbb2e47a08f0f4266ad8eefbae45611715aca8ce985c6a0e5fe62352e569b27
|
| 3 |
+
size 29706752288
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55cb9630a836bfa368f997038f68cf0e413d28b91d9d5a5fdf90a65898cdbee7
|
| 3 |
+
size 29557689440
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5a87e83e4ae1da831036c353646958df0f070ee4cb51b0c25a8dd4eed74c79f
|
| 3 |
+
size 1831363168
|
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3MoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"decoder_sparse_step": 1,
|
| 7 |
+
"eos_token_id": 151645,
|
| 8 |
+
"head_dim": 128,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 2048,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 5472,
|
| 13 |
+
"max_position_embeddings": 262144,
|
| 14 |
+
"max_window_layers": 28,
|
| 15 |
+
"mlp_only_layers": [],
|
| 16 |
+
"model_type": "qwen3_moe",
|
| 17 |
+
"moe_intermediate_size": 768,
|
| 18 |
+
"norm_topk_prob": true,
|
| 19 |
+
"num_attention_heads": 32,
|
| 20 |
+
"num_experts": 128,
|
| 21 |
+
"num_experts_per_tok": 8,
|
| 22 |
+
"num_hidden_layers": 48,
|
| 23 |
+
"num_key_value_heads": 4,
|
| 24 |
+
"output_router_logits": false,
|
| 25 |
+
"qkv_bias": false,
|
| 26 |
+
"rms_norm_eps": 1e-06,
|
| 27 |
+
"rope_scaling": null,
|
| 28 |
+
"rope_theta": 10000000,
|
| 29 |
+
"router_aux_loss_coef": 0.0,
|
| 30 |
+
"shared_expert_intermediate_size": 0,
|
| 31 |
+
"sliding_window": null,
|
| 32 |
+
"tie_word_embeddings": false,
|
| 33 |
+
"torch_dtype": "bfloat16",
|
| 34 |
+
"transformers_version": "4.52.3",
|
| 35 |
+
"use_cache": true,
|
| 36 |
+
"use_qk_norm": true,
|
| 37 |
+
"use_sliding_window": false,
|
| 38 |
+
"vocab_size": 151936
|
| 39 |
+
}
|