sd: sync to master-607-fd1a279 (#2212)

This commit is contained in:
Wagner Bruna
2026-05-17 00:37:16 -03:00
committed by GitHub
parent 1e828ccabf
commit 1ae9a79ecc
15 changed files with 1709 additions and 421 deletions
+4
View File
@@ -465,6 +465,10 @@ SDVersion ModelLoader::get_sd_version() {
if (tensor_storage.name.find("model.diffusion_model.joint_blocks.") != std::string::npos) {
return VERSION_SD3;
}
if (tensor_storage.name.find("model.x_embedder.proj1.weight") != std::string::npos &&
tensor_storage_map.find("model.language_model.layers.0.self_attn.q_proj.weight") != tensor_storage_map.end()) {
return VERSION_HIDREAM_O1;
}
if (tensor_storage.name.find("model.diffusion_model.transformer_blocks.0.img_mod.1.weight") != std::string::npos) {
return VERSION_QWEN_IMAGE;
}