torchx-nightly 2025.4.24__py3-none-any.whl → 2025.4.26__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/specs/__init__.py CHANGED
@@ -13,7 +13,7 @@ used by components to define the apps which can then be launched via a TorchX
13
13
  scheduler or pipeline adapter.
14
14
  """
15
15
  import difflib
16
- from typing import Callable, Dict, Optional
16
+ from typing import Callable, Dict, Mapping, Optional
17
17
 
18
18
  from torchx.specs.api import (
19
19
  ALL,
@@ -48,12 +48,17 @@ from torchx.specs.api import (
48
48
  )
49
49
  from torchx.specs.builders import make_app_handle, materialize_appdef, parse_mounts
50
50
 
51
- from torchx.specs.named_resources_aws import NAMED_RESOURCES as AWS_NAMED_RESOURCES
52
- from torchx.specs.named_resources_generic import (
53
- NAMED_RESOURCES as GENERIC_NAMED_RESOURCES,
54
- )
55
51
  from torchx.util.entrypoints import load_group
56
52
 
53
+ from torchx.util.modules import import_attr
54
+
55
+ AWS_NAMED_RESOURCES: Mapping[str, Callable[[], Resource]] = import_attr(
56
+ "torchx.specs.named_resources_aws", "NAMED_RESOURCES", default={}
57
+ )
58
+ GENERIC_NAMED_RESOURCES: Mapping[str, Callable[[], Resource]] = import_attr(
59
+ "torchx.specs.named_resources_generic", "NAMED_RESOURCES", default={}
60
+ )
61
+
57
62
  GiB: int = 1024
58
63
 
59
64
 
torchx/specs/finder.py CHANGED
@@ -18,7 +18,6 @@ from pathlib import Path
18
18
  from types import ModuleType
19
19
  from typing import Any, Callable, Dict, Generator, List, Optional, Union
20
20
 
21
- from torchx.specs import AppDef
22
21
  from torchx.specs.file_linter import get_fn_docstring, TorchxFunctionValidator, validate
23
22
  from torchx.util import entrypoints
24
23
  from torchx.util.io import read_conf_file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2025.4.24
3
+ Version: 2025.4.26
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -82,11 +82,11 @@ torchx/schedulers/streams.py,sha256=8_SLezgnWgfv_zXUsJCUM34-h2dtv25NmZuxEwkzmxw,
82
82
  torchx/schedulers/ray/__init__.py,sha256=fE0IHi1JJpxsNVBNzWNee2thrNXFFRhY94c80RxNSIE,231
83
83
  torchx/schedulers/ray/ray_common.py,sha256=pyNYFvTKVwdjDAeCBNbPwAWwVNmlLOJWExfn90XY8u8,610
84
84
  torchx/schedulers/ray/ray_driver.py,sha256=RdaCLfth16ky-5PDVOWRe_RuheWJu9xufWux2F9T7iw,12302
85
- torchx/specs/__init__.py,sha256=T8xUCz7iVE6OsUL5P4Pzy2B8ZY_YinCVDwUer5Q-XPc,6179
85
+ torchx/specs/__init__.py,sha256=c2ALDbqHIhNBhrYxwXXURRwu1Rg5jcwukWF8emEO1Bk,6347
86
86
  torchx/specs/api.py,sha256=jtasrQUy_6-AmZxsfZ_6J-kfUGKYsO5cVsrCP3imZ-I,38844
87
87
  torchx/specs/builders.py,sha256=f5Yy8KoL2OgPUiqJRkZ4E6lboq5Srkh5mD17F0EBdeg,10506
88
88
  torchx/specs/file_linter.py,sha256=QCwob5STTBuy8RsxaevTI-Dk6R8siDJn81LyaOwazes,12333
89
- torchx/specs/finder.py,sha256=N8EJcxYmG8ZBreB5FgvufGq-CnNOmvVYUpAdflkv7K8,17312
89
+ torchx/specs/finder.py,sha256=OCgGknz9fpVQfV51l5FEsyCjGmMA0pd1otnZXPP4puw,17280
90
90
  torchx/specs/named_resources_aws.py,sha256=ISjHtifRJqB8u7PeAMiyLyO_S0WCaZiK-CFF3qe6JDU,11415
91
91
  torchx/specs/named_resources_generic.py,sha256=Sg4tAdqiiWDrDz2Lj_pnfsjzGIXKTou73wPseh6j55w,2646
92
92
  torchx/specs/test/components/__init__.py,sha256=J8qjUOysmcMAek2KFN13mViOXZxTYc5vCrF02t3VuFU,223
@@ -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.4.24.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
- torchx_nightly-2025.4.24.dist-info/METADATA,sha256=_ViJb0-1jp_LNc245Q1Kv18i2thJc7scpT_Ng0d3LEc,6167
120
- torchx_nightly-2025.4.24.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
- torchx_nightly-2025.4.24.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
- torchx_nightly-2025.4.24.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
- torchx_nightly-2025.4.24.dist-info/RECORD,,
118
+ torchx_nightly-2025.4.26.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
+ torchx_nightly-2025.4.26.dist-info/METADATA,sha256=WM0zI_GP3OxxYg2df8K98cUgBIFt34xH3E7yabLf8eU,6167
120
+ torchx_nightly-2025.4.26.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
+ torchx_nightly-2025.4.26.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
+ torchx_nightly-2025.4.26.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
+ torchx_nightly-2025.4.26.dist-info/RECORD,,