block info (#10842)

This commit is contained in:
Haoming 2025-11-25 02:38:38 +08:00 committed by GitHub
parent 3d1fdaf9f4
commit 6a6d456c88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -439,7 +439,10 @@ class QwenImageTransformer2DModel(nn.Module):
patches = transformer_options.get("patches", {})
blocks_replace = patches_replace.get("dit", {})
transformer_options["total_blocks"] = len(self.transformer_blocks)
transformer_options["block_type"] = "double"
for i, block in enumerate(self.transformer_blocks):
transformer_options["block_index"] = i
if ("double_block", i) in blocks_replace:
def block_wrap(args):
out = {}