Unverified Commit ef530175 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix `GPTJ` doctest (#21213)



Replace the checkpoint - the current one has shape issue
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 6ee6993f
...@@ -904,7 +904,7 @@ class GPTJForSequenceClassification(GPTJPreTrainedModel): ...@@ -904,7 +904,7 @@ class GPTJForSequenceClassification(GPTJPreTrainedModel):
@add_start_docstrings_to_model_forward(GPTJ_INPUTS_DOCSTRING.format("batch_size, sequence_length")) @add_start_docstrings_to_model_forward(GPTJ_INPUTS_DOCSTRING.format("batch_size, sequence_length"))
@add_code_sample_docstrings( @add_code_sample_docstrings(
checkpoint=_CHECKPOINT_FOR_DOC, checkpoint="ydshieh/tiny-random-gptj-for-sequence-classification",
output_type=SequenceClassifierOutputWithPast, output_type=SequenceClassifierOutputWithPast,
config_class=_CONFIG_FOR_DOC, config_class=_CONFIG_FOR_DOC,
real_checkpoint=_REAL_CHECKPOINT_FOR_DOC, real_checkpoint=_REAL_CHECKPOINT_FOR_DOC,
......
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