You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======================================================== short test summary info =========================================================
PASSED tests/models/mra/test_modeling_mra.py::MraModelTest::test_load_with_mismatched_shapes
[Testing <class 'transformers.models.mra.modeling_mra.MraForSequenceClassification'>] SUBFAIL tests/models/mra/test_modeling_mra.py::MraModelTest::test_load_with_mismatched_shapes - ValueError: sequence length must be divisible by the block_size.
================================================ 1 failed, 1 passed, 3 warnings in 6.27s =================================================
Expected behavior
I expect that this command gives_ me only one test result rather than two.
Below are the experiments I tried:
with pytest-subtests installed, comment out "with self.subTest(msg=f"Testing {model_class}"):", test pass with 1 test case
with pytest-subtests uninstalled, comment out "with self.subTest(msg=f"Testing {model_class}"):", test pass with 1 test case
with pytest-subtests uninstalled, test fails with 1 test case
I also saw your other PR #34806. Maybe this is another issue with pytest-subtests?
The text was updated successfully, but these errors were encountered:
pytest-subtests is designed to report multiple states (regarding subtests) even for a single test method.
So far in transformers, the CI env. doesn't have pytest-subtests installed (yet).
Also pytest-subtests has some issue regarding the reporting, see this.
transformers might install pytest-subtests in the CI env. soon and we definitely need to work on some issues that haven't been observed so far. But reporting multiple states for a single test is from pytest-subtests and not something transformers could change.
System Info
transformers
version: 4.47.0.dev0- distributed_type: MULTI_GPU
- mixed_precision: bf16
- use_cpu: False
- debug: False
- num_processes: 2
- machine_rank: 0
- num_machines: 1
- gpu_ids: all
- rdzv_backend: static
- same_network: True
- main_training_function: main
- enable_cpu_affinity: False
- downcast_bf16: no
- tpu_use_cluster: False
- tpu_use_sudo: False
- tpu_env: []
Who can help?
@ydshieh
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
with the following test command:
I will get 2 test results:
Expected behavior
I expect that this command gives_ me only one test result rather than two.
Below are the experiments I tried:
I also saw your other PR #34806. Maybe this is another issue with
pytest-subtests
?The text was updated successfully, but these errors were encountered: