minor typo
This commit is contained in:
@@ -614,7 +614,7 @@ class GPT2LMHeadModel(GPT2PreTrainedModel):
|
|||||||
@add_start_docstrings("""The GPT2 Model transformer with a language modeling and a multiple-choice classification
|
@add_start_docstrings("""The GPT2 Model transformer with a language modeling and a multiple-choice classification
|
||||||
head on top e.g. for RocStories/SWAG tasks. The two heads are two linear layers.
|
head on top e.g. for RocStories/SWAG tasks. The two heads are two linear layers.
|
||||||
The language modeling head has its weights tied to the input embeddings,
|
The language modeling head has its weights tied to the input embeddings,
|
||||||
the classification head takes as input the input of a specified classification token index in the intput sequence).
|
the classification head takes as input the input of a specified classification token index in the input sequence).
|
||||||
""", GPT2_START_DOCSTRING)
|
""", GPT2_START_DOCSTRING)
|
||||||
class GPT2DoubleHeadsModel(GPT2PreTrainedModel):
|
class GPT2DoubleHeadsModel(GPT2PreTrainedModel):
|
||||||
r""" Inputs:
|
r""" Inputs:
|
||||||
|
|||||||
@@ -604,7 +604,7 @@ class OpenAIGPTLMHeadModel(OpenAIGPTPreTrainedModel):
|
|||||||
@add_start_docstrings("""OpenAI GPT Model transformer with a language modeling and a multiple-choice classification
|
@add_start_docstrings("""OpenAI GPT Model transformer with a language modeling and a multiple-choice classification
|
||||||
head on top e.g. for RocStories/SWAG tasks. The two heads are two linear layers.
|
head on top e.g. for RocStories/SWAG tasks. The two heads are two linear layers.
|
||||||
The language modeling head has its weights tied to the input embeddings,
|
The language modeling head has its weights tied to the input embeddings,
|
||||||
the classification head takes as input the input of a specified classification token index in the intput sequence).
|
the classification head takes as input the input of a specified classification token index in the input sequence).
|
||||||
""", OPENAI_GPT_START_DOCSTRING)
|
""", OPENAI_GPT_START_DOCSTRING)
|
||||||
class OpenAIGPTDoubleHeadsModel(OpenAIGPTPreTrainedModel):
|
class OpenAIGPTDoubleHeadsModel(OpenAIGPTPreTrainedModel):
|
||||||
r""" Inputs:
|
r""" Inputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user