Request it for the seed queue, or get it now with pf download FlagRelease/Qwen-Image-2.1-BF16-zhenwu-FlagOS (CLI guide).
FlagOS is a fully open-source system software stack for heterogeneous AI chips. It unifies the model–system–chip layers to enable a "develop once, run anywhere" workflow, eliminating the fragmentation among vendor-specific software stacks and substantially lowering the cost of porting AI workloads across accelerators. In this release, Qwen-Image-2.1 leverages the FlagOS software stack to provide direct multi-chip support. By integrating the Triton-based operator library FlagGems via the Torch-FL plugin, FlagOS enables seamless adaptation of the Diffusers library across chip platforms; the usage experience remains identical to that on NVIDIA, requiring zero code modifications. Inference accuracy across all platforms has been aligned with the official implementation.
| Metrics | Qwen-Image-2.1-Nvidia-Origin | Qwen-Image-2.1-T-Head-FlagOS |
|---|---|---|
| T2I-100 (ClipScore) | 33.66 | 33.80 |
| Coco-Image (ClipScore) | 25.34 | 25.25 |
Environment Setup
| Item | Version |
|---|---|
| Docker Version | Docker version 29.7.2 |
| Operating System | 24.04.2 LTS |
docker pull harbor.baai.ac.cn/flagrelease-public/qwen-image2.1-pp001-gems0.0.0-tree0.6.2-cxnone-pluginnone-vllm0.23.0-cp312-pt210-hggc130-x64-2.1.1-rbd225:202609201422
pip install modelscope
modelscope download --model FlagRelease/Qwen-Image-2.1-BF16-zhenwu-FlagOS --local_dir /data/Qwen-Image-2.1
docker run --privileged -dit \
-e HOST_HOSTNAME=$(hostname) \
--network=host \
--device=/dev/infiniband \
--ipc=host \
--device=/dev/alixpu_ctl \
--device=/dev/alixpu \
--ulimit memlock=-1 \
--ulimit stack=67108864 \
--init \
-v /data:/data \
-v /mnt:/mnt \
--name qwen-image \
harbor.baai.ac.cn/flagrelease-public/qwen-image2.1-pp001-gems0.0.0-tree0.6.2-cxnone-pluginnone-vllm0.23.0-cp312-pt210-hggc130-x64-2.1.1-rbd225:202609201422
bash /workspace/PyTorch-Plugin-FL/tests/manual/qwen_image_21/run.sh infer \
--device flagos \
--devices flagos:0 \
--model /data/Qwen-Image-2.1 \
--run-dir /workspace \
--steps 40 \
--log /workspace/infer-flagos.log
FlagOS is a fully open-source system software stack designed to unify the "model–system–chip" layers and foster an open, collaborative ecosystem. It enables a "develop once, run anywhere" workflow across diverse AI accelerators, unlocking hardware performance, eliminating fragmentation among vendor-specific software stacks, and substantially lowering the cost of porting and maintaining AI workloads. With core technologies such as the FlagScale, together with vllm-plugin-fl, distributed training/inference framework, FlagGems universal operator library, FlagCX communication library, and FlagTree unified compiler, the FlagRelease platform leverages the FlagOS stack to automatically produce and release various combinations of <chip + open-source model>. This enables efficient and automated model migration across diverse chips, opening a new chapter for large model deployment and application.
FlagGems is a high-performance, generic operator libraryimplemented in Triton language. It is built on a collection of backend-neutralkernels that aims to accelerate LLM (Large-Language Models) training and inference across diverse hardware platforms.
FlagTree is an open source, unified compiler for multipleAI chips project dedicated to developing a diverse ecosystem of AI chip compilers and related tooling platforms, thereby fostering and strengthening the upstream and downstream Triton ecosystem. Currently in its initial phase, the project aims to maintain compatibility with existing adaptation solutions while unifying the codebase to rapidly implement single-repository multi-backend support. Forupstream model users, it provides unified compilation capabilities across multiple backends; for downstream chip manufacturers, it offers examples of Triton ecosystem integration.
Flagscale is a comprehensive toolkit designed to supportthe entire lifecycle of large models. It builds on the strengths of several prominent open-source projects, including Megatron-LM and vLLM, to provide a robust, end-to-end solution for managing and scaling large models. vllm-plugin-fl is a vLLM plugin built on the FlagOS unified multi-chip backend, to help flagscale support multi-chip on vllm framework.
FlagCX is a scalable and adaptive cross-chip communication library. It serves as a platform where developers, researchers, and AI engineers can collaborate on various projects, contribute to the development of cutting-edge AI solutions, and share their work with the global community.
FlagEval is a comprehensive evaluation system and open platform for large models launched in 2023. It aims to establish scientific, fair, and open benchmarks, methodologies, and tools to help researchers assess model and training algorithm performance. It features:
We warmly welcome global developers to join us:
The model weights are derived from Qwen/Qwen-Image-2.1 and are open‑sourced under the Apache License 2.0: https://www.apache.org/licenses/LICENSE-2.0.txt
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo FlagRelease/Qwen-Image-2.1-BF16-zhenwu-FlagOS ./model-foldertransformer/diffusion_pytorch_model-00001-of-00002.safetensors 10.0 GBtext_encoder/model-00001-of-00004.safetensors 5.0 GBtext_encoder/model-00003-of-00004.safetensors 4.9 GBtext_encoder/model-00002-of-00004.safetensors 4.9 GBtransformer/diffusion_pytorch_model-00002-of-00002.safetensors 4.3 GBtext_encoder/model-00004-of-00004.safetensors 2.7 GBvae/diffusion_pytorch_model.safetensors 1.4 GB