rising3월 15일· 2 sources
How I bypassed PyTorch OOM errors with a Zero-Copy C++ Graph Engine
Zero-Copy C++ 그래프 엔진으로 PyTorch OOM 오류를 우회한 방법
Why it matters
The author built GraphZero, a custom C++ data engine that uses mmap and zero-copy techniques to bypass RAM limitations when training Graph Neural Networks on massive datasets like Papers100M. It compiles data into optimized binary formats (.gl/.gd), memory-maps them from SSD, and hands raw pointers to PyTorch via nanobind, enabling training on 30GB+ data with zero RAM allocation. OpenMP multi-threading and GIL release keep disk I/O, CPU sampling, and GPU computation running in parallel.
2
Sources
+0
24h
—
Growth
185d
Active
c++gnngraph neural networksgraphzeromemory-mappingmmapnanobindpytorchpytorch geometriczero-copy