Conversation
RChang06
force-pushed
the
perf/qwen-image-2.1-f16-prefix-cache
branch
2 times, most recently
from
September 24, 2026 12:36
c9b9c68 to
4c5df68
Compare
RChang06
force-pushed
the
perf/qwen-image-2.1-f16-prefix-cache
branch
from
September 24, 2026 12:39
4c5df68 to
01c53c9
Compare
Owner
|
Superseded by #2045 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
See #2040
--attn-scale, it stays FP32.prefix_cache_type()helper. the validator now checks the expected type instead of FP32 only.Additional Information
All outputs compared by SHA-256 of the decoded RGBA pixels at a fixed seed. Every base/PR pair matched.
RTX 4090 24 GB,
qwen_image_2.1-Q8_0.gguf,Qwen3VL-8B-Instruct-Q4_K_M.gguf,mmproj-Qwen3VL-8B-Instruct-F16.gguf, 1024x1024, euler, seed 42,--diffusion-fa --offload-to-cpu:--max-vram 16--sage-attn(FP32 kept)--attn-scale 2(FP32 kept)--model-args qwen_image_2_1_prefix_cache=falseFor two 1024x1024 references (8227-token prefix) the FP32 cache allocation asked for 16967 MB and failed; the F16 one needs 8730 MB and fits next to the weights.
Quadro T2000 4 GB,
qwen_image_2.1-Q4_K.gguf, one 512x512 reference (assets/qwen/qwen_image_2.1.png), promptchange 'qwen2.1.cpp' to 'sd.cpp', 8 steps, euler, seed 42,--diffusion-fa --offload-to-cpu:db04ec5b…db04ec5b…master (left) vs this PR (right), same image:

Checklist