# Google Colab Crash When Loading Pre-Trained Transformer

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgoogle-colab-crash-when-loading-pre-trained-transformer%2F19660%3E%5C
**Category:** 🤗Transformers\
**Created:** [June 27, 2022, 8:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgoogle-colab-crash-when-loading-pre-trained-transformer%2F19660 "2022-06-27T08:34:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geeqy](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@geeqy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgeeqy)%5C
**Post date:** [June 27, 2022, 8:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgoogle-colab-crash-when-loading-pre-trained-transformer%2F19660%2F1 "2022-06-27T08:34:56Z")

</div>

I am new to transformers. I have fine-tuned my MT5 model in Google Colab and saved it with `save_pretrained(PATH)`. However, when I tried to load the model with `MT5ForConditionalGeneration.from_pretrained(PATH)`, Google Colab keep crashing with log error:

`terminate called after throwing an instance of 'std::__ios_failure'`

`what(): basic_filebuf::underflow error reading the file: iostream error`

I suspect that it was out-of-memory problem, but I have no clue how to fix it.
