# Saving and Loading SimpleTransformer model in docker container

**URL:** <https://discuss.huggingface.co/t/saving-and-loading-simpletransformer-model-in-docker-container/5320>\
**Category:** Beginners\
**Created:** [April 6, 2021, 9:14am UTC](https://discuss.huggingface.co/t/saving-and-loading-simpletransformer-model-in-docker-container/5320 "2021-04-06T09:14:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnil](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@swapnil](https://discuss.huggingface.co/u/swapnil)\
**Post date:** [April 6, 2021, 9:14am UTC](https://discuss.huggingface.co/t/saving-and-loading-simpletransformer-model-in-docker-container/5320/1 "2021-04-06T09:14:27Z")

</div>

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

I am facing this error

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

```

---

<div class="post-metadata">

**Author:** ![lewtun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lewtun/32/30995_2.png) [@lewtun](https://discuss.huggingface.co/u/lewtun)\
**Post date:** [April 6, 2021, 9:21pm UTC](https://discuss.huggingface.co/t/saving-and-loading-simpletransformer-model-in-docker-container/5320/2 "2021-04-06T21:21:23Z")

</div>

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](https://github.com/ThilinaRajapakse/simpletransformers)
