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
312fdd77
"...git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "f4d3f913f40713cb41485a7f8aab3a31b59e86e6"
Commit
312fdd77
authored
Jun 01, 2019
by
VictorSanh
Browse files
fix doc error
parent
cdf0f2fe
Changes
1
Hide 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):
...
@@ -59,9 +59,7 @@ def transformerXLTokenizer(*args, **kwargs):
@
_append_from_pretrained_docstring
(
transformer_xl_docstring
)
@
_append_from_pretrained_docstring
(
transformer_xl_docstring
)
def
transformerXLModel
(
*
args
,
**
kwargs
):
def
transformerXLModel
(
*
args
,
**
kwargs
):
"""
"""
gpt2Model is the basic OpenAI GPT-2 Transformer model based on
transformerXLModel is the basic Transformer XL model.
identical stacked masked self-attention blocks and pre-trained
on large scale dataset using language modeling signal.
Example:
Example:
# Load the tokenizer
# Load the tokenizer
...
@@ -95,7 +93,7 @@ def transformerXLModel(*args, **kwargs):
...
@@ -95,7 +93,7 @@ def transformerXLModel(*args, **kwargs):
@
_append_from_pretrained_docstring
(
transformer_xl_docstring
)
@
_append_from_pretrained_docstring
(
transformer_xl_docstring
)
def
transformerXLLMHeadModel
(
*
args
,
**
kwargs
):
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.
tied (pre-trained) language modeling head on top.
Example:
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