For more details, including benchmark evaluation and inference performance, please refer to our
GitHub.
The model quantization process uses the Pile dataset for calibration. You can download the data from
https://github.com/Adlik/model_zoo/blob/qwen3_quant/LLM/datasets/code_6in1_1080.jsonl.
The model quantization process employs two quantization algorithms: AWQ and GPTQ. We have modified
AutoAWQ and
AutoGPTQ frameworks for this purpose, which are directly usable.
To facilitate testing and reproducibility, we utilized the open-source
evalscope tool to evaluate the accuracy of both bfloat16 (BF16) and quantized models.
1git clone https://github.com/modelscope/evalscope.git
2git checkout -b v0.17.0 tags/v0.17.0
3cd evalscope/
4pip install -e .
1"quantization_config": {
2 "bits": 4,
3 "group_size": 128,
4 "modules_to_not_convert": null,
5 "quant_method": "autoquant", // change from "awq" to "autoquant"
6 "version": "gemm",
7 "zero_point": true
8 },
1# throughput
2CUDA_VISIBLE_DEVICES=4,5 python3 benchmark_throughput.py --model /model --input-len 1024 --output-len 1024 -tp 2 --max-model-len 40960 --num-prompts 100
3
4# latency
5CUDA_VISIBLE_DEVICES=4,5 python3 benchmark_latency.py --model /model --num-iters-warmup 10 --num-iters 50 --batch-size 16 --input-len 512 --output-len 512 -tp 2