From 51d5ea101d0f90d88d5b7746f953a924a728643e Mon Sep 17 00:00:00 2001 From: Olivier Tardieu Date: Sat, 21 Dec 2024 11:17:54 -0500 Subject: [PATCH] Default rank hack --- tools/pytorchjob-generator/chart/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pytorchjob-generator/chart/templates/_helpers.tpl b/tools/pytorchjob-generator/chart/templates/_helpers.tpl index 458589e..fb0b9b3 100644 --- a/tools/pytorchjob-generator/chart/templates/_helpers.tpl +++ b/tools/pytorchjob-generator/chart/templates/_helpers.tpl @@ -154,7 +154,7 @@ command: # {{- if eq .Values.schedulerName "sakkara" }} echo "Sakkara is enabled: using Sakkara-assigned rank instead of the default PyTorchJob rank" - export RANK=$SAKKARA_RANK + export RANK="${SAKKARA_RANK:-0}" {{- end }} {{- range $command := .Values.setupCommands }} {{ $command }}