Open-weight model
Qwen-Image-2.1-BF16-mthreads-FlagOS
by FlagRelease FlagRelease/Qwen-Image-2.1-BF16-mthreads-FlagOS
Qwen-Image-2.1-BF16-mthreads-FlagOS is an open-weight model from FlagRelease, released under Apache License 2.0. It has 7.1B parameters. At 16-bit it needs about 17.1 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 24 downloads a month.
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…
Runs On
What it takes to serve Qwen-Image-2.1-BF16-mthreads-FlagOS (7.1B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.
| Precision | Weights | Memory needed | Cheapest setup | Per hour | Also fits |
|---|---|---|---|---|---|
| 16-bit | 14.2 GB | 17.1 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 8-bit | 7.1 GB | 8.5 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 4-bit | 3.6 GB | 4.3 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 22, 2026.
Qwen-Image-2.1-BF16-mthreads-FlagOS on every accelerator the SAVRN Index prices, at every precision
Model Card
By FlagRelease, published under apache-2.0, revision 7e275fd4a607.
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…
Read FlagRelease's full model card
Introduction
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.
Integrated Deployment
- Out-of-the-box inference scripts with pre-configured hardware and software parameters
- Released FlagOS-Mthreads container image supporting deployment within minutes
Consistency Validation
- Rigorously evaluated through benchmark testing: Performance and results from the FlagOS software stack are compared against native stacks on multiple public.
Evaluation Results
Benchmark Result
| Metrics | Qwen-Image-2.1-Nvidia-Origin | Qwen-Image-2.1-Mthreads-FlagOS |
|---|---|---|
| T2I-100 (ClipScore) | 33.66 | 33.56 |
| Coco-Image (ClipScore) | 25.34 | 25.38 |
User Guide
Environment Setup
| Item | Version |
|---|---|
| Docker Version | Docker version 29.3.1 |
| Operating System | 22.04.5 LTS |
Operation Steps
Download FlagOS Image
docker pull harbor.baai.ac.cn/flagrelease-public/qwen-image-2.1-mthreads001-gemsnone-treenone-cxnone-pluginnone-vllmnone-sglangnone-sglangflnone-cp310-ptnone-musanone-x64-3.3.5-server:202609240151
Download Open-source Model Weights
pip install modelscope
modelscope download --model FlagRelease/Qwen-Image-2.1-BF16-mthreads-FlagOS --local_dir /data/Qwen-Image-2.1
Start the Container
docker run -d \
--name qwen \
--runtime=mthreads --network=host --ipc=host --shm-size=32g \
-e MUSA_VISIBLE_DEVICES=3 \
-e TORCH_DEVICE_BACKEND_AUTOLOAD=0 \
-e MODEL_PATH=/public-flash/models/Qwen-Image-2.1 \
-e OUT_DIR=/output/bench_1024 \
-v /data/models/Qwen-Image-2.1:/public-flash/models/Qwen-Image-2.1:ro \
--entrypoint sleep \
harbor.baai.ac.cn/flagrelease-public/qwen-image-2.1-mthreads001-gemsnone-treenone-cxnone-pluginnone-vllmnone-sglangnone-sglangflnone-cp310-ptnone-musanone-x64-3.3.5-server:202609240151 infinity
Start the Server
env -u PYTHONPATH \
MUSA_VISIBLE_DEVICES=3 \
TORCH_DEVICE_BACKEND_AUTOLOAD=0 \
/review/delivery/venv/bin/python \
/opt/qwen21-under15/qwen21.py generate \
--prompt '一只橘猫坐在窗边,窗外是雨后的花园,柔和的自然光,真实摄影风格。' \
--seed 42 \
--warmup 0 \
--out /output/custom.png
AnythingLLM Integration Guide
1. Download & Install
- Visit the official site: https://anythingllm.com/
- Choose the appropriate version for your OS (Windows/macOS/Linux)
- Follow the installation wizard to complete the setup
2. Configuration
- Launch AnythingLLM
- Open settings (bottom left, fourth tab)
- Configure core LLM parameters
- Click "Save Settings" to apply changes
3. Model Interaction
- After model loading is complete:
- Click "New Conversation"
- Enter your question (e.g., "Explain the basics of quantum computing")
- Click the send button to get a response
Technical Overview
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 . This enables efficient and automated model migration across diverse chips, opening a new chapter for large model deployment and application.
FlagGems
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
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 and vllm-plugin-fl
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
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 Evaluation Framework
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: - Multi-dimensional Evaluation: Supports 800+ modelevaluations across NLP, CV, Audio, and Multimodal fields,covering 20+ downstream tasks including language understanding and image-text generation. - Industry-Grade Use Cases: Has completed horizonta1 evaluations of mainstream large models, providing authoritative benchmarks for chip-model performance validation.
Contributing
We warmly welcome global developers to join us:
- Submit Issues to report problems
- Create Pull Requests to contribute code
- Improve technical documentation
- Expand hardware adaptation support
License
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
Identity and Version
- Repository
- FlagRelease/Qwen-Image-2.1-BF16-mthreads-FlagOS
- Publisher
- FlagRelease
- Task
- Not stated by the source
- Modality
- Other
- Library
- diffusers
- Parameters
- 7.1B parameters
- Languages
- zh, en
- Revision
- 7e275fd4a607da1c59977166aca14b91b1575d2f
- First published
- 2026-09-20
- Last updated
- 2026-09-28
Files and Weights
28 files, 33.1 GB in total. The weights are 7 files totalling 33.1 GB in safetensors.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| text_encoder/model-00001-of-00004.safetensors | Weights | 5.0 GB | dde00291b5f7 |
| text_encoder/model-00002-of-00004.safetensors | Weights | 4.9 GB | 9047faccc0a6 |
| text_encoder/model-00003-of-00004.safetensors | Weights | 4.9 GB | 8c54187654c0 |
| text_encoder/model-00004-of-00004.safetensors | Weights | 2.7 GB | 5311532aaaea |
| transformer/diffusion_pytorch_model-00001-of-00002.safetensors | Weights | 10.0 GB | 9e6bc2d641e6 |
| transformer/diffusion_pytorch_model-00002-of-00002.safetensors | Weights | 4.3 GB | 3aaf234dcbe1 |
| vae/diffusion_pytorch_model.safetensors | Weights | 1.4 GB | a07a1b7c4ee2 |
| configuration.json | Configuration | 34 B | — |
| model_index.json | Configuration | 447 B | — |
| processor/added_tokens.json | Configuration | 707 B | — |
| processor/preprocessor_config.json | Configuration | 782 B | — |
| processor/special_tokens_map.json | Configuration | 613 B | — |
| processor/video_preprocessor_config.json | Configuration | 817 B | — |
| scheduler/scheduler_config.json | Configuration | 485 B | — |
| text_encoder/config.json | Configuration | 1.5 KB | — |
| text_encoder/generation_config.json | Configuration | 213 B | — |
| text_encoder/model.safetensors.index.json | Configuration | 67.8 KB | — |
| transformer/config.json | Configuration | 370 B | — |
| transformer/diffusion_pytorch_model.safetensors.index.json | Configuration | 30.3 KB | — |
| vae/config.json | Configuration | 2.1 KB | — |
| LICENSE | Documentation | 7.8 KB | — |
| README.md | Documentation | 7.8 KB | — |
| processor/chat_template.jinja | Other | 5.3 KB | — |
| .gitattributes | Repository | 1.6 KB | — |
| processor/merges.txt | Tokenizer | 1.7 MB | — |
| processor/tokenizer.json | Tokenizer | 11.4 MB | aeb13307a71a |
| processor/tokenizer_config.json | Tokenizer | 5.4 KB | — |
| processor/vocab.json | Tokenizer | 2.8 MB | — |
License and Download
- License
- apache-2.0
- Access
- Open weights, no gate
- Download size
- 33.1 GB
Released by FlagRelease through its official repository on Hugging Face. Read the license.
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 33.1 GB |
| 16-bit | 14.2 GB |
| 8-bit | 7.1 GB |
| 4-bit | 3.6 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About Qwen-Image-2.1-BF16-mthreads-FlagOS
How much GPU memory does Qwen-Image-2.1-BF16-mthreads-FlagOS need?
About 17.1 GB at 16-bit and 4.3 GB at 4-bit: the weights (7.1B parameters) plus a working margin. A long context needs more.
What is the cheapest GPU to run Qwen-Image-2.1-BF16-mthreads-FlagOS on?
At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.
Can I use Qwen-Image-2.1-BF16-mthreads-FlagOS commercially?
Yes. Qwen-Image-2.1-BF16-mthreads-FlagOS is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.