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
9999b739
Unverified
Commit
9999b739
authored
Nov 09, 2023
by
amyeroberts
Committed by
GitHub
Nov 09, 2023
Browse files
Skip failing cache call tests (#27393)
* Skip failing cache call tests * Fixup
parent
bc086a25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
tests/models/auto/test_modeling_auto.py
tests/models/auto/test_modeling_auto.py
+3
-0
tests/models/auto/test_tokenization_auto.py
tests/models/auto/test_tokenization_auto.py
+3
-0
No files found.
tests/models/auto/test_modeling_auto.py
View file @
9999b739
...
...
@@ -482,6 +482,9 @@ class AutoModelTest(unittest.TestCase):
with
self
.
assertRaisesRegex
(
EnvironmentError
,
"Use `from_flax=True` to load this model"
):
_
=
AutoModel
.
from_pretrained
(
"hf-internal-testing/tiny-bert-flax-only"
)
@
unittest
.
skip
(
"Currently failing with new huggingface_hub release. See: https://github.com/huggingface/transformers/pull/27389"
)
def
test_cached_model_has_minimum_calls_to_head
(
self
):
# Make sure we have cached the model.
_
=
AutoModel
.
from_pretrained
(
"hf-internal-testing/tiny-random-bert"
)
...
...
tests/models/auto/test_tokenization_auto.py
View file @
9999b739
...
...
@@ -419,6 +419,9 @@ class AutoTokenizerTest(unittest.TestCase):
):
_
=
AutoTokenizer
.
from_pretrained
(
DUMMY_UNKNOWN_IDENTIFIER
,
revision
=
"aaaaaa"
)
@
unittest
.
skip
(
"Currently failing with new huggingface_hub release. See: https://github.com/huggingface/transformers/pull/27389"
)
def
test_cached_tokenizer_has_minimum_calls_to_head
(
self
):
# Make sure we have cached the tokenizer.
_
=
AutoTokenizer
.
from_pretrained
(
"hf-internal-testing/tiny-random-bert"
)
...
...
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