# Colab session crashing after using all available RAM

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcolab-session-crashing-after-using-all-available-ram%2F3224%3E%5C
**Category:** Beginners\
**Created:** [January 16, 2021, 6:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcolab-session-crashing-after-using-all-available-ram%2F3224 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSathsaraRasantha)%5C
**Post date:** [January 16, 2021, 6:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcolab-session-crashing-after-using-all-available-ram%2F3224%2F1 "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 !!
