← Back to Leaderboard
Krun-house

run-house/kubetorch

A Python SDK and Kubernetes controller for deploying and calling remote ML workloads

AI FrameworkQuickstart ↓
Engineering Health (Methodology)
B · 50/100
Maintenance Activity
● Updated 6mo ago
Latest Release
v0.5.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance6/35
Fork Adoption13/25
Release Cadence11/20
License Clarity20/20
Self-Hosted
Total Stars
★ 1,229
24h Growth
+0
7d Growth
+0
Forks
61

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

run-house/kubetorch Star History (2022-12-11 - 2026-12-03) ALL-TIME STAR HISTORY (2022-12 – 2026-12) +1.2k in 1453d · avg +1/day 1.3k 649 0 2022-12-11: ★ 12023-03-11: ★ 1232023-06-10: ★ 3392023-09-09: ★ 5852023-12-09: ★ 6292024-03-09: ★ 6742024-06-08: ★ 8452024-09-07: ★ 9422024-12-07: ★ 9702025-03-08: ★ 9972025-06-07: ★ 1,0242025-09-06: ★ 1,0302025-12-06: ★ 1,1122026-03-07: ★ 1,1682026-06-06: ★ 1,2052026-09-05: ★ 1,2242026-12-03: ★ 1,229 ★ 1.2k 2022-12 2024-12 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Kubetorch is a Python SDK backed by a Kubernetes control plane. A caller declares resources with kt.Compute, deploys a local function with kt.fn(...).to(compute), and calls the returned handle from an IDE, notebook, CI job, or application. The function executes on the cluster without a separate local Kubetorch runtime or code serialization. Since v0.4.0, the Python client has reached the cluster through a centralized controller endpoint rather than a local kubeconfig.

The source layout separates the SDK in python_client/, the controller and data store in services/, the Helm chart in charts/kubetorch/, and the workload base images in release/default_images/. In v0.5.0, the Workload CRD provides a Kubernetes-native record for Kubetorch service metadata, including labels, paths, and images. The CRD makes those records accessible through standard tooling; it does not by itself establish how all generated resources are reconciled.

Key Capabilities & Differentiators

The core capability is deploying and invoking Python ML code remotely, not executing model graphs inside a bundled inference engine. kt.Compute supplies the resource declaration: the minimal example uses cpus=".1", which illustrates the API rather than a production sizing target. The remote-call workflow applies to experiments, distributed training, and inference application code. Logs, exceptions, and hardware faults are propagated back to the caller, so debugging can start in the calling Python environment.

Dynamic scaling and bin-packing address resource allocation, but their capacity and cost benefits depend on workload shape and the cluster's available nodes. There is no established compatibility matrix for model families, weight formats, or inference backends, nor a verified latency baseline. For inference, validate compatibility, startup time, batching behavior, and throughput with the runtime and image you actually plan to deploy.

Trade-offs & Limitations

Compared with writing Kubernetes Jobs or Deployments directly, Kubetorch puts resource declarations and remote calls in the same Python workflow. That is useful when application code changes faster than infrastructure definitions. Teams that already rely on declarative manifests and GitOps should first establish which resources Kubetorch owns, which should remain in Git, and what alerts or recovery actions are needed if controller access fails.

A dedicated inference runtime solves a different problem: model execution, batching, hardware utilization, and serving behavior. Kubetorch can run Python code that uses such a runtime, but the SDK is not a substitute for it. Separately measure provisioning and image pull delays, model initialization, and steady-state request latency; gains in developer iteration do not guarantee better production tail latency. Apache-2.0 applies to the repository, not automatically to the models and other artifacts you deploy.

Hardware & Deployment Guide

Install the Python client with pip install "kubetorch[client]". On a Kubernetes cluster with Helm, deploy v0.5.0 with helm upgrade --install kubetorch oci://ghcr.io/run-house/charts/kubetorch --version 0.5.0 -n kubetorch --create-namespace. The OCI chart can also be pulled and unpacked before installation. That separates chart retrieval from installation but does not prove an air-gapped setup: required images and Python packages still need to be available. Confirm that clients can reach the controller and that the cluster can schedule the requested workload resources.

Release evolution matters for upgrades: v0.4.0 introduced the controller access path, v0.4.1 propagated annotations from kt.Compute, and v0.5.0 stores workload metadata in the Workload CRD. Before upgrading production, test client access, inspect the resulting Workload objects, and verify that expected annotations and image references are retained. Size nodes against the intended workload and concurrency rather than treating the SDK as a hardware baseline.

Execution API: kt.fn(...).to(kt.Compute(...)) deploys a local Python function and returns a callable handle for remote execution.
Client access: The v0.4.0 controller moved Python clients to a centralized endpoint and removed their local kubeconfig requirement.
Workload metadata: The v0.5.0 Workload CRD exposes service labels, paths, and images through standard Kubernetes tooling.
Runtime feedback: Remote logs, exceptions, and hardware faults are surfaced to the caller.
Self-hosted components: The repository separates the SDK, Helm chart, controller and data store sources, and workload base images.
Best For

ML teams with an existing Kubernetes cluster that want to deploy and call Python workloads from notebooks, IDEs, or CI, using a separately chosen training or inference runtime.

Skip If

You need a turnkey model server with a defined backend compatibility matrix, lack capacity to operate Kubernetes, or require every workload resource to be managed directly through GitOps manifests.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-Hosted
pip install "kubetorch[client]"

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
kubetorch ★1.2k—PythonApache-2.0A Python SDK and Kubernetes controller for deploying and calling remote ML workl
keras64.5k+24PythonApache-2.0Multi-backend Python SDK for building, training, and running deep learning model
pytorch-lightning31.5k+31PythonApache-2.0PyTorch training with a managed Trainer and Fabric for custom distributed loops
ludwig11.8k+6PythonApache-2.0YAML-first framework for fine-tuning, training, and serving LLMs and multimodal

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/run-house/kubetorch.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

run-house/kubetorch Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about kubetorch

How does a local Python script invoke a function on the cluster?

Define the resource request with kt.Compute, then deploy a Python function with kt.fn(...).to(compute). Call the returned handle from your Python environment to run the function on Kubernetes. The client talks to the cluster through the controller endpoint rather than requiring a local kubeconfig. The transport and authentication protocol are not specified here.

How much GPU memory and platform capacity should we budget?

Size the workload for the Python process, model weights, execution backend, intermediate tensors, and concurrent requests. For GPU inference, also account for any model-specific caches and measure peak VRAM on the intended image and hardware. There is no fixed VRAM requirement or quantified controller overhead to use as a sizing baseline.

Can we self-host Kubetorch for commercial workloads?

The repository is licensed under Apache-2.0 and can be self-hosted for commercial use. If you redistribute covered software, comply with the license and applicable notice requirements. Check the terms of any workload images, dependencies, and model weights separately. The separately offered managed service is not a prerequisite for the Helm deployment.

When should we choose Kubetorch over native Kubernetes or a model-serving runtime?

Use Kubetorch when Python developers need to deploy and call remote code without hand-writing a Kubernetes workload for each iteration. Use native Kubernetes resources when explicit reconciliation and manifest ownership matter more than the SDK workflow. If the requirement is optimized model serving, choose an inference runtime for execution and treat Kubetorch as a separate orchestration decision.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining run-house/kubetorch? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature run-house/kubetorch on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare