SDM Client Library Documentation
The Structured Data Models Client (SDM Client) library (structured-data-models-client, imported as sdm_client) is an open source Python client that sends prediction requests to a deployed Kumo Tabular or Kumo Relational NVIDIA NIM and returns the results as a pandas DataFrame.
When to Use the Client
Use the Client when you want:
- A served model. A Kumo Tabular or Kumo Relational NIM runs inference on its own GPU. Your application only needs the Client and a reachable endpoint.
- Predictive queries. For Kumo Relational, describe the task in Predictive Query Language (PQL) and the Client builds the context for you, including ranking and multi-step forecasts.
- Data where it lives. Read tables in memory, or leave them in a warehouse or database and sample them with SQL at prediction time.
Use the SDM library instead when you want the model weights in your own Python process, control over tensors and sampling, fine-tuning, or the Kumo Forecast and Kumo Anomaly time series models.
To compare the models themselves, refer to Compare Models.
Where the NIM Can Run
The Client connects to a NIM you have already deployed. How it connects depends on where the NIM runs.
How the Client Works
One client serves both models. The model is an argument to predict(), not a different package:
Every prediction follows the same path:
The path uses the following objects:
- A
Schemadescribes your tables and, for Kumo Relational, the relationships between them. - A
Requestholds thecontextrows, whose answer is known, and thepredictrows you want scored. For Kumo Relational, a predictive query builds the request for you. - A
PredictionResultconverts to a pandas DataFrame withto_pandas().
A request built for one model is refused before anything is sent if you name the other model.
Install
The base install supports Kumo Tabular:
Kumo Relational also needs its native engine, on a supported Linux and Python runtime:
Each model’s setup page covers requirements and how to verify the endpoint.
Choose Your Model Guide
Select the guide for the model you plan to use.
If you have code written against the earlier kumo-relational-client, refer to Migrate to structured-data-models-client.
For release details, refer to the Release Notes.