a-rios / longmbart

Apache License 2.0
4 stars 6 forks source link

make longmbart executable on cpu #6

Closed Ptark closed 2 years ago

Ptark commented 2 years ago

Hi,

I had problems running the model on gpu, since my gpu only has 6GB of memory. When I tried to run it on cpu, I received an error about amp not being compatible with cpu. This pull request changes the pl.Trainer parameters if the run will happen on cpu.

Greetings, Christian