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

Small performance improvement to process_item #395

Merged
merged 12 commits into from
Nov 8, 2024

Conversation

jstjohn
Copy link
Collaborator

@jstjohn jstjohn commented Nov 4, 2024

Summary

Run python -m bionemo.geneformer.data.singlecell.dataset

Baseline:

Processed 31208 rows in 47.10491418838501 seconds
Processed 31208 rows in 47.388004779815674 seconds

After vectorization:

Processed 31208 rows in 44.2215359210968 seconds
Processed 31208 rows in 44.54389500617981 seconds

Copy link
Collaborator

@malcolmgreaves malcolmgreaves left a comment

Choose a reason for hiding this comment

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

LGTM but needs changes because of imports. bionemo-testing isn't a main, run-time dependency for bionemo-geneformer. It's a test-time only. To unblock this PR, the load function needs to be moved into bionemo-core and bionemo-testing needs to be refactored to import this so that we don't break backwards compatability.

Copy link
Collaborator

@sichu2023 sichu2023 left a comment

Choose a reason for hiding this comment

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

LGTM. Can eventually move this profiling to unittest.

@malcolmgreaves
Copy link
Collaborator

@jstjohn #396

@jstjohn
Copy link
Collaborator Author

jstjohn commented Nov 5, 2024

/build-ci

@jstjohn
Copy link
Collaborator Author

jstjohn commented Nov 6, 2024

/build-ci

@jstjohn
Copy link
Collaborator Author

jstjohn commented Nov 8, 2024

/build-ci

@jstjohn jstjohn enabled auto-merge (squash) November 8, 2024 21:09
@jstjohn
Copy link
Collaborator Author

jstjohn commented Nov 8, 2024

/build-ci

@jstjohn jstjohn merged commit c6f4198 into main Nov 8, 2024
4 checks passed
@jstjohn jstjohn deleted the jstjohn/process_dataset_perf branch November 8, 2024 22:03
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.

4 participants