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
98308586
Unverified
Commit
98308586
authored
Feb 19, 2024
by
Lysandre Debut
Committed by
GitHub
Feb 19, 2024
Browse files
Fix the `bert-base-cased` tokenizer configuration test (#29105)
Fix test
parent
593230f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/auto/test_tokenization_auto.py
tests/models/auto/test_tokenization_auto.py
+1
-1
No files found.
tests/models/auto/test_tokenization_auto.py
View file @
98308586
...
@@ -223,7 +223,7 @@ class AutoTokenizerTest(unittest.TestCase):
...
@@ -223,7 +223,7 @@ class AutoTokenizerTest(unittest.TestCase):
config
=
get_tokenizer_config
(
"google-bert/bert-base-cased"
)
config
=
get_tokenizer_config
(
"google-bert/bert-base-cased"
)
_
=
config
.
pop
(
"_commit_hash"
,
None
)
_
=
config
.
pop
(
"_commit_hash"
,
None
)
# If we ever update google-bert/bert-base-cased tokenizer config, this dict here will need to be updated.
# If we ever update google-bert/bert-base-cased tokenizer config, this dict here will need to be updated.
self
.
assertEqual
(
config
,
{
"do_lower_case"
:
False
})
self
.
assertEqual
(
config
,
{
"do_lower_case"
:
False
,
"model_max_length"
:
512
})
# This model does not have a tokenizer_config so we get back an empty dict.
# This model does not have a tokenizer_config so we get back an empty dict.
config
=
get_tokenizer_config
(
SMALL_MODEL_IDENTIFIER
)
config
=
get_tokenizer_config
(
SMALL_MODEL_IDENTIFIER
)
...
...
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