Downloads · 30 days
0
yajunvicky/QwQ-32B-FlagOS-Nvidia
QwQ-32B-FlagOS-Nvidia is a machine learning model from yajunvicky. 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 three key features:
Downloads · 30 days
0
Access
Public
Updated Apr 16, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.png62.1 KB · 89%
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 three 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:
Most Triton kernels are provided by FlagGems (https://github.com/FlagOpen/FlagGems). You can enable FlagGems kernels by setting the environment variable USE_FLAGGEMS. For more details, please refer to the "How to Run Locally" section.
Also included are Triton kernels from vLLM, including fused MoE.
| 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 |
# install FlagScale
git clone https://github.com/FlagOpen/FlagScale.git
cd FlagScale
pip install .
# download image and ckpt
flagscale pull --image flagrelease-registry.cn-beijing.cr.aliyuncs.com/flagrelease/flagrelease:deepseek-flagos-nvidia --ckpt <CKPT> --ckpt-path <CKPT_PATH>
# Note: For security reasons, this image does not have passwordless configuration. In multi-machine scenarios, you need to configure passwordless access for the image yourself.
# build and enter the container
docker run -e --net=host --pid=host --ipc=host -v /tmp/.X11-unix:/tmp/.X11-unix --privileged -it -v <CKPT_PATH>:<CKPT_PATH> -v /opt/data/:/opt/data/ -v /usr/bin/cnmon:/usr/bin/cnmon --name flagrelease_cambricon flagrelease-registry.cn-beijing.cr.aliyuncs.com/flagrelease/flagrelease:deepseek-flagos-nvidia /bin/bash
git clone https://github.com/FlagOpen/FlagGems.git
cd FlagGems
git checkout QwQ-32B_release_Nvidia
# no additional dependencies since they are already handled in the Docker environment
pip install ./ --no-deps
cd ../
git clone https://github.com/FlagOpen/FlagScale.git
cd FlagScale
# please set the name and email in git config in advance, for example: git config --global user.name "your_name"; git config --global user.email "your_email"
python tools/patch/unpatch.py --device-type Nvidia --commit-id 57637057 --dir build
cd build/Nvidia/FlagScale/vllm
pip install -e . -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
cd vllm_mlu
pip install -e . -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
cd ../../
# config the QwQ-32B yaml
FlagScale/
├── examples/
│ └── QwQ-32B/
│ └── conf/
│ └── config_QwQ-32B.yaml # set hostfile and ssh_port(optional), if it is passwordless access between containers, the docker field needs to be removed
│ └── serve/
│ └── QwQ-32B.yaml # set model parameters and server port
# install flagscale
pip install .
# serve
flagscale serve QwQ-32B
When custom service parameters, users can run:
flagscale serve <MODEL_NAME> <MODEL_CONFIG_YAML>
We warmly welcome global developers to join us:
Scan the QR code below to add our WeChat group send "FlagRelease"

This project and related model weights are licensed under the MIT License.