r/deeplearning • u/Joy0x1 • 23h ago
Rill: Rust-powered neighbor sampling for PyTorch GNNs - a quick demo
Hey everyone!
I've been working on an open-source project called Rill, and I put together a short video demonstrating how it works.
Rill is a Rust-powered library focused on graph data loading and neighbor sampling for Graph Neural Networks, with Python and PyTorch integration.
The motivation behind the project was to explore whether Rust could make graph ML data-loading workloads more efficient without sacrificing the familiar Python workflow.
Some things I've been working on:
- Rust-powered core implementation
- Python integration using PyO3
- Parallel execution with Rayon
- Integration with the PyTorch ecosystem
- Benchmarks against PyG's NeighborLoader, including batch loading, end-to-end training, and memory usage
I've published the package on PyPI as well.
Links:
I've included a short demo video to show the workflow.
I'd appreciate feedback, especially from people experienced with Rust, PyTorch Geometric, or GNN infrastructure.
I'm particularly interested in feedback on the benchmarking methodology, API design, and potential improvements.
1
u/Great-Use-3149 20h ago
slop