Offloading's Latency Price: The Speed-VRAM Balance

Layer-wise offloading, while crucial for VRAM management, introduces inference latency due to slower CPU-to-GPU data transfers over PCIe, which are orders of magnitude slower than on-device memory access. This performance trade-off is often acceptable for batch-oriented or latency-tolerant applications, with efficiency dependent on overlapping computation with data prefetching.

Sources

Open the full topic