"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "78f79ef67062884ef85efeb055b11b5dfc529676"
Unverified Commit 7e6102ce authored by Thomas Wolf's avatar Thomas Wolf Committed by GitHub
Browse files

Merge pull request #963 from guotong1988/patch-2

Update modeling_bert.py
parents 3773ba44 d7fd1056
...@@ -222,7 +222,7 @@ class BertConfig(PretrainedConfig): ...@@ -222,7 +222,7 @@ class BertConfig(PretrainedConfig):
try: try:
from apex.normalization.fused_layer_norm import FusedLayerNorm as BertLayerNorm from apex.normalization.fused_layer_norm import FusedLayerNorm as BertLayerNorm
except ImportError: except (ImportError, AttributeError) as e:
logger.info("Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .") logger.info("Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex .")
class BertLayerNorm(nn.Module): class BertLayerNorm(nn.Module):
def __init__(self, hidden_size, eps=1e-12): def __init__(self, hidden_size, eps=1e-12):
......
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