[Bugfix] Cosmos3: fix HSDP dtype mismatch on time_embedder via _hsdp_ignored_modules (#4452)

Signed-off-by: Kwokho <kh_tsui@163.com>
Co-authored-by: Kwokho <kh_tsui@163.com>
This commit is contained in:
Kwokho TsuiandKwokho authored and GitHub committed 2026-06-16 04:06:14 +00:00
1 parent 46e0b71423
commit 3bce5e2e3a
3 files changed
+66 -4

No files matched your search

@@ -661,7 +661,7 @@ class DiffusersPipelineLoader:
# Apply HSDP sharding to all transformers
for name, trans in transformers_to_shard:
logger.debug("Applying HSDP to %s", name)
apply_hsdp_to_model(trans, hsdp_config)
apply_hsdp_to_model(trans, hsdp_config, target_device=target_device)
# # HSDP only shards transformer modules. All other runtime modules must
# # be placed on the execution device explicitly after sharding.