torchx-nightly 2025.8.14__py3-none-any.whl → 2025.8.16__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 +8 -7
- torchx/runner/api.py +21 -0
- {torchx_nightly-2025.8.14.dist-info → torchx_nightly-2025.8.16.dist-info}/METADATA +2 -2
- {torchx_nightly-2025.8.14.dist-info → torchx_nightly-2025.8.16.dist-info}/RECORD +8 -8
- {torchx_nightly-2025.8.14.dist-info → torchx_nightly-2025.8.16.dist-info}/LICENSE +0 -0
- {torchx_nightly-2025.8.14.dist-info → torchx_nightly-2025.8.16.dist-info}/WHEEL +0 -0
- {torchx_nightly-2025.8.14.dist-info → torchx_nightly-2025.8.16.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2025.8.14.dist-info → torchx_nightly-2025.8.16.dist-info}/top_level.txt +0 -0
torchx/cli/cmd_run.py
CHANGED
|
@@ -207,8 +207,7 @@ class CmdRun(SubCommand):
|
|
|
207
207
|
" (e.g. `local_cwd`)"
|
|
208
208
|
)
|
|
209
209
|
|
|
210
|
-
|
|
211
|
-
cfg = scheduler_opts.cfg_from_str(args.scheduler_args)
|
|
210
|
+
cfg = dict(runner.cfg_from_str(args.scheduler, args.scheduler_args))
|
|
212
211
|
config.apply(scheduler=args.scheduler, cfg=cfg)
|
|
213
212
|
|
|
214
213
|
component, component_args = _parse_component_name_and_args(
|
|
@@ -263,12 +262,14 @@ class CmdRun(SubCommand):
|
|
|
263
262
|
sys.exit(1)
|
|
264
263
|
except specs.InvalidRunConfigException as e:
|
|
265
264
|
error_msg = (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
"
|
|
265
|
+
"Invalid scheduler configuration: %s\n"
|
|
266
|
+
"To configure scheduler options, either:\n"
|
|
267
|
+
" 1. Use the `-cfg` command-line argument, e.g., `-cfg key1=value1,key2=value2`\n"
|
|
268
|
+
" 2. Set up a `.torchxconfig` file. For more details, visit: https://pytorch.org/torchx/main/runner.config.html\n"
|
|
269
|
+
"Run `torchx runopts %s` to check all available configuration options for the "
|
|
270
|
+
"`%s` scheduler."
|
|
270
271
|
)
|
|
271
|
-
|
|
272
|
+
print(error_msg % (e, args.scheduler, args.scheduler), file=sys.stderr)
|
|
272
273
|
sys.exit(1)
|
|
273
274
|
|
|
274
275
|
def run(self, args: argparse.Namespace) -> None:
|
torchx/runner/api.py
CHANGED
|
@@ -486,6 +486,27 @@ class Runner:
|
|
|
486
486
|
"""
|
|
487
487
|
return self._scheduler(scheduler).run_opts()
|
|
488
488
|
|
|
489
|
+
def cfg_from_str(self, scheduler: str, *cfg_literal: str) -> Mapping[str, CfgVal]:
|
|
490
|
+
"""
|
|
491
|
+
Convenience function around the scheduler's ``runopts.cfg_from_str()`` method.
|
|
492
|
+
|
|
493
|
+
Usage:
|
|
494
|
+
|
|
495
|
+
.. doctest::
|
|
496
|
+
|
|
497
|
+
from torchx.runner import get_runner
|
|
498
|
+
|
|
499
|
+
runner = get_runner()
|
|
500
|
+
cfg = runner.cfg_from_str("local_cwd", "log_dir=/tmp/foobar", "prepend_cwd=True")
|
|
501
|
+
assert cfg == {"log_dir": "/tmp/foobar", "prepend_cwd": True, "auto_set_cuda_visible_devices": False}
|
|
502
|
+
"""
|
|
503
|
+
|
|
504
|
+
opts = self._scheduler(scheduler).run_opts()
|
|
505
|
+
cfg = {}
|
|
506
|
+
for cfg_str in cfg_literal:
|
|
507
|
+
cfg.update(opts.cfg_from_str(cfg_str))
|
|
508
|
+
return cfg
|
|
509
|
+
|
|
489
510
|
def scheduler_backends(self) -> List[str]:
|
|
490
511
|
"""
|
|
491
512
|
Returns a list of all supported scheduler backends.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: torchx-nightly
|
|
3
|
-
Version: 2025.8.
|
|
3
|
+
Version: 2025.8.16
|
|
4
4
|
Summary: TorchX SDK and Components
|
|
5
5
|
Home-page: https://github.com/pytorch/torchx
|
|
6
6
|
Author: TorchX Devs
|
|
@@ -57,7 +57,7 @@ Requires-Dist: torch>=2.7.0; extra == "dev"
|
|
|
57
57
|
Requires-Dist: torchmetrics==1.6.3; extra == "dev"
|
|
58
58
|
Requires-Dist: torchserve>=0.10.0; extra == "dev"
|
|
59
59
|
Requires-Dist: torchtext==0.18.0; extra == "dev"
|
|
60
|
-
Requires-Dist: torchvision==0.
|
|
60
|
+
Requires-Dist: torchvision==0.23.0; extra == "dev"
|
|
61
61
|
Requires-Dist: typing-extensions; extra == "dev"
|
|
62
62
|
Requires-Dist: ts==0.5.1; extra == "dev"
|
|
63
63
|
Requires-Dist: ray[default]; extra == "dev"
|
|
@@ -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=dFVzlVBSxqBfTRz80VL8R_r2GVayKZ4xDVBQLu275M0,12285
|
|
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
|
|
@@ -56,7 +56,7 @@ torchx/pipelines/kfp/__init__.py,sha256=8iJ8lql_fxwuk9VCYSxXnX6tPL228fB5mDZpOs-k
|
|
|
56
56
|
torchx/pipelines/kfp/adapter.py,sha256=5GeHULjb1kxG6wJtYVLpNkgdzUi4iYEaR42VFOwT6fY,9045
|
|
57
57
|
torchx/pipelines/kfp/version.py,sha256=mYBxd6bm4MeR34D--xo-JLQ9wHeAl_ZQLwbItCf9tr0,539
|
|
58
58
|
torchx/runner/__init__.py,sha256=x8Sz7s_tLxPgJgvWIhK4ju9BNZU61uBFywGwDY6CqJs,315
|
|
59
|
-
torchx/runner/api.py,sha256=
|
|
59
|
+
torchx/runner/api.py,sha256=UzQP25TVKcQoK5RUjf0AaH4dfXKFWSbE1YOSXH2Uo_w,30766
|
|
60
60
|
torchx/runner/config.py,sha256=CBuYQCBj52fs4NclxJbdx5xtDdgNnfDd7XSdHPE1IGo,18267
|
|
61
61
|
torchx/runner/events/__init__.py,sha256=1_y0bojXl3FL0zlAj7BI4Dg5cXKXUmaa2jZbVH0EDUA,5268
|
|
62
62
|
torchx/runner/events/api.py,sha256=pPLfowWTXtN_XcrEDNI45pE6Ijvdc_Gdxq76RduqgGE,2664
|
|
@@ -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.8.
|
|
119
|
-
torchx_nightly-2025.8.
|
|
120
|
-
torchx_nightly-2025.8.
|
|
121
|
-
torchx_nightly-2025.8.
|
|
122
|
-
torchx_nightly-2025.8.
|
|
123
|
-
torchx_nightly-2025.8.
|
|
118
|
+
torchx_nightly-2025.8.16.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
119
|
+
torchx_nightly-2025.8.16.dist-info/METADATA,sha256=8YaCZXKvuW-KtBbqfST4FD3SW6bEQQ4-q3-18D7trvk,6104
|
|
120
|
+
torchx_nightly-2025.8.16.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
121
|
+
torchx_nightly-2025.8.16.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
|
|
122
|
+
torchx_nightly-2025.8.16.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
123
|
+
torchx_nightly-2025.8.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|