<#1234 Clustered-task examples + end-to-end valida...
# flyte-github
a
#1234 Clustered-task examples + end-to-end validation on the demo cluster Pull request opened by AdilFayyaz Summary Adds 12 runnable
examples/clustered/
examples (DDP, FSDP, Lightning, compose, 16-pod scale, and the failure paths: rank kill, pod kill, eviction, bad spec). Concrete, not illustrative — every example was run against the demo cluster (GPU ones on real L4 nodes) and checked against its stated contract. Passing
ddp_train(_gpu/_restart)
,
fsdp_train
(saves 148 KB ckpt),
lightning_mnist
(attaches to torchrun, no double-launch),
cpu_kill_rank
+
manual_kill_pod
whole-set restart),
load_16pod
(gang of 16, all-reduce sum=120),
bad_spec
(fast-fail, budget not consumed). Still broken / TODO (product/SDK gaps, not the examples) 1. Composed clustered tasks can't run — nested subtask gets a long action name → JobSet pod names >63 chars → webhook rejects → plugin retry-loops forever (run hangs RUNNING). Fix: bound/hash the JobSet name + treat the rejection as non-retryable. 2. Checkpoint-resume across restart doesn't work — save works, but a restart never loads the prior attempt's checkpoint (confirmed in
failure_cascade
and `manual_kill_pod`; masked because toy models retrain instantly). Likely per-attempt path scoping. TODO: confirm + fix path. 3.
restart_on_host_maintenance=True
is a no-op
— not wired into the JobSet (no
DisruptionTarget
podFailurePolicy /
RestartJobSetAndIgnoreMaxRestarts
rule). Proven: 2 evictions exhausted
maxRestarts=1
. Fix: emit those specs. flyteorg/flyte-sdk