torchx-nightly 2025.9.4__py3-none-any.whl → 2025.9.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of torchx-nightly might be problematic. Click here for more details.
- torchx/cli/cmd_run.py +13 -3
- torchx/runner/config.py +1 -1
- {torchx_nightly-2025.9.4.dist-info → torchx_nightly-2025.9.5.dist-info}/METADATA +1 -1
- {torchx_nightly-2025.9.4.dist-info → torchx_nightly-2025.9.5.dist-info}/RECORD +8 -8
- {torchx_nightly-2025.9.4.dist-info → torchx_nightly-2025.9.5.dist-info}/LICENSE +0 -0
- {torchx_nightly-2025.9.4.dist-info → torchx_nightly-2025.9.5.dist-info}/WHEEL +0 -0
- {torchx_nightly-2025.9.4.dist-info → torchx_nightly-2025.9.5.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2025.9.4.dist-info → torchx_nightly-2025.9.5.dist-info}/top_level.txt +0 -0
torchx/cli/cmd_run.py
CHANGED
|
@@ -206,6 +206,7 @@ class CmdBuiltins(SubCommand):
|
|
|
206
206
|
class CmdRun(SubCommand):
|
|
207
207
|
def __init__(self) -> None:
|
|
208
208
|
self._subparser: Optional[argparse.ArgumentParser] = None
|
|
209
|
+
self._stdin_data_json: Optional[Dict[str, Any]] = None
|
|
209
210
|
|
|
210
211
|
def add_arguments(self, subparser: argparse.ArgumentParser) -> None:
|
|
211
212
|
scheduler_names = get_scheduler_factories().keys()
|
|
@@ -369,6 +370,15 @@ class CmdRun(SubCommand):
|
|
|
369
370
|
torchx_run_args.scheduler_cfg = cfg
|
|
370
371
|
self._run_inner(runner, torchx_run_args)
|
|
371
372
|
|
|
373
|
+
def _get_torchx_stdin_args(
|
|
374
|
+
self, args: argparse.Namespace
|
|
375
|
+
) -> Optional[Dict[str, Any]]:
|
|
376
|
+
if not args.stdin:
|
|
377
|
+
return None
|
|
378
|
+
if self._stdin_data_json is None:
|
|
379
|
+
self._stdin_data_json = self.torchx_json_from_stdin()
|
|
380
|
+
return self._stdin_data_json
|
|
381
|
+
|
|
372
382
|
def torchx_json_from_stdin(self) -> Dict[str, Any]:
|
|
373
383
|
try:
|
|
374
384
|
stdin_data_json = json.load(sys.stdin)
|
|
@@ -419,11 +429,11 @@ class CmdRun(SubCommand):
|
|
|
419
429
|
)
|
|
420
430
|
|
|
421
431
|
def _run(self, runner: Runner, args: argparse.Namespace) -> None:
|
|
422
|
-
# Verify no conflicting arguments when using to loop over the stdin
|
|
423
432
|
self.verify_no_extra_args(args)
|
|
424
433
|
if args.stdin:
|
|
425
|
-
stdin_data_json = self.
|
|
426
|
-
|
|
434
|
+
stdin_data_json = self._get_torchx_stdin_args(args)
|
|
435
|
+
if stdin_data_json is not None:
|
|
436
|
+
self._run_from_stdin_args(runner, stdin_data_json)
|
|
427
437
|
else:
|
|
428
438
|
self._run_from_cli_args(runner, args)
|
|
429
439
|
|
torchx/runner/config.py
CHANGED
|
@@ -73,7 +73,7 @@ CLI Usage
|
|
|
73
73
|
|
|
74
74
|
#. In addition, it is possible to specify a different config other than .torchxconfig to
|
|
75
75
|
load at runtime. Requirements are that the config path is specified by enviornment
|
|
76
|
-
variable
|
|
76
|
+
variable TORCHXCONFIG. It also disables hierarchy loading configs from multiple
|
|
77
77
|
directories as the cases otherwise.
|
|
78
78
|
|
|
79
79
|
#. User level .torchxconfig
|
|
@@ -16,7 +16,7 @@ torchx/cli/cmd_configure.py,sha256=1kTv0qbsbV44So74plAySwWu56pQrqjhfW_kbfdC3Rw,1
|
|
|
16
16
|
torchx/cli/cmd_describe.py,sha256=E5disbHoKTsqYKp2s3DaFW9GDLCCOgdOc3pQoHKoyCs,1283
|
|
17
17
|
torchx/cli/cmd_list.py,sha256=4Y1ZOq-kqJbztoBt56hAW_InJEaJuDAjpKWgMhBw4II,1507
|
|
18
18
|
torchx/cli/cmd_log.py,sha256=v-EZYUDOcG95rEgTnrsmPJMUyxM9Mk8YFAJtUxtgViE,5475
|
|
19
|
-
torchx/cli/cmd_run.py,sha256=
|
|
19
|
+
torchx/cli/cmd_run.py,sha256=Ugbn6PUmfVbSlzcrwXSQmdLOEzVnjS5bBUJ5v2Djw0s,18468
|
|
20
20
|
torchx/cli/cmd_runopts.py,sha256=NWZiP8XpQjfTDJgays2c6MgL_8wxFoeDge6NstaZdKk,1302
|
|
21
21
|
torchx/cli/cmd_status.py,sha256=22IAEmKs0qkG6kJi83u9dRX2Q-ntT7yehVx7FxtY-vQ,2114
|
|
22
22
|
torchx/cli/cmd_tracker.py,sha256=RfLxE4Cq1wfk7k051RtZ8RPJp0pEKSCa3KmTeRs3LF8,5218
|
|
@@ -57,7 +57,7 @@ torchx/pipelines/kfp/adapter.py,sha256=5GeHULjb1kxG6wJtYVLpNkgdzUi4iYEaR42VFOwT6
|
|
|
57
57
|
torchx/pipelines/kfp/version.py,sha256=mYBxd6bm4MeR34D--xo-JLQ9wHeAl_ZQLwbItCf9tr0,539
|
|
58
58
|
torchx/runner/__init__.py,sha256=x8Sz7s_tLxPgJgvWIhK4ju9BNZU61uBFywGwDY6CqJs,315
|
|
59
59
|
torchx/runner/api.py,sha256=CJmTjoV2kB0FVqeE9B-bYaFyiMuQsZCY32kY13CIk6I,30559
|
|
60
|
-
torchx/runner/config.py,sha256=
|
|
60
|
+
torchx/runner/config.py,sha256=20X-vveAJVjb1AjjDSC6x_BVcdrTj9_ZLt_CHTykiFo,18266
|
|
61
61
|
torchx/runner/events/__init__.py,sha256=1_y0bojXl3FL0zlAj7BI4Dg5cXKXUmaa2jZbVH0EDUA,5268
|
|
62
62
|
torchx/runner/events/api.py,sha256=pPLfowWTXtN_XcrEDNI45pE6Ijvdc_Gdxq76RduqgGE,2664
|
|
63
63
|
torchx/runner/events/handlers.py,sha256=ThHCIJW21BfBgB7b6ftyjASJmD1KdizpjuTtsyqnvJs,522
|
|
@@ -115,9 +115,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
115
115
|
torchx/workspace/api.py,sha256=PtDkGTC5lX03pRoYpuMz2KCmM1ZOycRP1UknqvNb97Y,6341
|
|
116
116
|
torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
|
|
117
117
|
torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
|
|
118
|
-
torchx_nightly-2025.9.
|
|
119
|
-
torchx_nightly-2025.9.
|
|
120
|
-
torchx_nightly-2025.9.
|
|
121
|
-
torchx_nightly-2025.9.
|
|
122
|
-
torchx_nightly-2025.9.
|
|
123
|
-
torchx_nightly-2025.9.
|
|
118
|
+
torchx_nightly-2025.9.5.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2025.9.5.dist-info/METADATA,sha256=Tldr_dcawwnBFNfDrRT1l1l9Ss_3TLBe2WM06JKMiik,6103
|
|
120
|
+
torchx_nightly-2025.9.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
121
|
+
torchx_nightly-2025.9.5.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2025.9.5.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2025.9.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|