# Using push\_to\_hub API, notebook crashed and whole process failed

**URL:** <https://discuss.huggingface.co/t/using-push-to-hub-api-notebook-crashed-and-whole-process-failed/29865>\
**Category:** 🤗Transformers\
**Created:** [January 17, 2023, 8:15am UTC](https://discuss.huggingface.co/t/using-push-to-hub-api-notebook-crashed-and-whole-process-failed/29865 "2023-01-17T08:15:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ainard09](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ainard09/32/13648_2.png) [@Ainard09](https://discuss.huggingface.co/u/Ainard09)\
**Post date:** [January 17, 2023, 8:15am UTC](https://discuss.huggingface.co/t/using-push-to-hub-api-notebook-crashed-and-whole-process-failed/29865/1 "2023-01-17T08:15:31Z")

</div>

I am using Google Colab to push my fine tuned model to the Hub. When I run the model.fit() function, a output directory was created on the Colab my drive and the model(Bert-base-uncased) begins to train on my datasets(glue- sst2) for 2 epochs. As the 2nd epoch progress bar run to completion, the training keeps running for hours and eventually crashed and the whole failed, then I won’t be allowed connect GPU as backend for that day. I have tried this twice but keeps getting the same result. Could it be the Colab GPU isn’t enough to push the model to the Hub or am doing something wrong? I followed this process push the model to Hub [hugging face push\_to\_hub api](https://youtu.be/pUh5cGmNV8Y)
