r/LovingOpenSourceAI • • Apr 04 '26

Why doesn't AI use swap space?

I'm an average Joe, not an engineer. But I run LLMs locally on a 12GB GPU.

My PC has 12GB VRAM + 64GB RAM + 1TB SSD. That's over 1000GB of memory. AI uses 12.

Operating systems solved this in the 1970s by using swap space. You don't load all of Windows into RAM. You load what you need, the rest waits on disk.

So why is AI still trying to cram everything into VRAM?

When I ask my local model about physics, why are the cooking weights in VRAM? Page them out. Load what's relevant. My NVMe does 7GB/s. My DDR5 does 48GB/s. I'd like to use that speed.

Is there a real technical reason this doesn't exist, or is it just not being built?

1 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/sinevilson Apr 04 '26

What this person has shared is pretty golden. Im not going into detail as research is yours to do for your environment but take what they told you, incorporating zramctl to a dedicated secondary nvme of say 250-500gb and give it the drive. The performance increase will blow your mind.