Skip to content

Commit 7f47fd8

Browse files
rootroot
authored andcommitted
lint
1 parent 7c527c3 commit 7f47fd8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎megatron/core/resharding/planner.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,7 @@ def _extract_metadata(module, rank_offset):
411411
# on different stages), e.g. pp=1 (tied) -> pp=2. Source it from
412412
# the embedding weight (same shape + vocab/TP shard); that tensor
413413
# then feeds both the destination embedding and output_layer.
414-
for emb_name in (
415-
"embedding.word_embeddings.weight",
416-
"word_embeddings.weight",
417-
):
414+
for emb_name in ("embedding.word_embeddings.weight", "word_embeddings.weight"):
418415
src_meta_list = src_param_metadata.get(emb_name)
419416
if src_meta_list:
420417
break

0 commit comments

Comments
 (0)