Build ML pipelines with pluggable backends. Simple. Modular. Yours.
⭐ Star us on GitHub to support the project!
Why KladML?
| Feature | KladML | MLflow | ClearML |
|---|---|---|---|
| Interface-based | ✅ Pluggable | ❌ Hardcoded | ❌ Hardcoded |
| Server required | ❌ No | ⚠️ Optional | ✅ Yes |
| Local-first | ✅ Unified SQLite DB | ✅ Yes | ❌ No |
| Learning curve | 🟢 Minutes | 🟡 Days | 🔴 Weeks |
| Hierarchy | ✅ Workspace/Proj/Fam | ❌ Exp/Run | ❌ Project/task |
| User Interface | ✅ TUI (Terminal) | ⚠️ Web UI | ✅ Web UI |
| Custom backends | ✅ Easy | ⚠️ Complex | ❌ No |
| Data Engine | 🚀 Polars (Fast) | 🐢 Pandas | 🐢 Pandas |
Requirements
- Python: 3.10, 3.11, 3.12 (Native support for modern type hints)
- OS: Linux, macOS, Windows
Installation
# Core (lightweight, minimal dependencies)
pip install kladml
# Training + Data Engine (includes Polars, Torch)
pip install "kladml[train]"
# Full Suite (Tracking + TUI + Dev)
pip install "kladml[all]"
Workflow
1. Initialize Workspace
kladml init
Creates the standard folder structure (data/configs/, data/projects/, data/datasets/).
2. Interactive Management (TUI)
kladml ui
Explore projects, runs, and datasets visually in your terminal.
3. Training
# Train using a config file (auto-detects GPU/MPS)
kladml train --config data/configs/my_config.yaml
# Distributed Training (Multi-GPU)
kladml train --config ... --distributed --num-processes 2
✅ Universal Trainer: Supports Mixed Precision (FP16/BF16), Gradient Accumulation, and Multi-GPU without changing code.
Built-in Baselines
KladML is designed to work with any custom model (PyTorch, Scikit-learn, etc.). For convenience, we provide these reference implementations out-of-the-box:
| Domain | Reference Model |
|---|---|
| Tabular | XGBoost (Coming Soon) |
| Time Series | Transformers |
| Computer Vision | ResNet / ViT (Coming Soon) |
| TEXT | BERT (Coming Soon) |
Architecture
KladML uses dependency injection with abstract interfaces. Swap implementations without changing your code:
┌─────────────────────────────────────────────────────────────┐
│ Your Code │
├─────────────────────────────────────────────────────────────┤
│ ExperimentRunner │
├─────────────────────────────────────────────────────────────┤
│ StorageInterface │ ConfigInterface │ TrackerInterface │
├─────────────────────────────────────────────────────────────┤
│ LocalStorage │ YamlConfig │ LocalTracker │
│ S3Storage │ EnvConfig │ MLflowTracker │
│ (your impl) │ (your impl) │ (your impl) │
└─────────────────────────────────────────────────────────────┘
Implement Custom Backends
from kladml.interfaces import StorageInterface
class S3Storage(StorageInterface):
"""Custom S3 implementation."""
def upload_file(self, local_path, bucket, key):
# Your S3 logic
...
# Plug it in
runner = ExperimentRunner(storage=S3Storage())
Interfaces
| Interface | Description | Default |
|---|---|---|
StorageInterface |
Object storage (files, artifacts) | LocalStorage |
ConfigInterface |
Configuration management | YamlConfig |
PublisherInterface |
Real-time metric publishing | ConsolePublisher |
TrackerInterface |
Experiment tracking | LocalTracker (MLflow + SQLite) |
Configuration
Create kladml.yaml:
project:
name: my-project
version: 0.1.0
training:
device: auto # auto | cpu | cuda | mps
storage:
artifacts_dir: ./data
Or use environment variables:
export KLADML_TRAINING_DEVICE=cuda
export KLADML_STORAGE_ARTIFACTS_DIR=/data/artifacts
CLI Commands
kladml --help # Show all commands
kladml init # Initialize workspace
kladml version # Show version
# Training
kladml train quick ... # Quick training (no DB setup)
kladml train single ... # Full training with project/experiment
# Evaluation
kladml eval run ... # Evaluate a model
kladml eval info # Show available evaluators
kladml compare --runs r1,r2 # Compare runs side-by-side
# Data
kladml data inspect <path> # Analyze a dataset (Parquet/PKL)
kladml data summary <dir> # Summary of datasets
kladml data convert ... # Convert PKL -> Parquet/HDF5
# Models
kladml export ... # Export to ONNX
# Organization
kladml project list # List all projects
kladml family list ... # List families
kladml experiment list ... # List experiments
Contributing
PRs welcome! See CONTRIBUTING.md for guidelines.
git clone https://github.com/kladml/kladml.git
cd kladml
pip install -e ".[dev]"
pytest
License
MIT License - see LICENSE for details.
Documentation · PyPI · GitHub
Made in 🇮🇹 by the KladML Team
Metadata
Release files for kladml 0.13.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kladml-0.13.1.tar.gz | 404.1 kB | With provenance | Details for kladml-0.13.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kladml-0.13.1-py3-none-any.whl | Python 3 | none | any | Details for kladml-0.13.1-py3-none-any.whl |
Total release size: 563.8 kB
Release files / kladml-0.13.1.tar.gz
| Download URL | kladml-0.13.1.tar.gz |
|---|---|
| Size | 404.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae84e03a4992205bde12c73430e3d6400798ca55204cd749e8a23a3f172f0587
|
|
BLAKE2b-256 checksum How to use checksums |
3990413b120bf68efe9eb978bd749779366f0223ef36ae482e8126d676e6f341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 25, 2026.
Transparency logRelease files / kladml-0.13.1-py3-none-any.whl
| Download URL | kladml-0.13.1-py3-none-any.whl |
|---|---|
| Size | 159.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
849ff9915efeabd87842fe61c4c9c248b513665b6e3d1564cff2a4f13e37e745
|
|
BLAKE2b-256 checksum How to use checksums |
f41de3461ef4a9f585275a0621137ebe34d9d133e6636124d8634b0602ddad30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 25, 2026.
Transparency logSecurity for kladml 0.13.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kladml-0.13.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 25, 2026.
Transparency logA 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.