{"id":32398934,"url":"https://github.com/run-house/kubetorch","last_synced_at":"2025-10-25T08:03:21.154Z","repository":{"id":65365852,"uuid":"490725794","full_name":"run-house/kubetorch","owner":"run-house","description":"Distribute and run AI workloads magically in Python, like PyTorch for ML infra.","archived":false,"fork":false,"pushed_at":"2025-10-23T12:00:37.000Z","size":32332,"stargazers_count":1061,"open_issues_count":0,"forks_count":43,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-24T09:56:25.129Z","etag":null,"topics":["api","artificial-intelligence","aws","azure","collaboration","data-science","deployment","distributed","fastapi","gcp","infrastructure","machine-learning","middleware","observability","python","pytorch","ray","sagemaker","serverless"],"latest_commit_sha":null,"homepage":"https://run.house","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/run-house.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-10T14:10:51.000Z","updated_at":"2025-10-24T07:30:11.000Z","dependencies_parsed_at":"2023-11-30T16:30:47.552Z","dependency_job_id":"42d23bc1-553b-4523-a93c-351b82ab7b2c","html_url":"https://github.com/run-house/kubetorch","commit_stats":{"total_commits":1624,"total_committers":17,"mean_commits":95.52941176470588,"dds":0.7536945812807881,"last_synced_commit":"01302bc3f57874f8784acb5eac6c00ba6e69de41"},"previous_names":["run-house/kubetorch","run-house/runhouse"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/run-house/kubetorch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-house%2Fkubetorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-house%2Fkubetorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-house%2Fkubetorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-house%2Fkubetorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/run-house","download_url":"https://codeload.github.com/run-house/kubetorch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-house%2Fkubetorch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280776482,"owners_count":26388950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","artificial-intelligence","aws","azure","collaboration","data-science","deployment","distributed","fastapi","gcp","infrastructure","machine-learning","middleware","observability","python","pytorch","ray","sagemaker","serverless"],"created_at":"2025-10-25T08:02:15.738Z","updated_at":"2025-10-25T08:03:21.149Z","avatar_url":"https://github.com/run-house.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# 📦Kubetorch🔥\n\n**A Python interface for running ML workloads on Kubernetes**\n\nKubetorch enables you to run any Python code on Kubernetes at any scale by specifying required resources, distribution, and scaling directly in code. It provides caching and hot redeployment for 1-2 second iteration cycles, handles hardware faults and preemptions programmatically, and orchestrates complex, heterogeneous workloads with built-in observability and fault tolerance.\n\n## Hello World\n\n```python\nimport kubetorch as kt\n\ndef hello_world():\n    return \"Hello from Kubetorch!\"\n\nif __name__ == \"__main__\":\n    # Define your compute\n    compute = kt.Compute(cpus=\".1\")\n\n    # Send local function to freshly launched remote compute\n    remote_hello = kt.fn(hello_world).to(compute)\n\n    # Runs remotely on your Kubernetes cluster\n    result = remote_hello()\n    print(result)  # \"Hello from Kubetorch!\"\n```\n\n## What Kubetorch Enables\n\n- **100x faster iteration** from 10+ minutes to 1-3 seconds for complex ML applications like RL and distributed training\n- **50%+ compute cost savings** through intelligent resource allocation, bin-packing, and dynamic scaling\n- **95% fewer production faults** with built-in fault handling with programmatic error recovery and resource adjustment\n\n## Installation\n\n### 1. Python Client\n\n```bash\npip install \"kubetorch[client]\"\n```\n\n### 2. Kubernetes Deployment (Helm)\n\n```bash\n# Option 1: Install directly from OCI registry\nhelm upgrade --install kubetorch oci://ghcr.io/run-house/charts/kubetorch \\\n  --version 0.2.2 -n kubetorch --create-namespace\n\n# Option 2: Download chart locally first\nhelm pull oci://ghcr.io/run-house/charts/kubetorch --version 0.2.2 --untar\nhelm upgrade --install kubetorch ./kubetorch -n kubetorch --create-namespace\n```\n\nFor detailed setup instructions, see our [Installation Guide](https://www.run.house/kubetorch/installation).\n\n\n## Kubetorch Serverless\n\nContact us ([email](mailto:hello@run.house), [Slack](https://join.slack.com/t/kubetorch/shared_invite/zt-3g76q5i4j-uP60AdydxnAmjGVAQhtALA)) to try out Kubetorch on our fully managed cloud platform.\n\n## Learn More\n\n- **[Documentation](https://www.run.house/kubetorch/introduction)** - API Reference, concepts, and guides\n- **[Examples](https://www.run.house/examples)** - Real-world usage patterns and tutorials\n- **[Join our Slack](https://join.slack.com/t/kubetorch/shared_invite/zt-3g76q5i4j-uP60AdydxnAmjGVAQhtALA)** - Connect with the community and get support\n\n---\n\n[Apache 2.0 License](LICENSE)\n\n**🏃‍♀️ Built by [Runhouse](https://www.run.house) 🏠**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frun-house%2Fkubetorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frun-house%2Fkubetorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frun-house%2Fkubetorch/lists"}