未验证 提交 d6f62217 编写于 作者: Y Yejing-Lai 提交者: GitHub

Add GPTNeoX AutoTP support (#3778)

Co-authored-by: NOlatunji Ruwase <olruwase@microsoft.com>
Co-authored-by: NMolly Smith <112220543+molly-smith@users.noreply.github.com>
上级 9377921a
......@@ -108,6 +108,8 @@ class AutoTP():
gem_list = gem_list + [layer]
elif 'down_proj' in layer:
gem_list = gem_list + [layer]
elif 'attention.dense' in layer and 'GPTNeoX' in str(model):
gem_list = gem_list + [layer]
elif 'self_attention.dense' in layer and 'falcon' in str(
type(module)): # this is a hack to get the right linear layer for this model!
gem_list = gem_list + [layer]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册