[docstring] Update GPT2 and Whisper (#26642)

* [DOCS] Update docstrings for  and  tokenizer

* [DOCS] add pad_token argument to whisper tokenizer docstring

* [FIX] Reword pad_token description

* [CHORE] Apply style formatting

---------

Co-authored-by: jmcdonnell <jmcdonnell@fieldbox.ai>
This commit is contained in:
Joseph McDonnell
2023-10-12 17:00:59 +02:00
committed by GitHub
parent eb734e5147
commit b4199c2dad
6 changed files with 33 additions and 31 deletions

View File

@@ -316,9 +316,6 @@ OBJECTS_TO_IGNORE = [
"FlavaTextModel",
"FocalNetModel",
"FunnelTokenizerFast",
"GPT2Config",
"GPT2Tokenizer",
"GPT2TokenizerFast",
"GPTBigCodeConfig",
"GPTJConfig",
"GPTNeoXConfig",
@@ -789,8 +786,6 @@ OBJECTS_TO_IGNORE = [
"WhisperConfig",
"WhisperFeatureExtractor",
"WhisperForAudioClassification",
"WhisperTokenizer",
"WhisperTokenizerFast",
"XCLIPTextConfig",
"XCLIPVisionConfig",
"XGLMConfig",