Closed CuongNN218 closed 2 years ago
Hi @CuongNN218 ,
try to remove this line and rebuild? https://github.com/texttron/tevatron/blob/8490819d6619ae61acf1542400b8ad7c5b1999e7/src/tevatron/driver/train.py#L111
@MXueguang Hi something is not correct, right ? It means that I can not load local pretrained model ?
you can load the local pretrained model after removing that line. or set model_path=None
.
The local pretrained model will be loaded already before this line
This line here was for recovering a training state iirc, which is not needed.
The local pretrained model (in huggingface format) should already been loaded in https://github.com/texttron/tevatron/blob/8490819d6619ae61acf1542400b8ad7c5b1999e7/src/tevatron/driver/train.py#L73
The current design is that general pre-trained models should be loaded from the hub.
I'm trying to train my local checkpoint using vinai/phobert on hugging face hub but I got this problem.
How can I solved it?