We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec996b commit 5baf254Copy full SHA for 5baf254
nemo_run/core/execution/lepton.py
@@ -240,7 +240,10 @@ def create_lepton_job(self, name: str):
240
241
def launch(self, name: str, cmd: list[str]) -> tuple[str, str]:
242
self._validate_mounts()
243
- name = name.replace("_", "-").replace(".", "-") # to meet K8s requirements
+ name = name.replace("_", "-").replace(".", "-").lower() # to meet K8s requirements
244
+ if len(name) > 35:
245
+ logger.warning("length of name exceeds 35 characters. Shortening...")
246
+ name = name[:34]
247
launch_script = f"""
248
wget -O init.sh https://raw.githubusercontent.com/leptonai/scripts/main/lepton_env_to_pytorch.sh
249
chmod +x init.sh
0 commit comments