RAM vs. VRAM: Which Matters for AI Models?