QuestionQ50

VerifiedCore Machine Learning and AI Knowledge

Suppose you are training an LLM with billions of parameters, and the training dataset is considerably larger than the RAM available on your system. Which of the following is an alternative?

Explanation

A memory-mapped file enables file-backed dataset access without fully loading the dataset into RAM. Required portions can be accessed as needed while the operating system manages paging. Python’s official mmap documentation describes mapped files as objects that support file-like access and seeking through the file.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!