Skip to content

Commit 5ef28a0

Browse files
committed
fixes
Signed-off-by: atalman <atalman@fb.com>
1 parent 30e2513 commit 5ef28a0

File tree

1 file changed

+0
-14
lines changed
  • buildkite/pipeline_generator

1 file changed

+0
-14
lines changed

buildkite/pipeline_generator/step.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@ class Step(BaseModel):
2727
optional: Optional[bool] = False
2828
no_plugin: Optional[bool] = False
2929
mirror: Optional[Dict[str, Dict[str, Any]]] = None
30-
torch_nightly: Optional[bool] = False
31-
32-
@model_validator(mode="after")
33-
def normalize_torch_nightly_to_mirror(self) -> Self:
34-
"""Support both `torch_nightly: true` and `mirror: {torch_nightly: {}}`.
35-
36-
If the legacy `torch_nightly: true` field is set, promote it into the
37-
`mirror` dict so the rest of the code only needs to check one place.
38-
"""
39-
if self.torch_nightly:
40-
if self.mirror is None:
41-
self.mirror = {}
42-
self.mirror.setdefault("torch_nightly", {})
43-
return self
4430

4531
@model_validator(mode="after")
4632
def validate_multi_node(self) -> Self:

0 commit comments

Comments
 (0)