Installation Guide for Kumo Relational
Before you use the SDK with Kumo Relational, obtain a reachable NIM endpoint serving kumo-relational. The SDK sends prediction requests to that deployment. It does not deploy or run Kumo Relational itself.
Prerequisites
Before you start, complete the following prerequisites:
- Install CPython 3.10 to 3.14 for the client, the language, the wire types, and the connectors.
CPython 3.10 to 3.13 only for the relational engine:
pip install "structured-data-models-client[relational]"does not resolve on 3.14. - Obtain the endpoint URL of a running NIM serving
kumo-relational. - Confirm network access to the NIM endpoint.
- Obtain an API key when an authenticating gateway requires one.
Choose a NIM Endpoint
You can reach a Kumo Relational model in the following ways.
Direct NVIDIA API Catalog access. Find the model in the NVIDIA API catalog and call it over NIM REST API with an Authorization: Bearer key.
SDK access. Point SDMClient at a NIM that accepts X-API-Key. That NIM is either the container you run yourself on your own GPU host, or a gateway in front of the catalog that translates X-API-Key to Authorization: Bearer. Use the container when the materialized prediction context must remain in your environment.
SDMClient always sends api_key as an X-API-Key header. NVIDIA API Catalog endpoints require Authorization: Bearer instead, so SDMClient cannot authenticate to a catalog endpoint directly.
Amazon SageMaker. Follow Deploy on Amazon SageMaker to deploy this model and invoke it with boto3.
The SDK HTTP connection instructions below do not apply to SageMaker endpoints.
A model served on Databricks Model Serving. You reach it by endpoint name through the Databricks SDK. Refer to Connect From Databricks.
A direct HTTP connection to a self-hosted NIM or compatible gateway uses its URL and, when authenticating, an API key.
Databricks Model Serving uses the endpoint name and a WorkspaceClient. Refer to Connect From Databricks.
The SageMaker deployment guide covers SageMaker connection and AWS authentication.
Installation Methods
The SDK is a set of Python packages that you install with pip.
The installation commands below install the required Python runtime dependencies automatically. You do not need to install the dependencies individually.
The base structured-data-models-client package, the language, and the connectors are pure Python. structured-data-models-relational-engine performs graph building, native sampling, and query resolution for Kumo Relational. Only the relational engine is native. Its published wheels target manylinux_2_28 for x86-64 and aarch64, so kumo-tabular runs anywhere and kumo-relational needs that Linux.
Install the SDK with the Kumo Relational driver:
What you install is not what you import. The five distributions are structured-data-models-client, -api, -pql, -connectors, and -relational-engine. The modules they install are sdm_client, sdm_api, predictive_query, sdm_connectors, and sdm_relational_engine. Only the first of each pair is ever typed at a prompt.
structured-data-models-client, -api, -pql, -connectors, and -relational-engine are five distributions released together on one version. Keep them aligned when managing packages explicitly.
Installing on Databricks has its own pitfalls around NumPy pinning, shell-quoted version bounds, and which Postgres driver to use for Lakebase. Refer to the installation notes in the client’s own repository if you install into a Databricks notebook.
Package Extras
The following table lists the installation command for each workflow. If your workflow reads directly from a database or object store, add the appropriate connector:
The base-only installation provides the HTTP client, the Predictive Query Language, and the tabular model, without the native relational engine. Install the [relational] extra before building a multi-table schema, resolving PQL against one, or running Kumo Relational predictions. You can install connector extras independently when a workflow only needs to read source data.
The all extra includes relational and every connector (sqlite, duckdb, postgres, lakebase, snowflake, databricks, s3), but not databricks-serving, which reaches a model rather than a data backend.
Additional Setup
After installation, connect the client to your deployment.
Connect to the NIM
Create one SDMClient for each NIM endpoint. The client owns its HTTP connection, so close it after use. A closed client cannot be reused. Construct a new client for later requests.
The examples in this documentation use with SDMClient(...) so that each code example is self-contained and closes its connection automatically. In an application or notebook that makes multiple requests, create one client, reuse it, and call client.close() when the workflow is complete.
The following example creates a client, checks that the endpoint is ready, and lists its models:
If an authenticating gateway fronts the NIM and accepts X-API-Key, pass its key with the api_key parameter:
You can also configure connection behavior with the verify_ssl, timeout, and max_retries parameters.
SDMClient does not read its URL or API key from the environment. Pass both values explicitly. Application code can read its own environment configuration before constructing the client:
The following example shows the lifecycle of a reusable client:
Construct a new client instead of reusing a closed one.
The SDK refuses to send an API key to a non-local endpoint that uses plaintext HTTP. Use HTTPS for authenticated remote deployments.
Connect From Databricks
You reach a model deployed to Databricks Model Serving by its endpoint name, not a URL. In a notebook, the call authenticates as the notebook, with no URL or key to supply.
This requires pip install "structured-data-models-client[relational,databricks-serving]". A serving endpoint answers one request at a time: predict() works and sends the context with every call, but fit() is refused there because there is no session to pin a context in. Pass workspace_client= to authenticate as a specific identity outside a notebook.
Installation Verification
Run the following example to compare the endpoint’s model listing with the capabilities this client declares:
models() is the endpoint’s own answer, read from /v1/models.
capabilities(model) describes what this client can build and send. It needs no live connection and is not the endpoint’s answer.
A deployment can serve fewer task kinds or output fields than the client declares. Refer to Prediction Types and Prediction Explainability.
If the readiness check fails, verify the endpoint URL, network route, TLS certificate, and gateway credentials before building a schema.
Next Steps
Choose a guide for your next task: