Built with Qwen. Community quantization of Qwen/Qwen-Image-2.1-Turbo (8-step distilled, 7B DiT) in three sizes: Q8_0, Q5_K_M and Q4_K_M. Independent work, not made or endorsed by Alibaba/Qwen. Non-commercial use only (Qwen RESEARCH LICENSE AGREEMENT, copy in LICENSE). The files run in stable-diffusion.cpp and in ComfyUI.
Want an uncensored text encoder? See Sakura-Qwen-Image-2.1-Turbo-Uncensored-GGUF: the same Q5_K_M and Q4_K_M image models plus abliterated text encoders (8bit and 4bit).
Q8_0 image model and official int8 text encoder (qwen3vl_8b_int8_convrot.safetensors), stable-diffusion.cpp (Vulkan, Radeon 8060S), 1024x1024, 8 steps, CFG 1.0, euler, official Turbo sigmas. One seed per prompt and no re-rolls; the prompts themselves were chosen from a larger set of candidates. About 70 s per image including model loading; the GPU memory in use on our machine peaked at 17.6 GiB while generating (Windows counter for the whole GPU, 1.6 GiB of it were in use before the run). The images were made with stable-diffusion.cpp, not with ComfyUI.
Seeds 1202, 1302, 1305, 1306, 1105, 1103, 1503, 1506, 1406 in the order shown; the prompts are the captions of the images above.
Pick the column of the program you use (🟦 stable-diffusion.cpp, 🟧 ComfyUI). The text encoder is the official one from Comfy-Org (not in this repository), everything else is here or in the program itself:
| Part | 🟦 stable-diffusion.cpp | 🟧 ComfyUI |
|---|---|---|
| Image model (pick one) | Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf (best), Sakura-Image-2.1-Turbo-Q5_K_M-4.60GiB.gguf or Sakura-Image-2.1-Turbo-Q4_K_M-3.77GiB.gguf (smallest), passed with --diffusion-model |
the same file, loaded with Unet Loader (GGUF) |
| Text encoder | qwen3vl_8b_int8_convrot.safetensors (8.71 GiB) from Comfy-Org/Qwen-Image-2.1, passed with --llm |
the same file, loaded with the normal Load CLIP node (CLIPLoader), type qwen_image |
| VAE | qwen_image_2.1_vae_bf16.safetensors (0.63 GiB, unmodified copy of the official file, identical sha256), passed with --vae |
the same file, loaded with Load VAE |
| Extra files | none | none |
| Program | sd-cli / sd-server of stable-diffusion.cpp master (we used commit 228c707, Vulkan build), not included |
a recent ComfyUI build with native Qwen-Image 2.1 support and a ComfyUI-GGUF loader that supports Qwen-Image 2.1 (custom node), not included |
| File | Size | What it is |
|---|---|---|
Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf |
7.07 GiB | image model (DiT), Q8_0 |
Sakura-Image-2.1-Turbo-Q5_K_M-4.60GiB.gguf |
4.60 GiB | image model (DiT), uniform Q5_K recipe of sd.cpp (file name carries the standard label Q5_K_M so the Hub recognises it) |
Sakura-Image-2.1-Turbo-Q4_K_M-3.77GiB.gguf |
3.77 GiB | image model (DiT), uniform Q4_K recipe of sd.cpp (file name carries the standard label Q4_K_M) |
qwen_image_2.1_vae_bf16.safetensors |
0.63 GiB | unmodified official VAE |
.gguf) into ComfyUI/models/diffusion_models/ (or unet/), the VAE into ComfyUI/models/vae/ and the official text encoder into ComfyUI/models/text_encoders/.qwen_image (text encoder), Load VAE, and the TextEncodeQwenImage21 node. Sampling: 8 steps, CFG 1.0, euler, with the Turbo sigmas 1.0, 0.978453, 0.95418, 0.926626, 0.89508, 0.845148, 0.704534, 0.414568, 0.0 (node "ManualSigmas" into "SamplerCustomAdvanced").Qwen-Image-2.1-Turbo_ComfyUI_workflow.json (drag it into ComfyUI; it is set to Load CLIP for the text encoder, the Q8_0 image model, 512x512 and seed 42, the settings we tested).Tested: ComfyUI with a ComfyUI-GGUF build that supports Qwen-Image 2.1, 512x512. Q8_0 with the official int8 text encoder through the normal Load CLIP node ran and produced a correct image; Q5_K_M and Q4_K_M ran in the same graph with other (GGUF) text encoders. Other GGUF loader forks were not tested. In our ComfyUI test on a Radeon 8060S, sampling at 1024x1024 was extremely slow (more than five minutes per step, not investigated); 512x512 ran in seconds. stable-diffusion.cpp on the same machine needed about 95 s for a 1024x1024 image, so the sample images were made with that.
sd-cli \
--diffusion-model Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf \
--vae qwen_image_2.1_vae_bf16.safetensors \
--llm qwen3vl_8b_int8_convrot.safetensors \
--sigmas "1.0,0.978453,0.95418,0.926626,0.89508,0.845148,0.704534,0.414568,0.0" \
--steps 8 --cfg-scale 1.0 --sampling-method euler --diffusion-fa --vae-tiling \
-W 1024 -H 1024 -p "your prompt" -o out.png
We ran and measured everything at 512x512 (8 steps, about 12 to 15 s per image on a Radeon 8060S with Vulkan); 1024x1024 is the usual size of the model but we did not test it. The sigma schedule is the official Turbo schedule (sample_sigmas of the model card). Use CFG 1.0 and 8 steps.
Same prompts, same seed (42), 512x512, 8 steps, same machine, official int8 text encoder; the reference is the Q8_0 file of this repository (tensor-identical to the Q8_0 file the two smaller files were made from). Eight neutral prompts (cat, street with neon signs, portrait, mountain lake, poster with text, kitchen, marble statue, beach). Higher is closer to Q8_0; a diffusion model changes details even with tiny weight changes, so these are deviation numbers, not a quality score.
| File | Size | PSNR vs Q8_0 | SSIM vs Q8_0 |
|---|---|---|---|
| Q5_K | 4.60 GiB | 24.77 dB | 0.906 |
| Q4_K | 3.77 GiB | 21.46 dB | 0.842 |
We did not measure Q8_0 against the BF16 original.
Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf: made with sd-cli -M convert directly from the official BF16 weights of Qwen-Image-2.1-Turbo (sha256 of both shards checked). Modified file. Its tensors are identical to the Q8_0 file of DogukanUrker/Qwen-Image-2.1-Turbo-GGUF (compared tensor by tensor), apart from the norm weights below.Sakura-Image-2.1-Turbo-Q5_K_M-*.gguf, Sakura-Image-2.1-Turbo-Q4_K_M-*.gguf: made with sd-cli -M convert from the Q8_0 GGUF of DogukanUrker (sha256 228d7931adade6cd...), not directly from the BF16 weights. Plain uniform Q5_K / Q4_K files like other sd.cpp conversions. Modified files.attn.norm_q, attn.norm_k) are stored as F32 instead of Q8_0 (the same values after dequantization, +22 KB) so that ComfyUI can read them. A check with stable-diffusion.cpp (Q5_K_M and Q8_0, one prompt, seed 42, 512x512) gave a pixel-identical image before and after.qwen_image_2.1_vae_bf16.safetensors is an unmodified copy of the official VAE. Text encoder, tokenizer and scheduler are not part of this repository.Qwen RESEARCH LICENSE AGREEMENT (LICENSE): use, reproduction and modification for non-commercial purposes only (research or evaluation); redistribution requires this license text and the notices in NOTICE. The agreement is governed by the laws of China. "Qwen" is the name of the original work; this is a derivative work by Sakura, "based on Qwen-Image-2.1-Turbo".
Part of the Sakura Mini line.
English above. 本节为上文的中文翻译(Sakura = 樱花 yīnghuā);完整的独立中文版见 README_zh.md。
Built with Qwen. 这是 Qwen/Qwen-Image-2.1-Turbo(8 步蒸馏,7B DiT)的社区量化版本,提供三种大小:Q8_0、Q5_K_M 和 Q4_K_M。属于独立工作,并非 Alibaba/Qwen 制作或认可。仅限非商业用途(Qwen RESEARCH LICENSE AGREEMENT,副本见 LICENSE)。这些文件可在 stable-diffusion.cpp 和 ComfyUI 中运行。
需要去审查的文本编码器? 请见 Sakura-Qwen-Image-2.1-Turbo-Uncensored-GGUF:相同的 Q5_K_M 和 Q4_K_M 图像模型,外加经消融的文本编码器(8bit 和 4bit)。
Q8_0 图像模型与官方 int8 文本编码器(qwen3vl_8b_int8_convrot.safetensors),stable-diffusion.cpp(Vulkan,Radeon 8060S),1024x1024、8 步、CFG 1.0、euler、官方 Turbo sigmas。每条提示词只用一个种子,没有重抽;提示词本身是从更多候选中挑选的。每张图约 70 秒(含模型加载);生成期间我们机器上的 GPU 显存占用峰值为 17.6 GiB(Windows 计数器,整块 GPU,运行前已占用 1.6 GiB)。这些图片由 stable-diffusion.cpp 生成,而不是由 ComfyUI 生成。
种子依次为 1202, 1302, 1305, 1306, 1105, 1103, 1503, 1506, 1406;提示词即上方图片的说明文字。
请选择您所用程序对应的一列(🟦 stable-diffusion.cpp,🟧 ComfyUI)。文本编码器使用 Comfy-Org 的官方版本(不在本仓库中),其余文件在本仓库或程序自身中:
| 部分 | 🟦 stable-diffusion.cpp | 🟧 ComfyUI |
|---|---|---|
| 图像模型(三选一) | Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf(最佳)、Sakura-Image-2.1-Turbo-Q5_K_M-4.60GiB.gguf 或 Sakura-Image-2.1-Turbo-Q4_K_M-3.77GiB.gguf(最小),通过 --diffusion-model 传入 |
同一个文件,用 Unet Loader (GGUF) 加载 |
| 文本编码器 | 来自 Comfy-Org/Qwen-Image-2.1 的 qwen3vl_8b_int8_convrot.safetensors(8.71 GiB),通过 --llm 传入 |
同一个文件,用常规的 Load CLIP 节点(CLIPLoader)加载,类型为 qwen_image |
| VAE | qwen_image_2.1_vae_bf16.safetensors(0.63 GiB,官方文件的未改动副本,sha256 相同),通过 --vae 传入 |
同一个文件,用 Load VAE 加载 |
| 额外文件 | 无 | 无 |
| 程序 | stable-diffusion.cpp master 版本的 sd-cli / sd-server(我们使用的是 commit 228c707,Vulkan 构建),不包含 |
原生支持 Qwen-Image 2.1 的较新版 ComfyUI,以及支持 Qwen-Image 2.1 的 ComfyUI-GGUF 加载器(自定义节点),不包含 |
| 文件 | 大小 | 说明 |
|---|---|---|
Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf |
7.07 GiB | 图像模型(DiT),Q8_0 |
Sakura-Image-2.1-Turbo-Q5_K_M-4.60GiB.gguf |
4.60 GiB | 图像模型(DiT),sd.cpp 统一的 Q5_K 方案(文件名使用标准标签 Q5_K_M,以便 Hub 识别) |
Sakura-Image-2.1-Turbo-Q4_K_M-3.77GiB.gguf |
3.77 GiB | 图像模型(DiT),sd.cpp 统一的 Q4_K 方案(文件名使用标准标签 Q4_K_M) |
qwen_image_2.1_vae_bf16.safetensors |
0.63 GiB | 未改动的官方 VAE |
.gguf)放入 ComfyUI/models/diffusion_models/(或 unet/),VAE 放入 ComfyUI/models/vae/,官方文本编码器放入 ComfyUI/models/text_encoders/。qwen_image 的 Load CLIP(文本编码器)、Load VAE 以及 TextEncodeQwenImage21 节点搭建工作流。采样:8 步,CFG 1.0,euler,Turbo sigmas 为 1.0, 0.978453, 0.95418, 0.926626, 0.89508, 0.845148, 0.704534, 0.414568, 0.0(节点 "ManualSigmas" 接入 "SamplerCustomAdvanced")。Qwen-Image-2.1-Turbo_ComfyUI_workflow.json(拖入 ComfyUI 即可;文本编码器节点为 Load CLIP,图像模型为 Q8_0、512x512、种子 42,即我们测试过的设置)。已测试:使用支持 Qwen-Image 2.1 的 ComfyUI-GGUF 版本的 ComfyUI,512x512。Q8_0 配官方 int8 文本编码器,通过常规的 Load CLIP 节点运行并生成了正确的图像;Q5_K_M 和 Q4_K_M 在同一工作流中配合其他(GGUF)文本编码器运行。其他 GGUF 加载器分支未测试。 在我们于 Radeon 8060S 上的 ComfyUI 测试中,1024x1024 的采样极其缓慢(每一步超过五分钟,未做深入排查);512x512 只需数秒。同一台机器上 stable-diffusion.cpp 生成一张 1024x1024 的图约需 95 秒,因此示例图片由它生成。
sd-cli \
--diffusion-model Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf \
--vae qwen_image_2.1_vae_bf16.safetensors \
--llm qwen3vl_8b_int8_convrot.safetensors \
--sigmas "1.0,0.978453,0.95418,0.926626,0.89508,0.845148,0.704534,0.414568,0.0" \
--steps 8 --cfg-scale 1.0 --sampling-method euler --diffusion-fa --vae-tiling \
-W 1024 -H 1024 -p "your prompt" -o out.png
我们的所有运行和测量都在 512x512 下进行(8 步,在 Radeon 8060S 上使用 Vulkan,每张图约 12 到 15 秒);1024x1024 是该模型的常用尺寸,但我们没有测试。sigma 调度是官方 Turbo 调度(模型卡中的 sample_sigmas)。请使用 CFG 1.0 和 8 步。
相同提示、相同种子(42)、512x512、8 步、同一台机器、官方 int8 文本编码器;参照是本仓库的 Q8_0 文件(与制作两个较小文件所用的 Q8_0 文件张量完全相同)。八条中性提示(猫、霓虹招牌街道、肖像、山间湖泊、带文字的海报、厨房、大理石雕像、海滩)。数值越高越接近 Q8_0;即使权重只有微小变化,扩散模型也会改变细节,因此这些是 偏离度 数值,而不是质量评分。
| 文件 | 大小 | 相对 Q8_0 的 PSNR | 相对 Q8_0 的 SSIM |
|---|---|---|---|
| Q5_K | 4.60 GiB | 24.77 dB | 0.906 |
| Q4_K | 3.77 GiB | 21.46 dB | 0.842 |
我们没有测量 Q8_0 相对 BF16 原始模型的偏离。
Sakura-Image-2.1-Turbo-Q8_0-7.07GiB.gguf:使用 sd-cli -M convert 直接由 Qwen-Image-2.1-Turbo 的官方 BF16 权重制作(两个分片的 sha256 均已核对)。已修改文件。其张量与 DogukanUrker/Qwen-Image-2.1-Turbo-GGUF 的 Q8_0 文件完全相同(逐张量比较),下述归一化权重除外。Sakura-Image-2.1-Turbo-Q5_K_M-*.gguf、Sakura-Image-2.1-Turbo-Q4_K_M-*.gguf:使用 sd-cli -M convert 由 DogukanUrker 的 Q8_0 GGUF(sha256 228d7931adade6cd...)制作,而不是直接由 BF16 权重制作。它们与其他 sd.cpp 转换版本一样是普通的统一 Q5_K / Q4_K 文件。已修改文件。attn.norm_q、attn.norm_k)由 Q8_0 改为以 F32 存储(反量化后数值相同,增加 22 KB),以便 ComfyUI 读取。用 stable-diffusion.cpp 检查(Q5_K_M 和 Q8_0,一条提示,种子 42;512x512),修改前后生成的图像逐像素完全相同。qwen_image_2.1_vae_bf16.safetensors 是官方 VAE 的未改动副本。文本编码器、分词器和调度器不属于本仓库。Qwen RESEARCH LICENSE AGREEMENT(LICENSE):使用、复制和修改 仅限非商业目的(研究或评估);再分发需附带此许可文本以及 NOTICE 中的声明。该协议适用中国法律。“Qwen”是原作品的名称;本作品是 Sakura 的衍生作品,“基于 Qwen-Image-2.1-Turbo”。
属于 Sakura Mini 系列。
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 webmp3/Sakura-Qwen-Image-2.1-Turbo-GGUF ./model-folderQwen/Qwen-Image-2.1-Turbo