Skip to content

Commit 1d91a24

Browse files
1
1 parent 2a81772 commit 1d91a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/convert_cogview4_to_diffusers_megatron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def convert_megatron_transformer_checkpoint_to_diffusers(
215215
# Attention Output
216216
new_state_dict[block_prefix + "attn1.to_out.0.weight"] = mega[
217217
f"decoder.layers.{i}.self_attention.linear_proj.weight"
218-
].T
218+
]
219219
new_state_dict[block_prefix + "attn1.to_out.0.bias"] = mega[
220220
f"decoder.layers.{i}.self_attention.linear_proj.bias"
221221
]

0 commit comments

Comments
 (0)