train_start
Begin LoRA training on your local GPU or a RunPod pod. Instantly get a job ID to track progress via train_status; final LoRA delivered where specified.
Instructions
Start a LoRA training job: target 'local' builds the config and launches the GPU trainer container (docker run --gpus all); target 'pod' ssh-drives pod-native training on a connected RunPod pod (pod_id, or the connector's currently connected pod). Returns a job id for train_status/train_cancel. Long-running — returns immediately; poll train_status. On completion the LoRA is delivered per deliverTo (pod/local/both) and cataloged when local. Run train_doctor first if unsure the image/docker/GPU (local) or bootstrap (pod) are ready.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | character | |
| name | Yes | Job name — becomes the output .safetensors basename (e.g. 'aria_character'). | |
| model | No | flux1-dev | |
| device | No | GPU selector, default cuda:0. | |
| params | No | ||
| pod_id | No | RunPod pod to train on (target 'pod'). Default: the connector's currently connected/watched pod. | |
| target | No | 'local' = docker on this rig; 'pod' = pod-native over ssh on a RunPod pod. | local |
| trigger | No | Unique trigger word (e.g. 'ohwx person') — injected as trigger_word and usable in prompts. | |
| deliverTo | No | Pod jobs only: where the finished LoRA lands. | both |
| model_path | No | Override the base model path AS THE TRAINER SEES IT (pod path for target 'pod', container path for 'local') — e.g. a pre-uploaded local HF snapshot dir when the default HF repo id is gated/unreachable. | |
| datasetPath | Yes | Dataset dir from train_prepare_dataset (images + same-basename .txt captions). |