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
e30bbb26
Unverified
Commit
e30bbb26
authored
Feb 12, 2024
by
Joao Gante
Committed by
GitHub
Feb 12, 2024
Browse files
Tests: tag `test_save_load_fast_init_from_base` as flaky (#28930)
parent
1709886e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/test_modeling_common.py
tests/test_modeling_common.py
+2
-0
No files found.
tests/test_modeling_common.py
View file @
e30bbb26
...
@@ -64,6 +64,7 @@ from transformers.models.auto.modeling_auto import (
...
@@ -64,6 +64,7 @@ from transformers.models.auto.modeling_auto import (
)
)
from
transformers.testing_utils
import
(
from
transformers.testing_utils
import
(
CaptureLogger
,
CaptureLogger
,
is_flaky
,
is_pt_flax_cross_test
,
is_pt_flax_cross_test
,
is_pt_tf_cross_test
,
is_pt_tf_cross_test
,
require_accelerate
,
require_accelerate
,
...
@@ -381,6 +382,7 @@ class ModelTesterMixin:
...
@@ -381,6 +382,7 @@ class ModelTesterMixin:
m
.
gradient_checkpointing
,
f
"Module
{
n
}
does not have gradient_checkpointing set to False"
m
.
gradient_checkpointing
,
f
"Module
{
n
}
does not have gradient_checkpointing set to False"
)
)
@
is_flaky
(
description
=
"low likelihood of failure, reason not yet discovered"
)
def
test_save_load_fast_init_from_base
(
self
):
def
test_save_load_fast_init_from_base
(
self
):
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
if
config
.
__class__
not
in
MODEL_MAPPING
:
if
config
.
__class__
not
in
MODEL_MAPPING
:
...
...
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