Skip to content

Commit

Permalink
Update llmfoundry/models/utils/tp_strategy.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mihir Patel <[email protected]>
  • Loading branch information
eitanturok and mvpatel2000 authored Sep 26, 2024
1 parent 92719e7 commit 8c0135d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/models/utils/tp_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def ffn_tp_strategy(model: ComposerModel) -> dict[str, ParallelStyle]:
f'The FFN tensor parallelism strategy requires `model` to have layers {TP_LAYERS}. But `model` is missing layers {TP_LAYERS - tp_layers_in_model}.'
)

# generate layer plan
# Generate layer plan
layer_plan: dict[str, ParallelStyle] = {}
for name, _ in model.named_modules():
if name.split('.')[-2:] == ['ffn', 'up_proj']:
Expand Down

0 comments on commit 8c0135d

Please sign in to comment.