Closed fen0s closed 3 years ago
try to decrease fp16_opt_level
try to decrease fp16_opt_level
Yeah, the problem here is that with O2 it still doesn't want to run training and goes OOM, even at lesser block sizes. Weird thing here is that gradient checkpointing is present in your model implementation, but somehow it doesn't optimize model enough for greater order models to be ran on less VRAM hardware, which is really weird... Still trying out different things to make it work.
Hey guys,
@fen0s I'm trying to do the same thing - fine-tune GPT2 Large model in Colab, but I run out of RAM as well as you do. I tried to resolve this issue with a loop while True
, but it doesn't seem to work either. Did you manage to find something to make it work? 🤞
try use deepspeed version of script
Welp, I've got it to finetune the model, but something seems off. When trying to generate anything with finetuned model, I'm getting the error about probability being zero, negative or infinity. It seems so because of block_size < 1024, or because of Apex O3 optimizaton level. Is there anything I can do to fix this? Seems like I'm so close to actually getting it to work but everytime something goes wrong :/![изображение](https://user-images.githubusercontent.com/37670363/97778403-f9c67580-1b87-11eb-9549-34fbde4b9411.png)
Config I use for training:
Considering others succesfully trained large and even XL on colab gpu's, I think it is actually possible, and has drastic difference in quality comparing with GPT-3 Small, that is offered for finetuning.