-
-
Save avidale/44cd35bfcdaf8bedf51d97c468cc8001 to your computer and use it in GitHub Desktop.
Would this link of gist help : https://gist.github.com/Sandeep0408/236b164cb09408c920aedb15d5c7e984
If not, I can give you the access for the colab notebook via mail. Thanks!
Hello, I would like to know what version of python you are using, I saved the model as model.safetensors instead of pytorch_model.bin, please do you have any solution, thank you very much
Should this work with XLMRobertaModel, like e5-large? Or is something fundamentally different being used there. It didn't work out for me.
Should this work with XLMRobertaModel, like e5-large? Or is something fundamentally different being used there. It didn't work out for me.
As I can judge from the HF documentation, XLMRobertaTokenizer is based on SentencePiece, just like T5Tokenizer. Thus, in principle, the approach should work; I don't see any fundamental reasons why it wouldn't.
Nevertheless, the specific details, such as model parameter names, tokenizer parameter names, special tokens etc. may differ between T5 and XLMRoberta, so my code will surely need some adaptation to work with E5.
Now it looks like a problem with incorrect input.
But again, without knowing the exact code that led to the error, I cannot say for sure.