Skip to content

Small performance improvement to process_item#395

Merged
jstjohn merged 12 commits intomainfrom
jstjohn/process_dataset_perf
Nov 8, 2024
Merged

Small performance improvement to process_item#395
jstjohn merged 12 commits intomainfrom
jstjohn/process_dataset_perf

Conversation

@jstjohn
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

@jstjohn #396

@jstjohn
Copy link
Copy Markdown
Collaborator Author

jstjohn commented Nov 5, 2024

/build-ci

@jstjohn
Copy link
Copy Markdown
Collaborator Author

jstjohn commented Nov 6, 2024

/build-ci

jstjohn and others added 4 commits November 8, 2024 10:38
…nglecell/dataset.py

Co-authored-by: Malcolm Greaves <malcolmgreaves@users.noreply.github.com>
Signed-off-by: John St. John <jstjohn@users.noreply.github.com>
@jstjohn
Copy link
Copy Markdown
Collaborator Author

jstjohn commented Nov 8, 2024

/build-ci

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

jstjohn commented Nov 8, 2024

/build-ci

@jstjohn jstjohn merged commit c6f4198 into main Nov 8, 2024
@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