prompt-tuning icon indicating copy to clipboard operation
prompt-tuning copied to clipboard

GPU version is needed!

Open TITONIChen opened this issue 2 years ago • 2 comments

Hi,

Thanks for reading my issue. I've learned from your amazing paper named The Power of Scale for Parameter-Efficient Prompt Tuning. I'm wondering whether I could train my prompt-based model with GPU on my PC, or must via Google Cloud TPU. In other words, could you please provide me with another version of codes which is only relied on GPU?

Looking forward to your reply! Thanks

Chen

TITONIChen avatar Aug 10 '22 10:08 TITONIChen

Hi!

This code base uses T5X for training and inference on accelerators. Based on the note here https://github.com/google-research/t5x#installation T5X should work on GPUs. I'm not sure if it will automatically detect and use GPUs or if there is some flag that needs to be set.

Hope that helps!

blester125 avatar Aug 17 '22 15:08 blester125

I have tried the code on GPU and it's working. However, the cuda driver/toolkit and package setup takes some time.

hepengfe avatar Nov 02 '22 06:11 hepengfe