This release is a pre-release and may not be stable for production use.
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 10 / Windows Server 2016 or later on x86-64 CPU. |
| 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. The Apple silicon GPU needs macOS 15 or later. On macOS 14, pass accelerator="cpu" to Trainer, Trainer.load and Trainer.load_from_connector. |
| 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 |
| --- | --- |
| cpu | CPU Faiss for recommendation retrieval on Linux ARM64 |
| 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 |
| pytorch | (Experimental) kumo.pytorch, for training your own PyTorch models on your tables |
Kumo Engine defaults to CPU for training and model loading on native Windows; use WSL2 for NVIDIA GPU workloads. On other platforms it selects an NVIDIA GPU or an Apple silicon GPU when available, and CPU otherwise. To choose the device explicitly, pass accelerator="gpu", "mps", or "cpu" to Trainer.
On Windows, install the latest Microsoft Visual C++ v14 x64 Redistributable and enable Win32 long paths for paths longer than 260 characters.
Recommendation tasks use Faiss for retrieval. The base install includes GPU Faiss on Linux x86-64 and CPU Faiss on macOS and Windows. On Linux ARM64, install pip install "kumo-engine[cpu]" and choose accelerator="cpu" for CPU retrieval. For GPU Faiss on Linux ARM64, follow the DGX Spark guide, which 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 snapshotting to use a directory on a local NVMe SSD instead. Each snapshot call uses the current scratch root, including calls on an existing Graph.
ID-only monitoring lookups and GraphSnapshot.load_from_connector() also use
the current scratch root. After changing roots, pass existing handles as
snapshot= and training_snapshot= to score_drift() to read their original
local statistics, or provide an MLOps root holding their exports. Loading an
export imports it into the current root; graph= compares its schema and
sources, not its destination root. Kumo manages local snapshot storage;
export locations and logical snapshot IDs remain stable.
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 and batch prediction explanations guide for plots, column cohorts, sampled graphs, and opt-in prediction explanations.
Train Your Own PyTorch Model (Experimental)
kumo.pytorch builds point-in-time-correct batches from your tables, using the same DiskGraph engine, for a PyTorch model you write yourself. Install it with pip install "kumo-engine[pytorch]". Its API can change in any release without deprecation warnings. See the kumo-pytorch README.
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.2.0rc0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| kumo_engine-1.2.0rc0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for kumo_engine-1.2.0rc0-cp311-abi3-win_amd64.whl |
| kumo_engine-1.2.0rc0-cp311-abi3-manylinux_2_34_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ x86-64 | Details for kumo_engine-1.2.0rc0-cp311-abi3-manylinux_2_34_x86_64.whl |
| kumo_engine-1.2.0rc0-cp311-abi3-manylinux_2_34_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ ARM64 | Details for kumo_engine-1.2.0rc0-cp311-abi3-manylinux_2_34_aarch64.whl |
| kumo_engine-1.2.0rc0-cp311-abi3-macosx_14_0_arm64.whl | CPython 3.11 | abi3 | macOS 14.0+ ARM64 | Details for kumo_engine-1.2.0rc0-cp311-abi3-macosx_14_0_arm64.whl |
Total release size: 153.2 MB
Release files / kumo_engine-1.2.0rc0-cp311-abi3-win_amd64.whl
| Download URL | kumo_engine-1.2.0rc0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 36.1 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c48506413dd37fbf9506d717b42b87453740deae7c4184a7d24bcca2c21b2fc9
|
|
BLAKE2b-256 checksum How to use checksums |
1313625f73069a6c02ce7a46889ead885a7cf5d80761ef0b8bed1db1c0b6d328
|
| 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.2.0rc0-cp311-abi3-manylinux_2_34_x86_64.whl
| Download URL | kumo_engine-1.2.0rc0-cp311-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 40.2 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ad8f8f0caa36851e641506710363aa9b1cbc4d6ae06955a678aa779e7e73c3ce
|
|
BLAKE2b-256 checksum How to use checksums |
f3b85483080a72f7c6776157359b586cba7f574b2ce1d93250d631e97bcfa028
|
| 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.2.0rc0-cp311-abi3-manylinux_2_34_aarch64.whl
| Download URL | kumo_engine-1.2.0rc0-cp311-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 37.9 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
1bf3e64e75053e1c37e3885160200ffd5c6798138573f7d2dd8ff80df1dd08ed
|
|
BLAKE2b-256 checksum How to use checksums |
ada799047888802a118cbff3317d40c838c10c19064310c60fb88a55d21ad40b
|
| 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.2.0rc0-cp311-abi3-macosx_14_0_arm64.whl
| Download URL | kumo_engine-1.2.0rc0-cp311-abi3-macosx_14_0_arm64.whl |
|---|---|
| Size | 39.0 MB |
| Tags | CPython 3.11 abi3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
be87a4b29e9709a02d13cea9e3e706d3af3dd66126afea0768bcdc942f998587
|
|
BLAKE2b-256 checksum How to use checksums |
8ddcd8362938f87c244e18521f073eb31f4036aea3fc318169b44ff2edd77450
|
| 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.2.0rc0
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.