SAVRN
Search Contact SAVRN

Open-weight model · Text generation

Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit

by Cyankiwi cyankiwi/Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit

Qwen3-Coder is available in multiple sizes. Today, we're excited to introduce Qwen3-Coder-30B-A3B-Instruct.

Parameters5.3B
Context262,144
Weights18.1 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads957.2k

Runs On

What it takes to serve Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit (5.3B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 10.6 GB 12.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 5.3 GB 6.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 2.7 GB 3.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Cyankiwi, published under apache-2.0, revision 4bd30395b72e.

Qwen3-Coder is available in multiple sizes. Today, we're excited to introduce Qwen3-Coder-30B-A3B-Instruct. This streamlined model maintains impressive performance and efficiency, featuring the following key enhancements: - Significant Performance among open models on Agentic Coding, Agentic Browser-Use, and other foundational coding tasks. - Long-context Capabilities with native support for 256K tokens, extendable up to 1M tokens using Yarn, optimized for repository-scale understanding. - Agentic Coding supporting for most platform such as Qwen Code, CLINE, featuring a specially designed function call format. Qwen3-Coder-30B-A3B-Instruct has the following features: NOTE: This model…

Read Cyankiwi's full model card

Qwen3-Coder-30B-A3B-Instruct

Highlights

Qwen3-Coder is available in multiple sizes. Today, we're excited to introduce Qwen3-Coder-30B-A3B-Instruct. This streamlined model maintains impressive performance and efficiency, featuring the following key enhancements:

  • Significant Performance among open models on Agentic Coding, Agentic Browser-Use, and other foundational coding tasks.
  • Long-context Capabilities with native support for 256K tokens, extendable up to 1M tokens using Yarn, optimized for repository-scale understanding.
  • Agentic Coding supporting for most platform such as Qwen Code, CLINE, featuring a specially designed function call format.

Model Overview

Qwen3-Coder-30B-A3B-Instruct has the following features: - Type: Causal Language Models - Training Stage: Pretraining & Post-training - Number of Parameters: 30.5B in total and 3.3B activated - Number of Layers: 48 - Number of Attention Heads (GQA): 32 for Q and 4 for KV - Number of Experts: 128 - Number of Activated Experts: 8 - Context Length: 262,144 natively.

NOTE: This model supports only non-thinking mode and does not generate <think></think> blocks in its output. Meanwhile, specifying enable_thinking=False is no longer required.

For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation.

Quickstart

We advise you to use the latest version of transformers.

With transformers<4.51.0, you will encounter the following error:

KeyError: 'qwen3_moe'

The following contains a code snippet illustrating how to use the model generate content based on given inputs.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Qwen/Qwen3-Coder-30B-A3B-Instruct"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)

# prepare the model input
prompt = "Write a quick sort algorithm."
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

# conduct text completion
generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=65536
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist() 

content = tokenizer.decode(output_ids, skip_special_tokens=True)

print("content:", content)

Note: If you encounter out-of-memory (OOM) issues, consider reducing the context length to a shorter value, such as 32,768.

For local use, applications such as Ollama, LMStudio, MLX-LM, llama.cpp, and KTransformers have also supported Qwen3.

Agentic Coding

Qwen3-Coder excels in tool calling capabilities.

You can simply define or use any tools as following example.

# Your tool implementation
def square_the_number(num: float) -> dict:
    return num ** 2

# Define Tools
tools=[
    {
        "type":"function",
        "function":{
            "name": "square_the_number",
            "description": "output the square of the number.",
            "parameters": {
                "type": "object",
                "required": ["input_num"],
                "properties": {
                    'input_num': {
                        'type': 'number', 
                        'description': 'input_num is a number that will be squared'
                        }
                },
            }
        }
    }
]

import OpenAI
# Define LLM
client = OpenAI(
    # Use a custom endpoint compatible with OpenAI API
    base_url='http://localhost:8000/v1',  # api_base
    api_key="EMPTY"
)

messages = [{'role': 'user', 'content': 'square the number 1024'}]

completion = client.chat.completions.create(
    messages=messages,
    model="Qwen3-Coder-30B-A3B-Instruct",
    max_tokens=65536,
    tools=tools,
)

print(completion.choice[0])

Best Practices

To achieve optimal performance, we recommend the following settings:

  1. Sampling Parameters: - We suggest using temperature=0.7, top_p=0.8, top_k=20, repetition_penalty=1.05.

  2. Adequate Output Length: We recommend using an output length of 65,536 tokens for most queries, which is adequate for instruct models.

Citation

If you find our work helpful, feel free to give us a cite.

@misc{qwen3technicalreport,
      title={Qwen3 Technical Report}, 
      author={Qwen Team},
      year={2025},
      eprint={2505.09388},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2505.09388}, 
}

Configuration

Architecture
Qwen3MoeForCausalLM
Context length (tokens)
262,144
Layers
48
Hidden size
2,048
Feed-forward size
5,472
Attention heads
32
Key/value heads
4
Head dimension
128
Vocabulary size
151,936
Experts
128
Experts active per token
8
RoPE base
10,000,000
Model type
qwen3_moe
Quantization
compressed-tensors

Identity and Version

Repository
cyankiwi/Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit
Publisher
Cyankiwi
Task
Text generation
Modality
Text
Library
transformers
Parameters
5.3B parameters
Languages
Not stated by the source
Revision
4bd30395b72ea6045edd04806c4fea448d4467b3
First published
2025-08-01
Last updated
2026-07-21

Files and Weights

18 files, 18.1 GB in total. The weights are 4 files totalling 18.1 GB in safetensors.

