How to continue to pre-train gpt2?
Hello, guys!I want to further pre-train GPT2 in some few specific texts and the library providesscriptsfor this.However, I found the model in the scripts belong to AutoModelForCausalLM, and GPT2 in my case is LMHead. Can this model be used for continuing pre-training as well?If it can should I use the script or the model?Thanks a lot!
2022-10-27T17:45:39Z
Hi@xiaoyaoyouOf course you can userun_clm.pyto fine-tune on the specific texts. Just specify--model_type gpt2(maybe some other options which depends on your desired), and you train the new model for downstream task. I’ll suggest you use this script to train the model, bcz it is prone to use DDP.
2023-07-01T01:34:00Z
In the case of the GPT-style model, is pre-training the same as fine-tuning as the objective is the same? next token prediction? Correct me if I am wrong. If i just use unlabeled data and continue training my GPT model, will it be called continued pre-trained model?