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

Avoid duplicate .cpu() call #37

Merged
merged 9 commits into from
Nov 6, 2023
Merged

Avoid duplicate .cpu() call #37

merged 9 commits into from
Nov 6, 2023

Conversation

mvpatel2000
Copy link
Contributor

Avoid duplicate .cpu() call by using cached CPU counts

@mvpatel2000 mvpatel2000 requested a review from tgale96 November 6, 2023 21:35
megablocks/layers/moe.py Outdated Show resolved Hide resolved
@tgale96
Copy link
Contributor

tgale96 commented Nov 6, 2023

All tests passing?

@mvpatel2000 mvpatel2000 requested a review from tgale96 November 6, 2023 21:48
@mvpatel2000
Copy link
Contributor Author

All tests passing?

I ran a manual test and verified it works. Let me know if there's specific tests you'd like me to run beyond that

@tgale96
Copy link
Contributor

tgale96 commented Nov 6, 2023

Just dmoe_test.py and parallelism_test.py should be sufficient, I think.

megablocks/layers/moe.py Outdated Show resolved Hide resolved
megablocks/layers/moe.py Outdated Show resolved Hide resolved
@tgale96 tgale96 merged commit 35274f7 into databricks:main Nov 6, 2023
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/logs branch November 6, 2023 22:09
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.

2 participants