Downloads · 30 days
13
5% of all-time downloads
qingcheng-ai/QwQ-32B-fp4
QwQ-32B-fp4 is a text generation model from qingcheng-ai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
The test results in the following table are based on the MMLU benchmark.
Downloads · 30 days
13
5% of all-time downloads
All-time downloads
262
Public
Parameters
19.1B
22.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors20.7 GB · 100%
How the weights are stored.
U815.6B · 82%
From the Hugging Face model README
The test results in the following table are based on the MMLU benchmark.
In order to speed up the test, we prevent the model from generating too long thought chains, so the score may be different from that with longer thought chain.
In our experiment, the accuracy of the FP4 quantized version is almost the same as the BF16 version, and it can be used for faster inference.
| Data Format | MMLU Score |
|---|---|
| BF16 Official | 84.36 |
| FP4 Quantized | 80.07 |
We recommend using the Chitu inference framework(https://github.com/thu-pacman/chitu) to run this model. Here provides a simple command to show you how to run QwQ-32B-fp4.
torchrun --nproc_per_node 1 \
--master_port=22525 \
-m chitu \
serve.port=21002 \
infer.cache_type=paged \
infer.pp_size=1 \
infer.tp_size=1 \
models=QwQ-32B-fp4 \
models.ckpt_dir="your model path" \
models.tokenizer_path="your model path" \
dtype=float16 \
infer.do_load=True \
infer.max_reqs=1 \
scheduler.prefill_first.num_tasks=100 \
infer.max_seq_len=4096 \
request.max_new_tokens=100 \
infer.use_cuda_graph=True