Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
5c85fc39
Commit
5c85fc39
authored
Mar 06, 2019
by
thomwolf
Browse files
fix typo - logger info
parent
8e36da7a
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
21 additions
and
21 deletions
+21
-21
examples/extract_features.py
examples/extract_features.py
+1
-1
examples/run_classifier.py
examples/run_classifier.py
+1
-1
examples/run_lm_finetuning.py
examples/run_lm_finetuning.py
+1
-1
examples/run_openai_gpt.py
examples/run_openai_gpt.py
+1
-1
examples/run_squad.py
examples/run_squad.py
+1
-1
examples/run_swag.py
examples/run_swag.py
+1
-1
examples/run_transfo_xl.py
examples/run_transfo_xl.py
+1
-1
pytorch_pretrained_bert/convert_gpt2_checkpoint_to_pytorch.py
...rch_pretrained_bert/convert_gpt2_checkpoint_to_pytorch.py
+1
-1
pytorch_pretrained_bert/convert_openai_checkpoint_to_pytorch.py
...h_pretrained_bert/convert_openai_checkpoint_to_pytorch.py
+1
-1
pytorch_pretrained_bert/convert_tf_checkpoint_to_pytorch.py
pytorch_pretrained_bert/convert_tf_checkpoint_to_pytorch.py
+1
-1
pytorch_pretrained_bert/convert_transfo_xl_checkpoint_to_pytorch.py
...etrained_bert/convert_transfo_xl_checkpoint_to_pytorch.py
+1
-1
pytorch_pretrained_bert/modeling.py
pytorch_pretrained_bert/modeling.py
+2
-2
pytorch_pretrained_bert/modeling_gpt2.py
pytorch_pretrained_bert/modeling_gpt2.py
+1
-1
pytorch_pretrained_bert/modeling_openai.py
pytorch_pretrained_bert/modeling_openai.py
+1
-1
pytorch_pretrained_bert/modeling_transfo_xl.py
pytorch_pretrained_bert/modeling_transfo_xl.py
+1
-1
pytorch_pretrained_bert/modeling_transfo_xl_utilities.py
pytorch_pretrained_bert/modeling_transfo_xl_utilities.py
+1
-1
pytorch_pretrained_bert/optimization.py
pytorch_pretrained_bert/optimization.py
+1
-1
pytorch_pretrained_bert/optimization_openai.py
pytorch_pretrained_bert/optimization_openai.py
+1
-1
pytorch_pretrained_bert/tokenization.py
pytorch_pretrained_bert/tokenization.py
+1
-1
pytorch_pretrained_bert/tokenization_gpt2.py
pytorch_pretrained_bert/tokenization_gpt2.py
+1
-1
No files found.
examples/extract_features.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
examples/run_classifier.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
examples/run_lm_finetuning.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
examples/run_openai_gpt.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HugginFace Inc. team.
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
examples/run_squad.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
examples/run_swag.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
examples/run_transfo_xl.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HugginFace Inc. team.
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
pytorch_pretrained_bert/convert_gpt2_checkpoint_to_pytorch.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The HugginFace Inc. team.
# Copyright 2018 The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/convert_openai_checkpoint_to_pytorch.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The HugginFace Inc. team.
# Copyright 2018 The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/convert_tf_checkpoint_to_pytorch.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The HugginFace Inc. team.
# Copyright 2018 The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/convert_transfo_xl_checkpoint_to_pytorch.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The HugginFace Inc. team.
# Copyright 2018 The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/modeling.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -217,7 +217,7 @@ class BertConfig(object):
try
:
from
apex.normalization.fused_layer_norm
import
FusedLayerNorm
as
BertLayerNorm
except
ImportError
:
print
(
"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
):
def
__init__
(
self
,
hidden_size
,
eps
=
1e-12
):
"""Construct a layernorm module in the TF style (epsilon inside the square root).
...
...
pytorch_pretrained_bert/modeling_gpt2.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HugginFace Inc. team.
# Copyright 2018 The OpenAI Team Authors and Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
pytorch_pretrained_bert/modeling_openai.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HugginFace Inc. team.
# Copyright 2018 The OpenAI Team Authors and Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
pytorch_pretrained_bert/modeling_transfo_xl.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HugginFace Inc. team.
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
pytorch_pretrained_bert/modeling_transfo_xl_utilities.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HugginFace Inc. team.
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the Huggin
g
Face Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
pytorch_pretrained_bert/optimization.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/optimization_openai.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Open AI Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Open AI Team Authors and The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/tokenization.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Google AI Language Team Authors and The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
pytorch_pretrained_bert/tokenization_gpt2.py
View file @
5c85fc39
# coding=utf-8
# Copyright 2018 The Open AI Team Authors and The HugginFace Inc. team.
# Copyright 2018 The Open AI Team Authors and The Huggin
g
Face Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment