Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
312fdd77
Commit
312fdd77
authored
Jun 01, 2019
by
VictorSanh
Browse files
fix doc error
parent
cdf0f2fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
hubconfs/transformer_xl_hubconf.py
hubconfs/transformer_xl_hubconf.py
+2
-4
No files found.
hubconfs/transformer_xl_hubconf.py
View file @
312fdd77
...
...
@@ -59,9 +59,7 @@ def transformerXLTokenizer(*args, **kwargs):
@
_append_from_pretrained_docstring
(
transformer_xl_docstring
)
def
transformerXLModel
(
*
args
,
**
kwargs
):
"""
gpt2Model is the basic OpenAI GPT-2 Transformer model based on
identical stacked masked self-attention blocks and pre-trained
on large scale dataset using language modeling signal.
transformerXLModel is the basic Transformer XL model.
Example:
# Load the tokenizer
...
...
@@ -95,7 +93,7 @@ def transformerXLModel(*args, **kwargs):
@
_append_from_pretrained_docstring
(
transformer_xl_docstring
)
def
transformerXLLMHeadModel
(
*
args
,
**
kwargs
):
"""
gpt2LMHead
Model is the
OpenAI GPT-2
Transformer model with the
transformerXL
Model is the
basic
Transformer
XL
model with the
tied (pre-trained) language modeling head on top.
Example:
...
...
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