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

Running funetuning on GPU #10

Open
insundaycathy opened this issue Mar 4, 2022 · 2 comments
Open

Running funetuning on GPU #10

insundaycathy opened this issue Mar 4, 2022 · 2 comments

Comments

@insundaycathy
Copy link

Thanks for releasing your great work. I was wondering if there is a way to run the finetuning and zero-shot inference code on GPU rather than TPU? What king of adjustment would I need to make?
Thanks

@rowanz
Copy link
Owner

rowanz commented Mar 11, 2022

It should be possible. The big differences might be removing the "bfloat16" casting (as that's a datatype specific to TPUs), and changing some of the boilerplate code to not be TPU specific.

@HJiashu
Copy link

HJiashu commented Feb 23, 2023

Hi!
Have you been able to run the model on GPU's?

I'm also trying to run the model on GPU, but the model checkpoint is in bfloat16.
Thus I'm trying to load the model first with bfloat16's, and then cast everything back to float32's, but am encountering various problems.
I'm wondering if you have resolved this issue somehow?

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

3 participants