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
a865b62e
Unverified
Commit
a865b62e
authored
Jul 14, 2023
by
Dario Sučić
Committed by
GitHub
Jul 14, 2023
Browse files
set correct model input names for gptsw3tokenizer (#24788)
parent
50726f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/models/gpt_sw3/tokenization_gpt_sw3.py
src/transformers/models/gpt_sw3/tokenization_gpt_sw3.py
+1
-0
No files found.
src/transformers/models/gpt_sw3/tokenization_gpt_sw3.py
View file @
a865b62e
...
...
@@ -107,6 +107,7 @@ class GPTSw3Tokenizer(PreTrainedTokenizer):
vocab_files_names
=
VOCAB_FILES_NAMES
pretrained_vocab_files_map
=
PRETRAINED_VOCAB_FILES_MAP
max_model_input_sizes
=
PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
model_input_names
=
[
"input_ids"
,
"attention_mask"
]
def
__init__
(
self
,
...
...
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