NVIDIA Open-Sources Kumo Engine to Train GNNs on Relational Databases
NVIDIA has open-sourced NVIDIA Kumo Engine, an engine for training predictive models directly on relational data. Kumo Engine is an Apache 2.0 accelerator that stores linked tables as an on-disk graph. For each entity, it samples related records up to the prediction time. Its Rust core, DiskGraph, reads those neighborhoods from local NVMe SSDs instead of RAM. The current PyPI release is kumo-engine 1.2.0.
TL;DR
Size: Tested on a 50B-node commerce graph with 175.5B edges (reverse edges included). Its 2.6 TiB index exceeded the machine’s 1 TiB RAM.
Runs on: Linux with local NVMe and an NVIDIA GPU for production. Small datasets also run on CPU or Apple silicon. Python 3.11+.
Performance: 2.4x to 8.9x faster warm neighborhood retrieval than prepared DuckDB 2.0.0 at 2 to 4 hops.
Best: 2-hop retrieval at 5.3 s per million seeds vs 46.9 s for prepared DuckDB.
Worst: 63.26% test accuracy vs 63.93% for in-memory PyG, 0.67 points lower.
What problem does Kumo Engine solve?
Most enterprise data lives in connected tables. Customers link to orders, and orders link to products.
Classic ML pipelines flatten those tables first. Engineers write joins and aggregates like “orders in the last 30 days.” The model then sees only that summary.
Graph learning keeps the structure. Each row becomes a node and each foreign key becomes an edge. The hard part is scale. One prediction needs a record’s whole neighborhood, across several hops. That lookup must also be time-correct, so no future data leaks into training.
How does DiskGraph work?
Kumo Engine converts tables into a graph once, at ingest. The README lists 5 design choices:
Links resolved at ingest: Minimal perfect hashing maps each primary key to a compact integer ID. Following a link becomes a lookup, not a join.
Bounded context: Each hop samples a capped number of related records.
Newest-first storage: Links are stored per relationship, newest first. A binary search finds the prediction time.
Ordered reads: Large batches are sorted by disk position, so reads move through files in order.
Larger than memory: Graph files are read-only and memory-mapped. The OS caches hot pages and reads the rest on demand.
How fast is Kumo Engine? Benchmarks
All figures below are self-reported by NVIDIA on its benchmark page.
Context generation. The test used a synthetic commerce graph with 50B nodes and 175.5B edges. It ran on an AWS i4i.32xlarge with 128 vCPUs, 1 TiB RAM and striped NVMe. Warm retrieval, in seconds per million seeds:
Hops
Kumo Engine
Prepared DuckDB 2.0.0
DuckDB on Parquet
2
5.3 s
46.9 s
103.4 s
3
19.9 s
63.6 s
148.4 s
4
38.9 s
94.9 s
208.5 s
The reference results in the repo match these numbers. An earlier run against DuckDB 1.5.6 showed a wider gap. Kumo took 5, 19 and 39 seconds. DuckDB took 4.0, 5.3 and 6.5 minutes. NVIDIA says DuckDB 2.0.0 was 2x to 8x faster than 1.5.6.
Training. On a 111M-node citation graph, Kumo Engine trained 15 epochs in 41 min 14 s. A matched in-memory PyG setup took 64 min 13 s. Both ran on 1 A10G GPU. Training memory was 17 to 37 GiB for Kumo versus about 166 GiB for PyG. Test accuracy was 63.26% versus 63.93%.
End to end. On the 50B dataset, raw Parquet to trained model took 5.2 hours. A hand-built DuckDB feature pipeline took 9.9 hours. NVIDIA notes the model families differ, so this is a workflow comparison.
How do you use Kumo Engine?
The workflow is Python. You define tables, keys and time columns, then link them into a graph. You write the target as a predictive query:
PREDICT COUNT(orders.*, 0, 30, days) > 0 FOR EACH users.user_id
The engine then builds labeled training tables, samples context, trains a built-in temporal GNN and runs batch prediction. It handles classification, regression, forecasting and recommendation tasks.
The base package reads local CSV and Parquet. Optional extras add S3, GCS, Azure Data Lake, BigQuery, Snowflake and Databricks. It also integrates with MLflow and SageMaker. A bundled agent skill teaches coding agents the API. Install it with python -m kumo.engine.skills.
Comparison: Kumo Engine vs PyG, GraphStorm and DuckDB
Feature
Kumo Engine
PyG
GraphStorm
DuckDB
Type
Disk-backed sampler + built-in temporal GNN
GNN library for PyTorch
Graph ML framework (AWS)
In-process SQL database
License
Apache 2.0
MIT
Apache 2.0
MIT
Graph storage in NVIDIA tests
Memory-mapped DiskGraph on NVMe
In RAM
In RAM
Native tables + sorted adjacency tables
50B graph, 2-hop warm (s per 1M seeds)
5.3 s
Not tested
Not tested
46.9 s (prepared, 2.0.0)
111M-node graph, 15 epochs
41 min 14 s (1 A10G)
64 min 13 s (1 A10G)
14 min on 4 x g5.48xlarge; single node failed
Not applicable
Test accuracy (citation graph)
63.26%
63.93%
Not disclosed
Not applicable
Raw data to trained model, 50B
5.2 h
Not tested
Not tested
9.9 h (feature pipeline, 1.5.5)
Key Takeaways
Kumo Engine turns linked tables into an on-disk graph for GNN training.
Rust DiskGraph samples time-correct neighborhoods straight from NVMe.
2-hop retrieval: 5.3 s vs 46.9 s for prepared DuckDB.
Cuts training time 36% vs PyG, at 0.67 points lower accuracy.
Apache 2.0, pip install kumo-engine, with agent skills included.
Check out the GitHub repo, documentation and benchmarks. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
The post NVIDIA Open-Sources Kumo Engine to Train GNNs on Relational Databases appeared first on MarkTechPost.