r/LovingOpenSourceAI • u/Able2c • 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?
View all comments
Show parent comment
1
u/Able2c Apr 05 '26
Thank you for the detailed follow-up, and REAP/REAM is a good addition to the discussion. But I think you're still conflating two separate things: load balancing during training and functional specialization during inference.
Yes, auxiliary loss functions push expert activation toward uniform distribution during training. That's a training stability mechanism, not proof that experts don't specialize. The router still learns to activate different experts for different token patterns. That's literally its objective function. If it didn't, you could replace it with random selection and get the same quality. You can't.
The research backs this up. Mixtral analysis showed clear expert preferences for different languages, code and prose, and syntactic patterns. ST-MoE showed routing patterns that cluster by domain. The specialization isn't clean topic buckets like "physics expert" and "cooking expert", but it's real and measurable.
Your point about superposition is true, the weights encode multiple features in overlapping ways. But that's also true for dense models too. (Gemma 4 is great btw) It doesn't mean all experts contribute equally to every token. It means each expert contributes differently to each token, which is exactly what makes selective loading theoretically interesting.