Menu

#Accumulation

8 posts

Feed·
8 of 8 posts
Gradient Accumulation OOM: Hidden Memory Spike Explained
📰
0Read More

Gradient Accumulation OOM: Hidden Memory Spike Explained

DEV Community: pytorch·TildAlice·6 months ago
#rktVxrIn
#dev#code#gradient#accumulation#batch

You Set batch_size=1, Enabled Gradient Accumulation, and It Still Crashes Gradient accumulation is supposed to be the silver bullet for training large models on small GPUs.…

15s
Gradient Accumulation vs Large Batch: Memory & Cost Test
📰
0Read More

Gradient Accumulation vs Large Batch: Memory & Cost Test

DEV Community: pytorch·TildAlice·6 months ago
#YylZIFrw
#dev#batch#gradient#accumulation#size

Why This Matters: The Memory Trap Nobody Warns You About Gradient accumulation promises to let you train with "effective batch size 128" on a GPU that can barely fit batch size 8. Sounds perfect, right?…

15s