Weights4 files · 18.1 GB
Configuration7 files · 5.5 MB
Tokenizer4 files · 15.9 MB
Documentation1 file · 5.5 KB
Other1 file · 6.2 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00004.safetensorsWeights5.0 GB 8c2b4374b907
model-00002-of-00004.safetensorsWeights5.0 GB fee932dc2545
model-00003-of-00004.safetensorsWeights5.0 GB bed65943b982
model-00004-of-00004.safetensorsWeights3.1 GB 9edfbef02e69
added_tokens.jsonConfiguration707 B
config.jsonConfiguration3.5 KB
generation_config.jsonConfiguration217 B
model.safetensors.index.jsonConfiguration5.4 MB
qwen3coder_tool_parser.pyConfiguration31.6 KB
recipe.yamlConfiguration1.3 KB
special_tokens_map.jsonConfiguration613 B
README.mdDocumentation5.5 KB
chat_template.jinjaOther6.2 KB
.gitattributesRepository1.6 KB
merges.txtTokenizer1.7 MB
tokenizer.jsonTokenizer11.4 MB aeb13307a71a
tokenizer_config.jsonTokenizer5.4 KB
vocab.jsonTokenizer2.8 MB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
18.1 GB
Download from Cyankiwi

Released by Cyankiwi through its official repository on Hugging Face. Read the license.

Built From

  • Derived from Qwen/Qwen3-Coder-30B-A3B-Instruct
  • Described by arXiv:2505.09388
  • Quantized from Qwen/Qwen3-Coder-30B-A3B-Instruct

Memory Requirements

PrecisionWeights in memory
As published18.1 GB
16-bit10.6 GB
8-bit5.3 GB
4-bit2.7 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit

How much GPU memory does Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit need?

About 12.7 GB at 16-bit and 3.2 GB at 4-bit: the weights (5.3B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit commercially?

Yes. Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Qwen3-Coder-30B-A3B-Instruct-AWQ-4bit's context length?

262,144 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

Qwen3-4B-Instruct-2507-FP8

Qwen

We introduce the updated version of the Qwen3-4B-FP8 non-thinking mode, named Qwen3-4B-Instruct-2507-FP8, featuring the following key enhancements: - Significant improvements in general capabilities, including instruction following, logical reasoning, text comprehension, mathematics, science, coding and tool usage. - Substantial gains in long-tail knowledge coverage across multiple languages. - Markedly better alignment with user preferences in subjective and open-ended tasks, enabling more helpful responses and higher-quality text generation. - Enhanced capabilities in 256K long-context understanding. This repo contains the FP8 version of Qwen3-4B-Instruct-2507, which has the following…

Open weights apache-2.0 4.4B parameters 262,144 tokens transformers

An OpenRLHF GRPO reinforcement-learning checkpoint for Qwen3-4B. - Saved at global step 16 of RL run seededrlbaseramp25stoppengen4kep2ncp10q4v3groot16. - This is the best checkpoint by pass@8 so far in this run (evaldefaultpass8 = 0.1244). Trained and validated on the cobalt-train ≤2/64 frontier (canonical cleaneval prompts): 1833 train / 112 held-out val problems the base model solved on at most 2 of 64 samples under the iidcanonical@64 hardness scan. Val evals sample at temperature 1.0 (matching the cleaneval frontier eval). Reward signal: binary code-correctness (1.0 if the generated program passes the problem's tests, otherwise 0.0). Eval metrics at this checkpoint (held-out val, 8…

Open weights 4.4B parameters 262,144 tokens transformers

An OpenRLHF GRPO reinforcement-learning checkpoint for Qwen3-4B. - Saved at global step 40 of RL run seededrlbaseramp25stoppengen4kep2ncp10baseq4v3. - This is the best checkpoint by pass@8 so far in this run (evaldefaultpass8 = 0.0421). Trained and validated on the cobalt-train ≤2/64 frontier (canonical cleaneval prompts): 1833 train / 112 held-out val problems the base model solved on at most 2 of 64 samples under the iidcanonical@64 hardness scan. Val evals sample at temperature 1.0 (matching the cleaneval frontier eval). Reward signal: binary code-correctness (1.0 if the generated program passes the problem's tests, otherwise 0.0). Eval metrics at this checkpoint (held-out val, 8…

Open weights 4.4B parameters 262,144 tokens transformers

Model · Text generation

dQwen3.5-4B-Base

IFML

A masked diffusion language model adapted from Qwen3.5-4B. The backbone is hybrid: only its attention layers are made bidirectional, and the Gated DeltaNet layers stay causal. This is a base model, with no instruction tuning. Paper: dQwen3.5: Hybrid-Attention Diffusion Language Models. Code: https://github.com/AntonXue/dQwen Needs a CUDA GPU and transformers>=5.13 (tested with torch 2.7.1+cu128, flash-linear-attention 0.5.1). generate decodes the whole canvas at once, committing positions above a confidence threshold (tau=0.9); pass blocklength=32 for left-to-right block decoding, or tau=None, stepsperblock=k for a fixed budget. The 50B-token checkpoint from the paper is…

Open weights apache-2.0 4.2B parameters 262,144 tokens transformers

Model · Text generation

Huihui-NeoHorse-1-4B-abliterated

Huihui.ai

This is an uncensored version of TokenRhythm/NeoHorse-1-4B created with abliteration (see remove-refusals-with-transformers to know more about it). This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens. Layers 5-17 are being ablated (0-based indexing). The MTP and Visual components were extracted from the original Qwen/Qwen3.5-4B and can provide excellent support. If needed, you only need to copy the contents of MTP-Visual to overwrite the model directory. You can use this model in your applications by loading it with Hugging Face's transformers library: - Risk of Sensitive or Controversial Outputs: This model’s safety filtering…

Open weights apache-2.0 4.2B parameters 262,144 tokens transformers