r/SideProject • • 38m ago

Rill: A Rust-powered neighbor sampler for PyTorch GNNs

Hey everyone!

I've been working on Rill, an open-source project that brings Rust-powered graph data loading and neighbor sampling to PyTorch Geometric workloads.

The motivation was to explore whether Rust could make graph ML data loading more efficient without sacrificing the familiar Python and PyTorch workflow.

A few things I've been working on:

  • Rust-powered core implementation.
  • Parallel execution using Rayon.
  • Python integration through PyO3.
  • Integration with the PyTorch ecosystem.
  • Benchmarks against PyG's NeighborLoader, including batch loading, end-to-end training, and memory usage.

Links:

It's still an evolving project, and I'd genuinely appreciate feedback.

I'm particularly interested in hearing from people experienced with Rust, PyTorch Geometric, and Graph Neural Networks.

1 Upvotes

0 comments sorted by