# Training RAM memory issues

**URL:** <https://discuss.huggingface.co/t/training-ram-memory-issues/29300>\
**Category:** Beginners\
**Created:** [January 10, 2023, 1:16pm UTC](https://discuss.huggingface.co/t/training-ram-memory-issues/29300 "2023-01-10T13:16:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamil](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kamil](https://discuss.huggingface.co/u/kamil)\
**Post date:** [January 10, 2023, 1:16pm UTC](https://discuss.huggingface.co/t/training-ram-memory-issues/29300/1 "2023-01-10T13:16:03Z")

</div>

Hey!

I’m trying to finetune the W2v2 model on my own dataset (100K audio) merged with the French Common Voice dataset (total of 89Go) but the preprocess is killed after 44%. I tried to remove the lengthiest audio and it works (\<=3s) but what I am not understanding is that I have 128G of RAM it should be enough no?

Can I load data on the fly while batches loading? instead of loading all the dataset before launching the training phase?

Thank’s for your reply
