Views
No views yet
compressed-tensors WNA16 format for vLLM-compatible inference:compressed-tensors, pack-quantizedcompressed-tensors>=0.17.1. Please also follow the license and usage policy of the original base model.1pip install -v "vllm @ git+https://github.com/vllm-project/vllm.git@refs/pull/48918/head"
2pip install "compressed-tensors>=0.17.1"1vllm serve <ORG_OR_USER>/<MODEL_ID> \
2 --dtype bfloat16 \
3 --tensor-parallel-size 1 \
4 --max-model-len 8192 \
5 --gpu-memory-utilization 0.85 \
6 --trust-remote-code \
7 --served-model-name qwen-mixed-2bit \
8 --gdn-prefill-backend triton--moe-backend humming unless your vLLM build explicitly requires it.1curl http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "qwen-mixed-2bit",
5 "messages": [
6 {"role": "system", "content": "You are a helpful assistant."},
7 {"role": "user", "content": "Summarize mixed-precision MoE quantization in one sentence."}
8 ],
9 "temperature": 0,
10 "max_tokens": 256
11 }'lmeval hf: add_bos_token=true, max_gen_toks=2048, max_model_len=8192lmeval vllm: add_bos_token=true, max_gen_toks=2048, max_model_len=8192evalscope vllm: add_bos_token=true, max_tokens=2048, max_model_len=8192| Eval Backend | Precision | MMLU | GSM8K | MMLU-Pro | Note |
|---|---|---|---|---|---|
| lmeval hf | BF16 | 0.8385 | 0.3859 | - | - |
| lmeval hf | Ours | 0.7956 | 0.3760 | - | - |
| lmeval vllm | BF16 | 0.8378 | 0.4086 | 0.3716 | - |
| lmeval vllm | BF16 | 0.8381 | 0.4086 | 0.3716 | add_bos_token false |
| lmeval vllm | Ours | 0.7944 | 0.1585 | 0.6293 | - |
| evalscope vllm | BF16 | 0.7445 | 0.8620 | 0.5552 | - |
| evalscope vllm | Ours | 0.8213 | 0.8370 | 0.6266 | - |
1auto_round \
2 --model Qwen/Qwen3.6-35B-A3B \
3 --bits 4 \
4 --group_size 128 \
5 --layer_config "{.*experts.*:{bits:2,group_size:64}}" \
6 --enable_alg_ext \
7 --enable_torch_compile \
8 --iters 1000 \
9 --nsamples 512 \
10 --format auto_round,llm_compressor \
11 --output_dir ./Qwen3.6-35B-A3B-mixlm_eval --model hf. For faster and more efficient serving/evaluation, use the llm-compressor export, which produces the compressed-tensors checkpoint consumed by vLLM.pip install evalscope1vllm serve <ORG_OR_USER>/<MODEL_ID> \
2 --dtype bfloat16 \
3 --tensor-parallel-size 1 \
4 --max-model-len 8192 \
5 --gpu-memory-utilization 0.85 \
6 --trust-remote-code \
7 --served-model-name qwen-mixed-2bit \
8 --gdn-prefill-backend triton \
9 --port 80001evalscope eval \
2 --model qwen-mixed-2bit \
3 --api-url http://127.0.0.1:8000/v1 \
4 --eval-type openai_api \
5 --api-key EMPTY \
6 --datasets mmlu gsm8k mmlu_pro \
7 --generation-config '{"temperature": 0, "max_tokens": 2048, "timeout": 3000}' \
8 --eval-batch-size 32 \
9 --work-dir ./outputs/evalscope_qwen_mixed_2bitlm_eval --model vllm can be useful for quick comparisons, but for this model card EvalScope is preferred for accuracy reporting.1python -m lm_eval \
2 --model vllm \
3 --model_args "pretrained=<ORG_OR_USER>/<MODEL_ID>,tensor_parallel_size=1,dtype=bfloat16,max_model_len=8192,gpu_memory_utilization=0.85,trust_remote_code=True,add_bos_token=True,gdn_prefill_backend=triton" \
4 --tasks mmlu,gsm8k,mmlu_pro \
5 --gen_kwargs "max_gen_toks=2048" \
6 --batch_size auto \
7 --seed 42 \
8 --output_path ./outputs/lmeval_vllm_mixed_2bit1pip install -v "vllm @ git+https://github.com/vllm-project/vllm.git@refs/pull/48918/head"
2pip install "compressed-tensors>=0.17.1" evalscope lm-eval
3
4Start vLLM:
5
6```bash
7vllm serve Intel/Qwen3.6-35B-A3B-int2-mixed-AutoRound-LLMC \
8 --dtype bfloat16 \
9 --tensor-parallel-size 1 \
10 --gpu-memory-utilization 0.85 \
11 --trust-remote-code \
12 --served-model-name qwen-mixed-2bit \
13 --gdn-prefill-backend triton \
14 --port 80001evalscope eval \
2 --model qwen-mixed-2bit \
3 --api-url http://127.0.0.1:8000/v1 \
4 --eval-type openai_api \
5 --api-key EMPTY \
6 --datasets mmlu gsm8k mmlu_pro \
7 --generation-config '{"max_tokens": 2048, "timeout": 14400}' \
8 --eval-batch-size 32 \
9 --seed 42 \
10 --work-dir ./outputs/evalscope_qwen_mixed_2bit1python -m lm_eval \
2 --model vllm \
3 --model_args "pretrained=Intel/Qwen3.6-35B-A3B-int2-mixed-AutoRound-
4 LLMC,tensor_parallel_size=1,dtype=bfloat16,max_model_len=8192,gpu_memory_utilization=0.85,trust_remote_code=True,add_bos_token=True,gdn_prefill_backend=triton" \
5 --tasks mmlu,gsm8k,mmlu_pro \
6 --gen_kwargs "max_gen_toks=2048" \
7 --batch_size auto \
8 --seed 42 \
9 --output_path ./outputs/lmeval_qwen_mixed_2bit1@article{cheng2023optimize,
2 title={Optimize weight rounding via signed gradient descent for the quantization of llms},
3 author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
4 journal={arXiv preprint arXiv:2309.05516},
5 year={2023}
6}