# Load\_cache before training

**URL:** <https://discuss.huggingface.co/t/load-cache-before-training/32680>\
**Category:** 🤗Transformers\
**Created:** [February 28, 2023, 6:45am UTC](https://discuss.huggingface.co/t/load-cache-before-training/32680 "2023-02-28T06:45:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liumaishen](https://avatars.discourse-cdn.com/v4/letter/l/6a8cbe/32.png) [@liumaishen](https://discuss.huggingface.co/u/liumaishen)\
**Post date:** [February 28, 2023, 6:45am UTC](https://discuss.huggingface.co/t/load-cache-before-training/32680/1 "2023-02-28T06:45:27Z")

</div>

I’m training a model using an online cluster using scheduling, so the training will be interrupt. when the last training start again, the cache might be problem.  
f.read() get nothing from cache file, then there is an error.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/8/86932856c9ea6ed4182b934cfc1b201c4446e885.png)  
how should i do ?  
thanks.
