Saving and Loading SimpleTransformer model in docker container

I am training a XLM-roberta model using simple transfomer and saving the model by, 'classifier')
But when I am trying to load the same model in different environment,
model = torch.load('classifier')

I am facing this error

OSError: Not found: "/home/jupyter/.cache/huggingface/transformers/9df9ae4442348b73950203b63d1b8ed2d18eba68921872aee0c3a9d05b9673c6.00628a9eeb8baf4080d44a0abe9fe8057893de20c7cb6e6423cddbf452f7d4d8": No such file or directory Error #2

hey @swapnil since this question is about another library (simpletransformers), you might be able to get help by opening an issue there: GitHub - ThilinaRajapakse/simpletransformers: Transformers for Classification, NER, QA, Language Modelling, Language Generation, T5, Multi-Modal, and Conversational AI

1 Like