Kumo Engine
Kumo Engine is an accelerator for context generation over structured data. It stores your tables and their relationships as a graph on disk and, for each entity, samples the related records up to its prediction time. Describe what to predict in one query, and Kumo Engine uses that context to train and run predictive models directly on your relational data.
Kumo Engine is part of NVIDIA Kumo, a family of open models and accelerated libraries for predictive AI on tabular, relational, and time-series data. For an overview of its capabilities and design, see the Kumo Engine repository.
Installation
pip install kumo-engine
| Requirement | Details |
|---|---|
| Python | CPython 3.11 or later |
| Operating system | Linux x86-64 or ARM64 with glibc 2.34 or later, macOS 14 or later on Apple silicon, or Windows through WSL2 (x86-64) |
| CPU | AES and SSE2 instructions on x86-64, or AES and NEON on ARM64 |
| GPU | An NVIDIA GPU for production workloads. The quickstart and other small datasets also run on a CPU or an Apple silicon GPU. |
| Storage | A local NVMe SSD for production workloads. Network-attached volumes, such as Amazon EBS, make sampling much slower. |
The base package reads and writes local CSV and Parquet files. Optional extras add connectors and additional features; combine them as needed, for example pip install "kumo-engine[snowflake,text]".
| Extra | Adds |
|---|---|
s3 |
Amazon S3 |
gcs |
Google Cloud Storage |
adls |
Azure Data Lake Storage Gen2 |
bigquery |
BigQuery |
snowflake |
Snowflake, including Snowflake notebooks |
databricks |
Databricks, including Databricks notebooks |
text |
Encoding for free-text columns, such as descriptions or reviews, with GloVe 6B 50d word vectors |
mlflow |
MLflow run tracking and model registry |
sagemaker |
SageMaker managed MLflow |
Kumo Engine trains on an NVIDIA GPU or an Apple silicon GPU when one is available, and on the CPU otherwise. To choose the device, pass accelerator="gpu", "mps", or "cpu" to Trainer.
Recommendation tasks use Faiss for retrieval. On Linux x86-64 and macOS, pip install kumo-engine installs Faiss as a dependency. On Linux ARM64, Faiss is optional, and other tasks run without it. To run recommendation tasks there, install CPU Faiss with pip install "kumo-engine[cpu]" and pass accelerator="cpu" to Trainer, or follow the DGX Spark guide to build GPU Faiss. The guide also covers CUDA training on ARM64.
On NVIDIA GPUs, the optional torch-scatter package speeds up some training workloads. Install the build for your PyTorch and CUDA versions as described in PyG's installation guide.
Quickstart
This example trains a model that predicts which users will place an order in the next 30 days, using a sample dataset of users and orders that ships with the package.
from kumo.engine import (Edge, FileConnector, Graph, PredictiveQuery, Table,
Trainer, datasets)
files = FileConnector(root_dir=datasets.shop())
users = Table.from_source_table(files["users"], primary_key="user_id")
orders = Table.from_source_table(files["orders"], primary_key="order_id",
time_column="order_time")
graph = Graph(
tables={"users": users, "orders": orders},
edges=[Edge(src_table="orders", fkey="user_id", dst_table="users")],
)
snapshot = graph.snapshot()
pquery = PredictiveQuery(
graph, "PREDICT COUNT(orders.*, 0, 30, days) > 0 FOR EACH users.user_id")
trainer = Trainer(pquery.suggest_model_plan(snapshot))
training_result = trainer.fit(pquery.generate_training_table(snapshot),
snapshot=snapshot)
result = trainer.predict(pquery.generate_prediction_table(snapshot),
snapshot=snapshot, binary_classification_threshold=0.5)
print(result.frame.head())
When training completes, the example prints the first five predictions:
ENTITY TARGET_PRED False_PROB True_PROB
0 625 True 0.118336 0.881664
1 631 True 0.110448 0.889552
2 505 True 0.172911 0.827089
3 519 False 0.939077 0.060923
4 752 False 0.939077 0.060923
result.frame has one row per user, with the predicted label TARGET_PRED and the class probabilities False_PROB and True_PROB. The prediction time defaults to the latest order_time in the snapshot, so predictions cover the 30 days after it. Exact values can differ between runs. To use your own data, point FileConnector at a directory of CSV or Parquet files.
graph.snapshot() writes the graph to a scratch directory, ~/.cache/kumo-engine by default, which also holds training runs, model bundles, and predictions. If your home directory is on a network volume, such as an Amazon EBS boot volume, call kumo.engine.configure(scratch_dir=...) before taking the snapshot to use a directory on a local NVMe SSD instead.
Next Steps
Use a Coding Agent
The bundled agent skill teaches your coding agent the Kumo Engine API, so it can build, train, and run models on your data. To install it for the coding agents on your machine, run:
python -m kumo.engine.skills
In a Databricks notebook, call kumo.engine.install_skills() to install it for Genie Code. For Cortex Code in a Snowflake notebook, call kumo.engine.install_skills("coco", scope="workspace", workspace="<workspace>"). See Get Started with Agents.
Visualize Table Relationships
Before training, check your tables, keys, and relationships in an interactive notebook diagram, or export the diagram as SVG, PDF, or Markdown:
graph.visualize()
_ = graph.visualize("graph.pdf", show_cols=True)
See Visualize Table Relationships.
Explain a Trained Model
training_result.explanations reads the column importance scores and other diagnostics recorded during training:
explanations = training_result.explanations
if explanations.availability["gradient"].available:
print(explanations.gradient_scores().to_pandas())
See the training explanations guide for plots, column cohorts, and sampled training context.
Run in Production
For run tracking, model versioning, and drift monitoring with MLflow, Databricks, SageMaker, or Snowflake, see the MLOps guide.
Documentation
- Kumo Engine documentation: prerequisites, setup guides, and end-to-end workflows.
- User Code Guide: connect data, define tables and graphs, train, and predict.
- Predictive Query Examples: common prediction tasks written as predictive queries.
- Release notes: changes, compatibility, and known issues for each release.
Support
Report bugs and request features in GitHub Issues. To report a security vulnerability, follow SECURITY.md instead of opening an issue.
License
Kumo Engine is licensed under the Apache License 2.0. The wheel also bundles third-party components under their own licenses, listed in THIRD-PARTY.txt.
Metadata
Release files for kumo-engine 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ x86-64 | Details for kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_x86_64.whl |
| kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ ARM64 | Details for kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_aarch64.whl |
| kumo_engine-1.1.0-cp311-abi3-macosx_14_0_arm64.whl | CPython 3.11 | abi3 | macOS 14.0+ ARM64 | Details for kumo_engine-1.1.0-cp311-abi3-macosx_14_0_arm64.whl |
Total release size: 111.6 MB
Release files / kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_x86_64.whl
| Download URL | kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 38.3 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
470e38a040414441d9520585dfe8b549da411cadffe1a7bbe5998275e4b46c67
|
|
BLAKE2b-256 checksum How to use checksums |
67e1a973bb82ac8ac21b2b4c068d1d8c693de3f353bec8336b09b222e94bbb3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_aarch64.whl
| Download URL | kumo_engine-1.1.0-cp311-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 36.2 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0dc207476cca8bf3746e93f24ef5e57e09b83631f3dbe5ae05dda6a0886842df
|
|
BLAKE2b-256 checksum How to use checksums |
6bbd5112944ebf88306278787bf0a28b6ab5b252d46c7a35d191c220b369628f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / kumo_engine-1.1.0-cp311-abi3-macosx_14_0_arm64.whl
| Download URL | kumo_engine-1.1.0-cp311-abi3-macosx_14_0_arm64.whl |
|---|---|
| Size | 37.2 MB |
| Tags | CPython 3.11 abi3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f0ede72776965cf53bc8d3f536e5e953951e85f987d65560f1ffda281e79226c
|
|
BLAKE2b-256 checksum How to use checksums |
eaf6fdcb042bf0380ee1494df3abe6b5a924e2175942afc3f8f5e5fff4535a04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for kumo-engine 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.