# Cannot load training\_args.bin

**URL:** <https://discuss.huggingface.co/t/cannot-load-training-args-bin/10614>\
**Category:** 🤗Transformers\
**Created:** [October 8, 2021, 10:47am UTC](https://discuss.huggingface.co/t/cannot-load-training-args-bin/10614 "2021-10-08T10:47:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aktsvigun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aktsvigun/32/19418_2.png) [@Aktsvigun](https://discuss.huggingface.co/u/Aktsvigun)\
**Post date:** [October 8, 2021, 10:47am UTC](https://discuss.huggingface.co/t/cannot-load-training-args-bin/10614/1 "2021-10-08T10:47:57Z")

</div>

Hi,  
after the model training I’ve got saved `training_args.bin`. However, loading them with `torch.load(...)` as suggested in [How to load training\_args](https://discuss.huggingface.co/t/how-to-load-training-args/5720) results in an error:

 ![Снимок экрана 2021-10-08 в 13.55.19](https://us1.discourse-cdn.com/hellohellohello/original/2X/5/512a9859d2979e665eafece98ce22843fc3776e5.png)

Am I doing something wrong or is it a bug?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Aktsvigun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/aktsvigun/32/19418_2.png) [@Aktsvigun](https://discuss.huggingface.co/u/Aktsvigun)\
**Post date:** [October 8, 2021, 11:02am UTC](https://discuss.huggingface.co/t/cannot-load-training-args-bin/10614/2 "2021-10-08T11:02:53Z")

</div>

A mistake on my side, though may be relevant to somebody. I overwrote the class TrainingArguments to add my own one, and the file with the new class (`training_arguments.py` in my case) must be present in the same directory from which you are uploading the arguments. Closing this.
