alt.freeweights.qwen / Qwen3-30B-A3B-Instruct-2507
From: Qwen <huggingface.co/Qwen>Newsgroups: alt.freeweights.qwenSubject:

Qwen3-30B-A3B-Instruct-2507

Date: 2026-11-14Commit: 0d7cf23Signed: 2DC28CC7B26A283B ✓

Text generation model with 30.5B parameters. Safetensors weights, 61.1 GB in all. Published by Qwen under Apache-2.0.

30.5B params61.1GBQwen3-30B-A3B-Instruct-2507safetensorspermissive
FactsParams30.5BSize61.1 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get Qwen/Qwen3-30B-A3B-Instruct-2507
# manifest sha256 17b8c2305fe3… · 61.1 GB · 27 files
$ fw verify ./Qwen3-30B-A3B-Instruct-2507 Qwen/Qwen3-30B-A3B-Instruct-2507
From sourceHosted (signed)Qwen/Qwen3-30B-A3B-Instruct-2507Last check: 2026-11-14 21:12 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
61.1 GB
Weights
61.1 GB (safetensors)
Parameters
30.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
27, each with a sha256
Publisher
Qwen
Added
2026-11-14
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:12 UTCpassed

Model card

From the publisher at commit 0d7cf23. Shown as plain text with links; images open at the publisher.

Qwen3-30B-A3B-Instruct-2507#

Chat

Highlights#

We introduce the updated version of the Qwen3-30B-A3B non-thinking mode, named Qwen3-30B-A3B-Instruct-2507, 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.

Image: image/jpeg

Model Overview#

Qwen3-30B-A3B-Instruct-2507 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 Paramaters (Non-Embedding): 29.9B
  • 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.

Performance#

Deepseek-V3-0324GPT-4o-0327Gemini-2.5-Flash Non-ThinkingQwen3-235B-A22B Non-ThinkingQwen3-30B-A3B Non-ThinkingQwen3-30B-A3B-Instruct-2507
Knowledge
MMLU-Pro81.279.881.175.269.178.4
MMLU-Redux90.491.390.689.284.189.3
GPQA68.466.978.362.954.870.4
SuperGPQA57.351.054.648.242.253.4
Reasoning
AIME2546.626.761.624.721.661.3
HMMT2527.57.945.810.012.043.0
ZebraLogic83.452.657.937.733.290.0
LiveBench 2024112566.963.769.162.559.469.0
Coding
LiveCodeBench v6 (25.02-25.05)45.235.840.132.929.043.2
MultiPL-E82.282.777.779.374.683.8
Aider-Polyglot55.145.344.059.624.435.6
Alignment
IFEval82.383.984.383.283.784.7
Arena-Hard v2*45.661.958.352.024.869.0
Creative Writing v381.684.984.680.468.186.0
WritingBench74.575.580.577.072.285.5
Agent
BFCL-v364.766.566.168.058.665.1
TAU1-Retail49.660.3#65.265.238.359.1
TAU1-Airline32.042.8#48.032.018.040.0
TAU2-Retail71.166.7#64.364.931.657.0
TAU2-Airline36.042.0#42.536.018.038.0
TAU2-Telecom34.029.8#16.924.618.412.3
Multilingualism
MultiIF66.570.469.470.270.867.9
MMLU-ProX75.876.278.373.265.172.0
INCLUDE80.182.183.875.667.871.9
PolyMATH32.225.541.927.023.343.1

*: For reproducibility, we report the win rates evaluated by GPT-4.1.

\#: Results were generated using GPT-4o-20241120, as access to the native function calling API of GPT-4o-0327 was unavailable.

Quickstart#

The code of Qwen3-MoE has been in the latest Hugging Face transformers and 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-30B-A3B-Instruct-2507"

# 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 = "Give me a short introduction to large language model."
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=16384
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist() 

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

print("content:", content)

For deployment, you can use sglang>=0.4.6.post1 or vllm>=0.8.5 or to create an OpenAI-compatible API endpoint:

  • SGLang: shell python -m sglang.launch_server --model-path Qwen/Qwen3-30B-A3B-Instruct-2507 --context-length 262144
  • vLLM: shell vllm serve Qwen/Qwen3-30B-A3B-Instruct-2507 --max-model-len 262144

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 Use#

Qwen3 excels in tool calling capabilities. We recommend using Qwen-Agent to make the best use of agentic ability of Qwen3. Qwen-Agent encapsulates tool-calling templates and tool-calling parsers internally, greatly reducing coding complexity.

To define the available tools, you can use the MCP configuration file, use the integrated tool of Qwen-Agent, or integrate other tools by yourself.

from qwen_agent.agents import Assistant

