Skip to content

Commit

Permalink
Fix phi3 mini 128k load error (#5765)
Browse files Browse the repository at this point in the history
Fix phi3 mini 128k load error.

Co-authored-by: Logan Adams <[email protected]>
  • Loading branch information
Yejing-Lai and loadams authored Jul 15, 2024
1 parent 0af9ac3 commit a07a3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/module_inject/auto_tp.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def is_load_module(module):
load_layer_names = [
"LPLayerNorm", "SharedEmbedding", "OPTLearnedPositionalEmbedding", "LlamaRMSNorm", "FalconLinear",
"MistralRMSNorm", "T5LayerNorm", "MixtralRMSNorm", "Phi3RotaryEmbedding", "Phi3SuScaledRotaryEmbedding",
"Phi3RMSNorm", "YuanRMSNorm", "YuanRotaryEmbedding"
"Phi3RMSNorm", "YuanRMSNorm", "YuanRotaryEmbedding", "Phi3LongRoPEScaledRotaryEmbedding"
]
return module.__class__ in load_layers or module._get_name() in load_layer_names

Expand Down

0 comments on commit a07a3c5

Please sign in to comment.