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
30f06589
Unverified
Commit
30f06589
authored
Apr 26, 2021
by
abiolaTresor
Committed by
GitHub
Apr 26, 2021
Browse files
updating the checkpoint for GPT2ForSequence Classification to one with classification head (#11434)
parent
35cd8eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/gpt2/modeling_gpt2.py
src/transformers/models/gpt2/modeling_gpt2.py
+1
-1
No files found.
src/transformers/models/gpt2/modeling_gpt2.py
View file @
30f06589
...
@@ -1236,7 +1236,7 @@ class GPT2ForSequenceClassification(GPT2PreTrainedModel):
...
@@ -1236,7 +1236,7 @@ class GPT2ForSequenceClassification(GPT2PreTrainedModel):
@
add_start_docstrings_to_model_forward
(
GPT2_INPUTS_DOCSTRING
)
@
add_start_docstrings_to_model_forward
(
GPT2_INPUTS_DOCSTRING
)
@
add_code_sample_docstrings
(
@
add_code_sample_docstrings
(
tokenizer_class
=
_TOKENIZER_FOR_DOC
,
tokenizer_class
=
_TOKENIZER_FOR_DOC
,
checkpoint
=
"microsoft/
d
ialog
rpt
"
,
checkpoint
=
"microsoft/
D
ialog
RPT-updown
"
,
output_type
=
SequenceClassifierOutputWithPast
,
output_type
=
SequenceClassifierOutputWithPast
,
config_class
=
_CONFIG_FOR_DOC
,
config_class
=
_CONFIG_FOR_DOC
,
)
)
...
...
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