# Define LLM
llm_cfg = {
    'model': 'Qwen3-30B-A3B-Instruct-2507',

    # Use a custom endpoint compatible with OpenAI API:
    'model_server': 'http://localhost:8000/v1',  # api_base
    'api_key': 'EMPTY',
}

# Define Tools
tools = [
    {'mcpServers': {  # You can specify the MCP configuration file
            'time': {
                'command': 'uvx',
                'args': ['mcp-server-time', '--local-timezone=Asia/Shanghai']
            },
            "fetch": {
                "command": "uvx",
                "args": ["mcp-server-fetch"]
            }
        }
    },
  'code_interpreter',  # Built-in tools
]

# Define Agent
bot = Assistant(llm=llm_cfg, function_list=tools)

# Streaming generation
messages = [{'role': 'user', 'content': 'https://qwenlm.github.io/blog/ Introduce the latest developments of Qwen'}]
for responses in bot.run(messages=messages):
    pass
print(responses)

Processing Ultra-Long Texts#

To support ultra-long context processing (up to 1 million tokens), we integrate two key techniques:

  • Dual Chunk Attention (DCA): A length extrapolation method that splits long sequences into manageable chunks while preserving global coherence.
  • MInference: A sparse attention mechanism that reduces computational overhead by focusing on critical token interactions.

Together, these innovations significantly improve both generation quality and inference efficiency for sequences beyond 256K tokens. On sequences approaching 1M tokens, the system achieves up to a 3× speedup compared to standard attention implementations.

For full technical details, see the Qwen2.5-1M Technical Report.

How to Enable 1M Token Context#

Note. To effectively process a 1 million token context, users will require approximately 240 GB of total GPU memory. This accounts for model weights, KV-cache storage, and peak activation memory demands.

Step 1: Update Configuration File#

Download the model and replace the content of your config.json with config_1m.json, which includes the config for length extrapolation and sparse attention.

export MODELNAME=Qwen3-30B-A3B-Instruct-2507
huggingface-cli download Qwen/${MODELNAME} --local-dir ${MODELNAME}
mv ${MODELNAME}/config.json ${MODELNAME}/config.json.bak
mv ${MODELNAME}/config_1m.json ${MODELNAME}/config.json
Step 2: Launch Model Server#

After updating the config, proceed with either vLLM or SGLang for serving the model.

Option 1: Using vLLM#

To run Qwen with 1M context support:

pip install -U vllm \
    --torch-backend=auto \
    --extra-index-url https://wheels.vllm.ai/nightly

Then launch the server with Dual Chunk Flash Attention enabled:

VLLM_ATTENTION_BACKEND=DUAL_CHUNK_FLASH_ATTN VLLM_USE_V1=0 \
vllm serve ./Qwen3-30B-A3B-Instruct-2507 \
  --tensor-parallel-size 4 \
  --max-model-len 1010000 \
  --enable-chunked-prefill \
  --max-num-batched-tokens 131072 \
  --enforce-eager \
  --max-num-seqs 1 \
  --gpu-memory-utilization 0.85
Key Parameters#
ParameterPurpose
VLLM_ATTENTION_BACKEND=DUAL_CHUNK_FLASH_ATTNEnables the custom attention kernel for long-context efficiency
--max-model-len 1010000Sets maximum context length to ~1M tokens
--enable-chunked-prefillAllows chunked prefill for very long inputs (avoids OOM)
--max-num-batched-tokens 131072Controls batch size during prefill; balances throughput and memory
--enforce-eagerDisables CUDA graph capture (required for dual chunk attention)
--max-num-seqs 1Limits concurrent sequences due to extreme memory usage
--gpu-memory-utilization 0.85Set the fraction of GPU memory to be used for the model executor
Option 2: Using SGLang#

First, clone and install the specialized branch:

git clone https://github.com/sgl-project/sglang.git
cd sglang
pip install -e "python[all]"

Launch the server with DCA support:

python3 -m sglang.launch_server \
    --model-path ./Qwen3-30B-A3B-Instruct-2507 \
    --context-length 1010000 \
    --mem-frac 0.75 \
    --attention-backend dual_chunk_flash_attn \
    --tp 4 \
    --chunked-prefill-size 131072
