Skip to navigation

Troubleshooting Structured Data Models

View as MarkdownOpen in Claude

The following issues might arise during local inference with Structured Data Models (SDM) and Kumo-TS, including the code and example notebook in Quickstart for Structured Data Models.

Environment and Dependencies

If an import fails, confirm that SDM and the example dependencies are installed in the Python environment running your script or notebook. The notebook installs SDM, numpy, pandas, scikit-learn, and ucimlrepo in its first code cell.

The notebook explicitly selects CPU and does not require a GPU. For a CUDA configuration, check that torch.cuda.is_available() returns True. If it returns False on an NVIDIA GPU host, check the driver and CUDA-enabled PyTorch installation. Refer to Set Up a GPU and the PyTorch installation instructions.

Kumo Forecast and Kumo Anomaly

Match the symptom to its fix in the following table:

SymptomFix
ModuleNotFoundError: No module named 'sdk', or the wrong sdk is importedRun from the package directory with uv run. Install Kumo-Forecast and Kumo-Anomaly in separate environments.
DataFrame has N rows but seq_len requires at least 512 rowsGive Kumo Forecast at least seq_len rows of history.
The following columns contain non-numeric values: [...]Kumo Anomaly accepts numeric columns only. Drop timestamps and labels before the call, or set them in ADDiffusionConfig for reports.
DataLoader worker ... exited unexpectedly on macOS or WindowsKeep the Kumo Forecast call under if __name__ == "__main__": in your script.
Weights download again in every projectPass shared paths: standardizer_pkl and ckpt in ForecastingConfig; model_path and model_config_path for Kumo Anomaly.
HTTP 401 or 403 while downloadingThe repositories are public. Check proxies, then log in with hf auth login if your network requires it.

Model Download and Access

If weights fail to download, check connectivity to Hugging Face and the error message. The Kumo model repositories are public and need no token. Corporate proxies that intercept TLS can make Hugging Face downloads fail with certificate errors. Check your proxy configuration or try from a different network.

The first model initialization downloads pretrained weights. Subsequent runs reuse the cache. After the first download, set HF_HUB_OFFLINE=1 to load SDM weights from the cache without network access. If storage or cache configuration causes an error, refer to the Hugging Face cache configuration and Model Weights and Caching.

Results Change Between Runs

SDM ensembles use random column and class shuffles. Pass generator=torch.Generator(device=device).manual_seed(0) for reproducible output, and select class columns by name. Kumo Anomaly samples from a diffusion model. Call sdk.inference_ad.set_seed(0) before each call.

GPU Memory

If inference raises a CUDA out-of-memory error, check the selected model size and the available GPU memory. For Kumo Tabular, try a smaller size (refer to the model reference), keep estimator_batch_size=1 (the default), lower num_estimators, or use fewer context rows. The notebook sets size="small" and runs on CPU, so it does not use GPU memory.

Relational Input Errors

The following table lists Kumo Relational input error messages and their fixes:

MessageFix
'KumoRelational' requires related tablesPass both related_context_tables and related_query_tables.
'KumoRelational' expects exactly one task link to an entity tableDefine a single entry in task_links.
Tables need to be two-dimensionalPass tables without extra leading dimensions.

Input Columns and Types

Check that the target has the intended semantic type, that query features exclude the target, and that the selected model supports your input types and prediction task. Refer to table semantics and the model reference.

Report a Library Issue

For Kumo Tabular and Kumo Relational, search or open an issue in the SDM repository. For Kumo Forecast and Kumo Anomaly, search or open an issue in the Kumo-TS repository. Include your library and PyTorch versions, device details, the error message, and a minimal reproduction. Remove credentials and private data before sharing it.