feat: add Qwen Image 2.1 prefix KV cache (#2035)

This commit is contained in:
leejet authored and GitHub committed 2026-09-23 23:08:21 +08:00
1 parent e6281b6318
commit 2dc7f5408a
9 files changed
+237 -81

No files matched your search

+2 -1
View File
@@ -291,7 +291,8 @@ namespace sd::model_builders {
result.diffusion = std::make_shared<Qwen::QwenImage21Runner>(ctx.backends.runtime_backend(SDBackendModule::DIFFUSION),
tensor_storage_map,
"model.diffusion_model",
weight_manager);
weight_manager,
sd_ctx_params->model_args);
} else {
result.diffusion = std::make_shared<Qwen::QwenImageRunner>(ctx.backends.runtime_backend(SDBackendModule::DIFFUSION),
tensor_storage_map,