Key Parameters#
ParameterPurpose
--attention-backend dual_chunk_flash_attnActivates Dual Chunk Flash Attention
--context-length 1010000Defines max input length
--mem-frac 0.75The fraction of the memory used for static allocation (model weights and KV cache memory pool). Use a smaller value if you see out-of-memory errors.
--tp 4Tensor parallelism size (matches model sharding)
--chunked-prefill-size 131072Prefill chunk size for handling long inputs without OOM
Troubleshooting:#
  1. Encountering the error: "The model's max sequence length (xxxxx) is larger than the maximum number of tokens that can be stored in the KV cache." or "RuntimeError: Not enough memory. Please try to increase --mem-fraction-static." The VRAM reserved for the KV cache is insufficient.
    • vLLM: Consider reducing the max_model_len or increasing the tensor_parallel_size and gpu_memory_utilization. Alternatively, you can reduce max_num_batched_tokens, although this may significantly slow down inference.
    • SGLang: Consider reducing the context-length or increasing the tp and mem-frac. Alternatively, you can reduce chunked-prefill-size, although this may significantly slow down inference.
  2. Encountering the error: "torch.OutOfMemoryError: CUDA out of memory." The VRAM reserved for activation weights is insufficient. You can try lowering gpu_memory_utilization or mem-frac, but be aware that this might reduce the VRAM available for the KV cache.
  3. Encountering the error: "Input prompt (xxxxx tokens) + lookahead slots (0) is too long and exceeds the capacity of the block manager." or "The input (xxx xtokens) is longer than the model's context length (xxx tokens)." The input is too lengthy. Consider using a shorter sequence or increasing the max_model_len or context-length.
Long-Context Performance#

We test the model on an 1M version of the RULER benchmark.

Model NameAcc avg4k8k16k32k64k96k128k192k256k384k512k640k768k896k1000k
Qwen3-30B-A3B (Non-Thinking)72.097.196.195.092.282.679.776.970.266.361.955.452.651.552.050.9
Qwen3-30B-A3B-Instruct-2507 (Full Attention)86.898.096.796.997.293.491.089.189.882.583.678.479.777.675.772.8
Qwen3-30B-A3B-Instruct-2507 (Sparse Attention)86.898.097.196.395.193.692.588.187.782.985.780.780.076.975.572.2
  • All models are evaluated with Dual Chunk Attention enabled.
  • Since the evaluation is time-consuming, we use 260 samples for each length (13 sub-tasks, 20 samples for each).

Best Practices#

To achieve optimal performance, we recommend the following settings:

  1. Sampling Parameters:
    • We suggest using Temperature=0.7, TopP=0.8, TopK=20, and MinP=0.
    • For supported frameworks, you can adjust the presence_penalty parameter between 0 and 2 to reduce endless repetitions. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance.
  2. Adequate Output Length: We recommend using an output length of 16,384 tokens for most queries, which is adequate for instruct models.
  3. Standardize Output Format: We recommend using prompts to standardize model outputs when benchmarking.
    • Math Problems: Include "Please reason step by step, and put your final answer within \boxed{}." in the prompt.
    • Multiple-Choice Questions: Add the following JSON structure to the prompt to standardize responses: "Please show your choice in the answer field with only the choice letter, e.g., "answer": "C"."
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}, 
}

Files

