# Colab session crashing after using all available RAM

**URL:** <https://discuss.huggingface.co/t/colab-session-crashing-after-using-all-available-ram/3224>\
**Category:** Beginners\
**Created:** [January 16, 2021, 6:13am UTC](https://discuss.huggingface.co/t/colab-session-crashing-after-using-all-available-ram/3224 "2021-01-16T06:13:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SathsaraRasantha](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@SathsaraRasantha](https://discuss.huggingface.co/u/SathsaraRasantha)\
**Post date:** [January 16, 2021, 6:13am UTC](https://discuss.huggingface.co/t/colab-session-crashing-after-using-all-available-ram/3224/1 "2021-01-16T06:13:26Z")

</div>

I am trying to follow the Hugging Face article " How to train a new language model from scratch using Transformers and Tokenizers". But colab session get crashed after using all available RAM. It happens when running the function which build the training Dataset.

I am using a Sinhala language dataset for this. Size of the dataset is about 250MB. I am using it through google drive.

This is the link of the Colab notebook : [https://colab.research.google.com/drive/1o4kPVNZHEmT2BlqKeVzY5rNyaojAj1At?usp=sharing](https://colab.research.google.com/drive/1o4kPVNZHEmT2BlqKeVzY5rNyaojAj1At?usp=sharing)

Please go through this and tell me what I am missing here ?  
Thanks in advance !!
