The problem
Meta AI and BigScience recently open-sourced very large language models which won't fit into memory (RAM or GPU) of most consumer hardware. [1]
What PyTorch 1.9 introduced
PyTorch 1.9 introduced a new kind of device called the meta device. [2]
What it allows
As long as you are on the meta device, you can thus create arbitrarily large tensors without having to worry about CPU (or GPU) RAM. [3]
Sources
- The Hugging Face source says: Meta AI and BigScience recently open-sourced very large language models which won't fit into memory (RAM or GPU) of most consumer hardware. How Accelerate runs very large models thanks to PyTorch
- The Hugging Face source says: PyTorch 1.9 introduced a new kind of device called the meta device. How Accelerate runs very large models thanks to PyTorch
- The Hugging Face source says: As long as you are on the meta device, you can thus create arbitrarily large tensors without having to worry about CPU (or GPU) RAM. How Accelerate runs very large models thanks to PyTorch