Downloads · 30 days
5
11% of all-time downloads
FlagRelease/QwQ-32B-FlagOS-Nvidia
QwQ-32B-FlagOS-Nvidia is a machine learning model from FlagRelease. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
QwQ-32B-FlagOS-Nvidia provides an all-in-one deployment solution, enabling execution of QwQ-32B on Nvidia GPUs. As the first-generation release for the NVIDIA-H100, this package delivers two key features:
Downloads · 30 days
5
11% of all-time downloads
All-time downloads
45
Public
Parameters
32.8B
65.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors65.5 GB · 100%
From the Hugging Face model README
QwQ-32B-FlagOS-Nvidia provides an all-in-one deployment solution, enabling execution of QwQ-32B on Nvidia GPUs. As the first-generation release for the NVIDIA-H100, this package delivers two key features:
We use FlagScale as the serving engine to improve the portability of distributed inference.
FlagScale is an end-to-end framework for large models across multiple chips, maximizing computational resource efficiency while ensuring model effectiveness. It ensures both ease of use and high performance for users when deploying models across different chip architectures:
We validate the execution of QwQ-32B model with a Triton-based operator library as a PyTorch alternative.
We use a variety of Triton-implemented operation kernels—approximately 70%—to run the QwQ-32B model. These kernels come from two main sources:
| Usage | Nvidia | |
|---|---|---|
| Basic Image | basic software environment that supports model running | docker pull flagrelease-registry.cn-beijing.cr.aliyuncs.com/flagrelease/flagrelease:deepseek-flagos-nvidia |
| Metrics | QwQ-32B-H100-CUDA | QwQ-32B-FlagOS-Nvidia |
|---|---|---|
| GSM8K (EM) | 72.78 | 73.31 |
| MMLU (Acc.) | 79.75 | 79.77 |
| CEVAL | 85.07 | 85.07 |
| AIME 2024 (Pass@1) | 80.00 | 76.67 |
| GPQA-Diamond (Pass@1) | 64.14 | 63.13 |
| MATH-500 (pass@1) | 94.20 | 94.00 |
docker pull flagrelease-registry.cn-beijing.cr.aliyuncs.com/flagrelease/flagrelease:deepseek-flagos-nvidia
pip install modelscope
modelscope download --model Qwen/QwQ-32B --local_dir /nfs/QwQ-32B
docker run -itd --name flagrelease_nv --privileged --gpus all --net=host --ipc=host --device=/dev/infiniband --shm-size 512g --ulimit memlock=-1 -v /nfs:/nfs flagrelease-registry.cn-beijing.cr.aliyuncs.com/flagrelease/flagrelease:deepseek-flagos-nvidia /bin/bash
docker exec -it flagrelease_nv /bin/bash
conda activate flagscale-inference
git clone https://github.com/FlagOpen/FlagGems.git
cd FlagGems
pip install .
cd ../
cd FlagScale/examples/qwq_32b/conf
# Modify the configuration in config_qwq_32b.yaml
defaults:
- _self_
- serve: qwq_32b
experiment:
exp_name: qwq_32b
exp_dir: outputs/${experiment.exp_name}
task:
type: serve
deploy:
use_fs_serve: false
runner:
ssh_port: 22
envs:
CUDA_DEVICE_MAX_CONNECTIONS: 1
cmds:
before_start: source /root/miniconda3/bin/activate flagscale-inference && export USE_FLAGGEMS=1
action: run
hydra:
run:
dir: ${experiment.exp_dir}/hydra
cd FlagScale/examples/qwq_32b/conf/serve
# Modify the configuration in qwq_32b.yaml
- serve_id: vllm_model
engine: vllm
engine_args:
model: /nfs/QwQ-32B # path of weight of QwQ-32B
served_model_name: qwq-32b-flagos
tensor_parallel_size: 8
max_model_len: 32768
pipeline_parallel_size: 1
max_num_seqs: 256
gpu_memory_utilization: 0.9
port: 9010
trust_remote_code: true
enforce_eager: true
enable_chunked_prefill: true
# install flagscale
cd FlagScale/
pip install .
#【Verifiable on a single machine】
flagscale serve qwq_32b
We warmly welcome global developers to join us:
Scan the QR code below to add our WeChat group send "FlagRelease"

The weights of this model are based on Qwen/QwQ-32B and are open-sourced under the Apache 2.0 License: https://www.apache.org/licenses/LICENSE-2.0.txt.