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

TEST: Add scripts for performance profiling #129

Merged
merged 9 commits into from
May 31, 2023

Conversation

Leengit
Copy link
Collaborator

@Leengit Leengit commented Apr 24, 2023

Starts the work towards satisfying #102 by implementing 4 performance scripts. These are a start, but further work will be needed.

Also, towards the performance goals, explores ways to incorporate multiple workers / multiple process into the torch Dataset and DataLoader. The predict_and_detach function proved essential to stop torch from crashing with too may un-detached tensors. Other approaches were of less use, were ultimately culled, but are left as intermediate git commits to document what was researched. (For example, DataLoaders stalled inexplicably when iterated within a torch.multiprocessing.Process.) The final commit indicates future directions for this aspect.

@Leengit Leengit added the test A unit or module test label Apr 24, 2023
@Leengit Leengit self-assigned this Apr 24, 2023
@Leengit Leengit force-pushed the performance_profiling branch 4 times, most recently from 1e3c27a to 23366b5 Compare April 25, 2023 13:28
@Leengit Leengit force-pushed the performance_profiling branch 4 times, most recently from 2afee06 to 2d7b099 Compare May 4, 2023 13:19
COMP: Update versions of package dependencies
@Leengit Leengit force-pushed the performance_profiling branch 2 times, most recently from 3a8186b to 816b1b0 Compare May 5, 2023 16:02
Leengit added 4 commits May 31, 2023 11:10
ENH: Use time.time consistently rather than time.perf_counter
ENH: Use WrappedModel consistently rather than WrapModel
ENH: Add show_structure and predict_and_retrieve
@Leengit Leengit force-pushed the performance_profiling branch from 1ee7887 to f07bb2a Compare May 31, 2023 15:25
@Leengit Leengit force-pushed the performance_profiling branch from f07bb2a to 9c29646 Compare May 31, 2023 15:35
@Leengit Leengit marked this pull request as ready for review May 31, 2023 16:42
@Leengit Leengit merged commit 6b8277b into DigitalSlideArchive:master May 31, 2023
@Leengit Leengit deleted the performance_profiling branch May 31, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test A unit or module test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant