-
Notifications
You must be signed in to change notification settings - Fork 619
remove check for cuda version and package so the bf16 check passes on non Nvidia CUDA devices that support bf16 #803
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
Conversation
…upported cuda device such as AMD Radeon/Mi300
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/803
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit b114186 with merge base a79554e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Hi @supernovae! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
@supernovae thanks so much for the PR, the change has been on my TODO list for a while and I'm glad you got to it first. Mind signing the CLA and then I can accept and merge. BTW I'd be curious on what sort of training speed you're seeing (just a simple iter/sec number from tqdm would be good enough). |
I did sign the CLA, i'll double check to make sure i didn't fat finger the username :) I am getting 1.33 to 1.60it/s if i leave my computer alone is there a list of it/sec for 3090/4090 cards? did the CLA again, hopefully i didn't break anything |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Hmm, I'm getting around 3it/sec on a 4090 so 2x faster. To confirm, you're training using the default config? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the change! I added one fix to fix the lint error.
I am using default config. I did notice this error:
I'm not sure if that PR is the "memory efficient flash attention" but i'm hopefully i can see it merged into a nightly i can try 👍 |
Remove checks that prohibit AMD cards that support pytorch as cuda devices from training.
Context
I have a 7900xtx running pytorch 2.2 w/ROCM 6.1 and wanted to train a mistral/llama model but ran into an error that my card didn't support bf16
Changelog
Remove cuda package and version check - returns none for rocm
Test plan
Training mistral 07b on my 7900xtx using lora.