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

updt setup.py; fix tokens_per_expert casting #9

Merged
merged 12 commits into from
Aug 10, 2023

Conversation

vchiley
Copy link
Collaborator

@vchiley vchiley commented Jul 26, 2023

PR does a few little things:

  • if setup.py imports torch therefore torch should already be installed; it shouldn't be part of the script install_requires.
    • torch similarly removed from stanford-stk @ git+https://github.com/vchiley/stk.git@setup_deps
  • use torch.cuda.get_device_capability() to set --generate-code compile flag for nvcc
  • autocast before all2all if autocast enabled
  • fix casting issue in def load_balancing_loss(*args)
  • create megablocks/backend/__init__.py

@vchiley vchiley marked this pull request as ready for review August 4, 2023 17:41
@tgale96 tgale96 merged commit d090eb4 into databricks:main Aug 10, 2023
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