"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "50acfc87175bc9aa00db4ec31e6fc4c6fac361f7"
Commit 312fdd77 authored by VictorSanh's avatar VictorSanh
Browse files

fix doc error

parent cdf0f2fe
...@@ -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):
""" """
gpt2LMHeadModel is the OpenAI GPT-2 Transformer model with the transformerXLModel 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:
......
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