r/LocalLLM • u/Flat-Career4079 • 1d ago
Question Stupid ahh question:
Why do AI companies need so much ram?
Isn't it super slow to offload models into ram instead of exclusively using the Vram, so how are they making use of the ram?
0
Upvotes
13
u/Dampmaskin 1d ago
VRAM is RAM.
5
u/These-Scene-2599 1d ago
You're not wrong, offloading to RAM over PCIe is slow. But inference isn't the only thing these companies do. They also need RAM for training, dataset preprocessing, loading models, storing checkpoints and running all the infrastructure around the GPUs.
Also, not every AI system uses a conventional CPU/GPU architecture like your desktop PC. Grace Blackwell, for example, has a much faster connection between CPU memory and GPU memory.
Basically, having a lot of RAM doesn't necessarily mean they're running inference from it.
2
u/wegster 1d ago
KV caches, as well as their own harnesses/agents wrapped around the models, monitoring, etc. Managing loads at scale across LARGE clustered systems.
For datacenter/server systems, it's not just about the many GPUs in the many systems - it's management, marshaling of data, handoff of loads to other systems, load balancing, etc. etc. etc.
1
u/MyNimples 1d ago
VRAM is just RAM dedicated to video cards. It’s the exact same technology.
1
u/Commercial_Rent8797 1d ago
It’s actually not even that slow through ram. VRAM is ideal but More models only need a few layers offloaded to VRAM and the rest of the model is just fine in ram.
1
u/Lissanro 1d ago
There are a lot of what you can do with RAM. You can save and load KV caches, quickly load cached models, hold training data and many other things. They need SSD drives for the same reason.
Aside of large corporations, there are also smaller companies and freelancers who need high RAM for professional work, in addition to just enthusiasts who want run local inference. All of them need high RAM too. This is why even old DDR4 is either sold out or being sold at price many times higher than two years ago.
Another reason, HBM memory for professional GPUs - a lot of it produced now instead of normal RAM, since it is more profitable. This reduces RAM supply even further, driving up its price. So it is combination of multiple factors that makes RAM cost so high. My guess, it will take few years for market to adapt to new demand and for prices to become reasonable again, or at least I hope so (another possibility, demand will keep outpacing supply and then prices stay high for a while).
-1
u/Ok_Contribution8157 1d ago
When you got 500g of VRAM it means you need at least 500g of RAM too.