@@ -73,38 +73,24 @@ print("\n".join(TrainerClient().get_job_logs(name=job_id)))
7373
7474## Local Development
7575
76- Kubeflow SDK provides first-class support for local development, allowing you to test and iterate on your models without needing a Kubernetes cluster.
76+ Kubeflow Trainer client supports local development without needing a Kubernetes cluster.
7777
78- ### Execution Backends
78+ ### Available Backends
7979
80- Choose the backend that fits your development workflow:
80+ - ** KubernetesBackend** (default) - Production training on Kubernetes
81+ - ** ContainerBackend** - Local development with Docker/Podman isolation
82+ - ** LocalProcessBackend** - Quick prototyping with Python subprocesses
8183
82- | Backend | Description | Use Case |
83- | ---------| -------------| ----------|
84- | ** KubernetesBackend** | Run jobs on Kubernetes cluster | Production, multi-node distributed training |
85- | ** ContainerBackend** | Auto-detects Docker or Podman | Local development with container isolation |
86- | ** LocalProcessBackend** | Run as local Python subprocesses | Quick prototyping, debugging |
87-
88- ### Local Container Execution
89-
90- The ** ContainerBackend** automatically detects and uses either Docker or Podman:
91-
92- ``` bash
93- # Install with Docker support
94- pip install kubeflow[docker]
95-
96- # Or install with Podman support
97- pip install kubeflow[podman]
98- ```
84+ ** Quick Start:**
85+ Install container support: ` pip install kubeflow[docker] ` or ` pip install kubeflow[podman] `
9986
10087``` python
10188from kubeflow.trainer import TrainerClient, ContainerBackendConfig, CustomTrainer
10289
103- # Auto-detects Docker or Podman
104- config = ContainerBackendConfig()
105- client = TrainerClient(backend_config = config)
90+ # Switch to local container execution
91+ client = TrainerClient(backend_config = ContainerBackendConfig())
10692
107- # Your training runs in isolated containers
93+ # Your training runs locally in isolated containers
10894job_id = client.train(trainer = CustomTrainer(func = train_fn))
10995```
11096
0 commit comments