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

Fix notebook tests #851

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Fix notebook tests #851

merged 2 commits into from
Sep 18, 2024

Conversation

loostrum
Copy link
Member

@loostrum loostrum commented Sep 16, 2024

As a first change I made the Python version used to run the tutorial notebooks more robust in the CI file. This is not that important, but was mainly so I could open a PR and trigger the CI to run on the notebooks.

The failing tests seem to be due to the Github runner being out of memory. I noticed locally that the lime_images tutorial uses all my available RAM. The test does pass locally, but perhaps this is the issue. There is an option to disable some pre-allocation of memory by ONNX, see here.
I've added that option to our SimpleModelRunner. This drastically reduces the memory usage.

Tests now pass on CI as well.

@loostrum loostrum changed the title Fix notebook tests [WIP] Fix notebook tests Sep 16, 2024
@loostrum loostrum marked this pull request as ready for review September 16, 2024 08:31
…large memory footprint in e.g. lime_images tutorial
@loostrum loostrum changed the title [WIP] Fix notebook tests Fix notebook tests Sep 16, 2024
@loostrum
Copy link
Member Author

The only test still failing is dashboard related, unrelated to this PR.

Copy link
Contributor

@elboyran elboyran left a comment

Choose a reason for hiding this comment

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

Nicely spot and fix!

@loostrum loostrum linked an issue Sep 18, 2024 that may be closed by this pull request
@loostrum loostrum merged commit fcabc22 into main Sep 18, 2024
16 of 17 checks passed
@loostrum loostrum deleted the 848-fix-notebook-tests branch September 18, 2024 08:21
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.

Fix notebook tests
2 participants