huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
131.68k stars 26.22k forks source link

Flaky test - tests/models/mobilenet_v1/test_modeling_mobilenet_v1.py::MobileNetV1ModelTest::test_batching_equivalence #31257

Open amyeroberts opened 3 months ago

amyeroberts commented 3 months ago

System Info

tests/models/mobilenet_v1/test_modeling_mobilenet_v1.py::MobileNetV1ModelTest::test_batching_equivalence periodically fails causing red on CI runs

Example CI run: https://app.circleci.com/pipelines/github/huggingface/transformers/94887/workflows/6766b7cd-c38c-4334-ab25-2afcb8e0d842/jobs/1246458

Who can help?

@zucchini-nlp as you added the batching equivalence tests :)

Information

Tasks

Reproduction

Run enough times to hit an error

Expected behavior

Doesn't occasionally fail

zucchini-nlp commented 3 months ago

Yeah, probably it was flaky at the time of adding because the MobileNetV2 is also flaky as marked #29516

As discussed, I am not CV expert but maybe I can give it another look later next week