BalancedLossNLP icon indicating copy to clipboard operation
BalancedLossNLP copied to clipboard

huggingface problems

Open yangjenhao opened this issue 2 years ago • 2 comments

We need to git clone https://huggingface.co/bert-base-uncased and put it to the ./Reuters/berts ?

thanks

yangjenhao avatar Oct 12 '22 09:10 yangjenhao

and when I put it to the ./Reuters/berts

a error

OSError: Unable to load weights from pytorch checkpoint file for './berts/bert-base-uncased' at './berts/bert-base-uncased/pytorch_model.bin'If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True. 

yangjenhao avatar Oct 12 '22 09:10 yangjenhao

We need to git clone https://huggingface.co/bert-base-uncased and put it to the ./Reuters/berts ?

thanks

Yes, you may also need to confirm the files are accessible from ./berts/bert-base-uncased/ (relative path to the notebook where you load the model)

blessu avatar Oct 18 '22 05:10 blessu