27 files · 61.1 GBWeights 61.1 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 27 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
LICENSE11.3 KB05cab46843576551502bfdf712f84e93e6e9590d9997306ed4f6635ef82811d9
README.md15.4 KB5d25d4b43cdfaf83e3d71df8f3436703ab26d92c07305053be667f577a49bb9e
config.json963 Ba1ee086a68d0cbfc87316da00ba4b8507bd1292978108e2496201a30a450f438
config_1m.json77.3 KBbacd81916858d5b9f5daa616ee3aca13e3f888ceeb374cc804546de008dc85d0
generation_config.json239 B19d306dd769db12a9d710b44cf7f83b635efbe5166b84fb4358a08fb7d88bb53
merges.txt1.67 MB599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3
model-00001-of-00016.safetensors4.00 GBafe775cbdefb257e1bf1d8551fb930bd4b78d74da0b10bbb651f6b6a6f67c325
model-00002-of-00016.safetensors4.00 GBc0eefe9ed74050f4144fcb1b614c6915462e756b6673a9cca67f446b00c3434f
model-00003-of-00016.safetensors4.00 GB18ebd81e648667b1513786fc75886044e8ccb06b04562a35cbea59a41e4bcbbf
model-00004-of-00016.safetensors4.00 GB5df2f491c8c96651963a0d84db89d7647febc0e5f4f96cc67c2edac2d4a731b2
model-00005-of-00016.safetensors4.00 GB276477e938cd0de42c967faa7c10bc03a1a4b3e82135d5e17469152d0dd5374e
model-00006-of-00016.safetensors4.00 GBac03cec889c40085113ddcb8f73216a157e7b83f06bb37aaf6a4699b84fa4abe
model-00007-of-00016.safetensors4.00 GB382aee85a70fccca2bde6043a0aefc16f3fd2e87e2a8d1ccf1eba442f7a98e92
model-00008-of-00016.safetensors4.00 GBeffec719bf78d74170f294d94f1240b8f6f30c5402a04a3dc2cb42c8cdaa101a
model-00009-of-00016.safetensors4.00 GB6f272f00be2100f34d3a0463fb6e66b106f015bbc9aaba02b1898a102938d7c1
model-00010-of-00016.safetensors4.00 GBc2bc4101cde6b7c9dda36bbdff815c2ff19541d7732e94d306d87a0806c133b3
model-00011-of-00016.safetensors4.00 GBadb34c5b4c1e4c85527218638c246181ffb7763ed033c0f3d09f5242e7022712
model-00012-of-00016.safetensors3.99 GBd4276b408eca9c249fd317f725074e9a443107ca6cfd518d5cea3911f1cefce2
model-00013-of-00016.safetensors4.00 GBc7070b4e079477665f2a6f5a26704bdcbd757afa4b7edc3d628128abe9157c51
model-00014-of-00016.safetensors4.00 GBc50e816929903e80e9e6ca4d6eec3b643a50478e61407495fbc10f3c999b0fd5
model-00015-of-00016.safetensors4.00 GB5351255875a9b79507db1357e61f109ec880fd3e4a2000d5f7c51494aa77d288
model-00016-of-00016.safetensors1.09 GBfa5623e55641935f938894cc91090732452ef22da12596e857c8dff4fa71627b
model.safetensors.index.json1.70 MB8dde190b862c7c80ec7403c6495de00c60bbaf246ed479cee4506284989c584c
tokenizer.json11.4 MBaeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer_config.json9.38 KBa62ff0a2472a0fa1b8eaabcb57c59b58afa42a22831dc141400b6e0cf2b65ce3
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0d7cf23991 pinned now manifest updated, same commit2026-11-14 21:12 UTC27 files · 61.1 GB
0d7cf239912026-11-14 21:12 UTC27 files · 61.1 GB

Use it

$ fw get Qwen/Qwen3-30B-A3B-Instruct-2507
# manifest sha256 17b8c2305fe3… · 61.1 GB · 27 files
$ fw verify ./Qwen3-30B-A3B-Instruct-2507 Qwen/Qwen3-30B-A3B-Instruct-2507
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Qwen/Qwen3-30B-A3B-Instruct-2507.json --dir ./Qwen3-30B-A3B-Instruct-2507 $ python3 fw.py verify ./Qwen3-30B-A3B-Instruct-2507 ./Qwen__Qwen3-30B-A3B-Instruct-2507.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Qwen/Qwen3-30B-A3B-Instruct-2507 --revision 0d7cf23991f47feeb3a57ecb4c9cee8ea4a17bfe --local-dir ./Qwen3-30B-A3B-Instruct-2507
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-30B-A3B-Instruct-2507", revision="0d7cf23991f47feeb3a57ecb4c9cee8ea4a17bfe") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-30B-A3B-Instruct-2507", revision="0d7cf23991f47feeb3a57ecb4c9cee8ea4a17bfe", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve Qwen/Qwen3-30B-A3B-Instruct-2507 --revision 0d7cf23991f47feeb3a57ecb4c9cee8ea4a17bfe

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
LICENSE
Text sha256
05cab46843576551502bfdf712f84e93e6e9590d9997306ed4f6635ef82811d9
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: Qwen <huggingface.co/Qwen>Newsgroups: alt.freeweights.qwenSubject: Qwen3-30B-A3B-Instruct-2507Date: 2026-11-14Commit: 0d7cf23Signed: 2DC28CC7B26A283B ✓
Upstream
Qwen/Qwen3-30B-A3B-Instruct-2507
Pinned commit
0d7cf23991f47feeb3a57ecb4c9cee8ea4a17bfe
Manifest
Qwen3-30B-A3B-Instruct-2507.json · .minisig
Manifest sha256
17b8c2305fe3fbe925cc5eabd48fe94811f4bffd06af31a8269e9e547b5f677b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:12 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Qwen/Qwen3-30B-A3B-Instruct-2507.json $ curl -O https://freeweights.allternit.com/manifests/Qwen/Qwen3-30B-A3B-Instruct-2507.json.minisig $ minisign -Vm Qwen3-30B-A3B-Instruct-2507.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

9 models in the catalog name this one as their parent.

Quantizations
9
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Qwen/Qwen3-30B-A3B-Instruct-2507
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen3-30B-A3B-Instruct-2507.json. Provenance. Takedown history: none.

Variants

9 quantized or adapter builds of Qwen3-30B-A3B-Instruct-2507. Each has its own license check and page.

From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF