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

How to use DirectML with transformers TrainingArguments #652

Open
osadchi opened this issue Oct 13, 2024 · 0 comments
Open

How to use DirectML with transformers TrainingArguments #652

osadchi opened this issue Oct 13, 2024 · 0 comments

Comments

@osadchi
Copy link

osadchi commented Oct 13, 2024

Thank you, for your work!!
I have a repo for training llama models, but it's for cuda.
How would I fix it to use DirectML with multi GPU instead of CUDA (I have AMD ROCm and NVIDIA CUDA cards)?

https://github.com/RuslanPeresy/gptchain/blob/main/train.py

There's CUDA everywhere :C

fp16=not torch.cuda.is_bf16_supported(),
bf16=torch.cuda.is_bf16_supported(),

Thank you Again!

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

No branches or pull requests

1 participant