Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST Report slowest tests #1556

Merged

Conversation

BenjaminBossan
Copy link
Member

@BenjaminBossan BenjaminBossan commented Mar 12, 2024

Just a small addition so that we know which tests are the slowest. This can be helpful to identify tests to optimize, or to catch early if a new PR adds a particularly slow test.

Just a small addition so that we know which tests are the slowest.
@BenjaminBossan BenjaminBossan changed the title Tst report slowest tests TST Report slowest tests Mar 12, 2024
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@BenjaminBossan
Copy link
Member Author

The report looks like this:

============================= slowest 10 durations =============================
28.02s call     tests/test_poly.py::TestPoly::test_poly
26.85s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_disable_adapter_0_test_hf_internal_testing_tiny_stable_diffusion_torch_lora
26.31s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_disable_adapter_1_test_hf_internal_testing_tiny_stable_diffusion_torch_loha
21.92s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_merge_layers_safe_merge_0_test_hf_internal_testing_tiny_stable_diffusion_torch_lora
19.51s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_merge_layers_safe_merge_3_test_hf_internal_testing_tiny_stable_diffusion_torch_oft
18.20s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_merge_layers_safe_merge_2_test_hf_internal_testing_tiny_stable_diffusion_torch_lokr
18.05s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_merge_layers_safe_merge_1_test_hf_internal_testing_tiny_stable_diffusion_torch_loha
17.52s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_disable_adapter_3_test_hf_internal_testing_tiny_stable_diffusion_torch_oft
16.83s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_disable_adapter_2_test_hf_internal_testing_tiny_stable_diffusion_torch_lokr
12.18s call     tests/test_stablediffusion.py::StableDiffusionModelTester::test_merge_layers_3_test_hf_internal_testing_tiny_stable_diffusion_torch_oft

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this enhancement!

@BenjaminBossan BenjaminBossan merged commit a9425d1 into huggingface:main Mar 12, 2024
14 checks passed
@BenjaminBossan BenjaminBossan deleted the tst-report-slowest-tests branch March 12, 2024 17:02
BenjaminBossan added a commit to BenjaminBossan/peft that referenced this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants