Base Model Qwen/Qwen3-235B-A22B
2025-08-19
1.[BugFix] Fix compatibility issues with vLLM 0.10.1
2025-05-09
1. fast commit
2. Confirmed support for launching with 8 GPUs using `tensor-parallel-size` + `expert-parallel`
3. Must be launched with `gptq_marlin`; does not support Compute 7 GPUs: vLLM has not implemented native GPTQ MoE module
vllm==0.8.5
transformers==4.51.3
### 【💡Notes on New VLLM MoE Versions💡】Before launching vLLM, set the following environment variable
export VLLM_USE_V1=0
Replace the file in your installation with the attached version at:
.../vllm/model_executor/layers/quantization/gptq_marlin.py
Otherwise, you may encounter the following error:
raise NotImplementedError(
NotImplementedError: Apply router weight on input is not supported forfused Marlin MoE method.
### 【💡Notes on Qwen3-235B-A22B💡】Example Launch Command:
vllm serve \
QuantTrio/Qwen3-235B-A22B-GPTQ-Int8 \
--served-model-name Qwen3-235B-A22B-GPTQ-Int8 \
--max-num-seqs 8 \
--max-model-len 32768 \
--max-seq-len-to-capture 32768 \
--gpu-memory-utilization 0.98 \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--disable-log-requests \
--trust-remote-code
| FILE SIZE | LATEST UPDATE TIME |
|---|---|
226GB |
2025-05-09 |
from huggingface_hub import snapshot_download
snapshot_download('QuantTrio/Qwen3-235B-A22B-GPTQ-Int8', cache_dir="local_path")
Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features:
Qwen3-235B-A22B has the following features:
For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation.
To achieve optimal performance, we recommend the following settings:
Sampling Parameters:
enable_thinking=True), use Temperature=0.6, TopP=0.95, TopK=20, and MinP=0. DO NOT use greedy decoding, as it can lead to performance degradation and endless repetitions.enable_thinking=False), we suggest using Temperature=0.7, TopP=0.8, TopK=20, and MinP=0.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.Adequate Output Length: We recommend using an output length of 32,768 tokens for most queries. For benchmarking on highly complex problems, such as those found in math and programming competitions, we suggest setting the max output length to 38,912 tokens. This provides the model with sufficient space to generate detailed and comprehensive responses, thereby enhancing its overall performance.
Standardize Output Format: We recommend using prompts to standardize model outputs when benchmarking.
answer field with only the choice letter, e.g., "answer": "C"."No Thinking Content in History: In multi-turn conversations, the historical model output should only include the final output part and does not need to include the thinking content. It is implemented in the provided chat template in Jinja2. However, for frameworks that do not directly use the Jinja2 chat template, it is up to the developers to ensure that the best practice is followed.
Qwen3 natively supports context lengths of up to 32,768 tokens. For conversations where the total length (including both input and output) significantly exceeds this limit, we recommend using RoPE scaling techniques to handle long texts effectively. We have validated the model's performance on context lengths of up to 131,072 tokens using the YaRN method.
YaRN is currently supported by several inference frameworks, e.g., transformers and llama.cpp for local use, vllm and sglang for deployment. In general, there are two approaches to enabling YaRN for supported frameworks:
Modifying the model files:
In the config.json file, add the rope_scaling fields:
{
...,
"rope_scaling": {
"rope_type": "yarn",
"factor": 4.0,
"original_max_position_embeddings": 32768
}
}
For llama.cpp, you need to regenerate the GGUF file after the modification.
Passing command line arguments:
For vllm, you can use
vllm serve ... --rope-scaling '{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}' --max-model-len 131072
For sglang, you can use
python -m sglang.launch_server ... --json-model-override-args '{"rope_scaling":{"rope_type":"yarn","factor":4.0,"original_max_position_embeddings":32768}}'
For llama-server from llama.cpp, you can use
llama-server ... --rope-scaling yarn --rope-scale 4 --yarn-orig-ctx 32768
vllm serve ...model_path... --chat-template ./qwen3_nonthinking.jinja
If you find our work helpful, feel free to give us a cite.
@misc{qwen3,
title = {Qwen3},
url = {https://qwenlm.github.io/blog/qwen3/},
author = {Qwen Team},
month = {April},
year = {2025}
}
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo QuantTrio/Qwen3-235B-A22B-GPTQ-Int8 ./model-foldermodel-00037-of-00049.safetensors 4.7 GiBmodel-00047-of-00049.safetensors 4.7 GiBmodel-00039-of-00049.safetensors 4.7 GiBmodel-00020-of-00049.safetensors 4.7 GiBmodel-00045-of-00049.safetensors 4.7 GiBmodel-00018-of-00049.safetensors 4.7 GiBmodel-00014-of-00049.safetensors 4.7 GiBmodel-00016-of-00049.safetensors 4.7 GiBmodel-00030-of-00049.safetensors 4.7 GiBmodel-00032-of-00049.safetensors 4.7 GiBmodel-00034-of-00049.safetensors 4.7 GiBmodel-00036-of-00049.safetensors 4.7 GiBmodel-00041-of-00049.safetensors 4.7 GiBmodel-00043-of-00049.safetensors 4.7 GiBmodel-00007-of-00049.safetensors 4.7 GiBmodel-00009-of-00049.safetensors 4.7 GiBmodel-00011-of-00049.safetensors 4.7 GiBmodel-00005-of-00049.safetensors 4.7 GiBmodel-00001-of-00049.safetensors 4.7 GiBmodel-00012-of-00049.safetensors 4.7 GiBmodel-00021-of-00049.safetensors 4.7 GiBmodel-00027-of-00049.safetensors 4.7 GiBmodel-00025-of-00049.safetensors 4.7 GiBmodel-00048-of-00049.safetensors 4.7 GiB 4.7 GiBmodel-00023-of-00049.safetensorsmodel-00002-of-00049.safetensors 4.7 GiBmodel-00029-of-00049.safetensors 4.7 GiBmodel-00004-of-00049.safetensors 4.7 GiBmodel-00028-of-00049.safetensors 4.7 GiBmodel-00003-of-00049.safetensors 4.7 GiBmodel-00024-of-00049.safetensors 4.7 GiBmodel-00026-of-00049.safetensors 4.7 GiBmodel-00022-of-00049.safetensors 4.7 GiBmodel-00013-of-00049.safetensors 4.7 GiBmodel-00038-of-00049.safetensors 4.7 GiBmodel-00042-of-00049.safetensors 4.7 GiBmodel-00010-of-00049.safetensors 4.7 GiBmodel-00008-of-00049.safetensors 4.7 GiBmodel-00006-of-00049.safetensors 4.7 GiBmodel-00031-of-00049.safetensors 4.7 GiBmodel-00033-of-00049.safetensors 4.7 GiBmodel-00035-of-00049.safetensors 4.7 GiBmodel-00015-of-00049.safetensors 4.7 GiBmodel-00017-of-00049.safetensors 4.7 GiBmodel-00044-of-00049.safetensors 4.7 GiBmodel-00019-of-00049.safetensors 4.7 GiBmodel-00040-of-00049.safetensors 4.7 GiBmodel-00046-of-00049.safetensors 4.6 GiBmodel-00049-of-00049.safetensors 2.3 GiBQwen/Qwen3-235B-A22B