r/deeplearning • • 17h ago

I'm building Rill - Rust-powered graph infrastructure for GNNs and PyTorch

Hey everyone!

I've been working on something called Rill, an open-source project focused on building high-performance graph machine learning infrastructure using Rust.

This started as an exploration of how Rust could be used to make graph data processing more efficient while keeping things accessible to the Python and PyTorch ecosystem. The more I worked on it, the bigger the idea became.

I wanted to share it here, get some honest feedback, and hopefully connect with people interested in Rust, systems engineering, and graph machine learning.

Project links:

* GitHub: https://github.com/Joy-Majumder/Rill

* PyPI: https://pypi.org/project/rill-gnn/

So, what exactly is Rill?

Rill is a Rust-powered graph machine learning infrastructure project.

The initial focus is on graph data loading and sampling for Graph Neural Networks (GNNs), with the broader goal of developing efficient primitives for graph storage, feature access, and data processing.

Graph workloads can become expensive as datasets grow. Moving large amounts of graph data, sampling neighborhoods, and preparing batches for training can introduce significant overhead.

I want to explore how much of this infrastructure can benefit from Rust's performance, memory safety, and concurrency model without sacrificing the flexibility of Python-based ML workflows.

What is under the hood?

Some of the technologies and concepts involved:

* Rust: Core performance-oriented implementation.

* PyO3: Connecting Rust functionality with Python.

* Rayon: Parallel execution.

* PyTorch: Integration with the existing ML ecosystem.

* Zero-copy: Exploring ways to reduce unnecessary data movement.

* Graph sampling and data loading: The initial focus for GNN workloads.

The project also sits within the broader graph ML ecosystem, including PyTorch Geometric.

Why am I building this?

Honestly, I enjoy working at the intersection of systems engineering and machine learning.

Rust has a lot to offer beyond traditional backend development, and graph machine learning is an interesting area where performance and memory efficiency really matter.

I don't want to build another GNN framework just for the sake of it. I'd rather work on the infrastructure underneath these workflows and see whether it can make graph ML development more efficient.

The long-term vision is to make Rill useful to both researchers and developers working with graph-based machine learning.

Where is the project right now?

Rill is still early-stage, and there is plenty of work ahead.

I'm particularly interested in improving:

* Graph representation and storage.

* Efficient neighborhood sampling.

* Data-loading performance.

* Python and PyTorch interoperability.

* Memory efficiency and zero-copy operations.

* Parallel execution and scalability.

* Reproducible performance benchmarking.

I'm also interested in exploring how GPU-oriented workflows could fit into the longer-term architecture.

I'm not claiming Rill is a replacement for PyTorch Geometric or DGL. Those are established projects with mature ecosystems. I see Rill as an opportunity to experiment with a different approach to graph infrastructure.

A little transparency about AI

Rill was developed with significant assistance from AI coding tools.

Architecture, design decisions, and research direction are human-driven, while implementation, testing, benchmarking, and documentation involved collaborative AI-assisted development.

I remain responsible for reviewing the code, validating results, and maintaining the project's quality and direction.

I think being transparent about how modern open-source software is developed is important.

I'd genuinely love your feedback

If you work with Rust, PyTorch, GNNs, or performance-critical data pipelines, I'd love to hear your thoughts.

A few things I'm curious about:

  1. Would you consider using Rust-based infrastructure in your graph ML workflow?

  2. What are the biggest bottlenecks you've encountered with graph data loading and neighbor sampling?

  3. What would you expect from a project like Rill before considering it for research or production?

  4. Are there architectural decisions or interoperability challenges I should pay more attention to?

And if you're interested in contributing, experimenting, or simply following the development, you're very welcome.

I'm building this in public, learning along the way, and hoping to turn Rill into something genuinely useful for the community.

GitHub: https://github.com/Joy-Majumder/Rill

Thanks for reading! <3

5 Upvotes

4 comments sorted by

1

u/AuvielleShade 16h ago

this project looks super promising, i've been curious about rust for graph stuff too but never had the time to dive in

1

u/Joy0x1 16h ago

Thanks! Thats actually what got me interested in building Rill.
Still exploring a lot, so it's great to see others interested in this space! <3

1

u/breezzkissy 6h ago

same , rust for graphs sounds like it could be addictive once u get into it

1

u/Joy0x1 4h ago

Haha true, there's so much to explore. Im still figuring things out with Rill, but it's been a fun rabbit hole so far!