"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "5b49376202863d3798d2ff8a8ba61590542a1141"
Unverified Commit 2582bbde authored by Arthur's avatar Arthur Committed by GitHub
Browse files

fix ACT_FN (#25627)

parent 2c1bcbf5
...@@ -130,7 +130,7 @@ def load_tf_weights_in_openai_gpt(model, config, openai_checkpoint_folder_path): ...@@ -130,7 +130,7 @@ def load_tf_weights_in_openai_gpt(model, config, openai_checkpoint_folder_path):
return model return model
ACT_FNS = {"relu": nn.ReLU, "silu": silu, "gelu": gelu_new, "swish": silu} ACT_FNS = {"relu": nn.ReLU(), "silu": silu, "gelu": gelu_new, "swish": silu}
class Attention(nn.Module): class Attention(nn.Module):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment