torchx-nightly 2025.9.18__py3-none-any.whl → 2025.9.19__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
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  # Copyright (c) Meta Platforms, Inc. and affiliates.
3
2
  # All rights reserved.
4
3
  #
@@ -52,14 +51,19 @@ from torchx.util.entrypoints import load_group
52
51
 
53
52
  from torchx.util.modules import import_attr
54
53
 
55
- AWS_NAMED_RESOURCES: Mapping[str, Callable[[], Resource]] = import_attr(
54
+ GiB: int = 1024
55
+
56
+ ResourceFactory = Callable[[], Resource]
57
+
58
+ AWS_NAMED_RESOURCES: Mapping[str, ResourceFactory] = import_attr(
56
59
  "torchx.specs.named_resources_aws", "NAMED_RESOURCES", default={}
57
60
  )
58
- GENERIC_NAMED_RESOURCES: Mapping[str, Callable[[], Resource]] = import_attr(
61
+ GENERIC_NAMED_RESOURCES: Mapping[str, ResourceFactory] = import_attr(
59
62
  "torchx.specs.named_resources_generic", "NAMED_RESOURCES", default={}
60
63
  )
61
-
62
- GiB: int = 1024
64
+ FB_NAMED_RESOURCES: Mapping[str, ResourceFactory] = import_attr(
65
+ "torchx.specs.fb.named_resources", "NAMED_RESOURCES", default={}
66
+ )
63
67
 
64
68
 
65
69
  def _load_named_resources() -> Dict[str, Callable[[], Resource]]:
@@ -69,6 +73,7 @@ def _load_named_resources() -> Dict[str, Callable[[], Resource]]:
69
73
  for name, resource in {
70
74
  **GENERIC_NAMED_RESOURCES,
71
75
  **AWS_NAMED_RESOURCES,
76
+ **FB_NAMED_RESOURCES,
72
77
  **resource_methods,
73
78
  }.items():
74
79
  materialized_resources[name] = resource
torchx/specs/api.py CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env python3
2
1
  # Copyright (c) Meta Platforms, Inc. and affiliates.
3
2
  # All rights reserved.
4
3
  #
@@ -83,6 +82,8 @@ class Resource:
83
82
  memMB: MB of ram
84
83
  capabilities: additional hardware specs (interpreted by scheduler)
85
84
  devices: a list of named devices with their quantities
85
+ tags: metadata tags for the resource (not interpreted by schedulers)
86
+ used to add non-functional information about resources (e.g. whether it is an alias of another resource)
86
87
 
87
88
  Note: you should prefer to use named_resources instead of specifying the raw
88
89
  resource requirement directly.
@@ -93,6 +94,7 @@ class Resource:
93
94
  memMB: int
94
95
  capabilities: Dict[str, Any] = field(default_factory=dict)
95
96
  devices: Dict[str, int] = field(default_factory=dict)
97
+ tags: Dict[str, object] = field(default_factory=dict)
96
98
 
97
99
  @staticmethod
98
100
  def copy(original: "Resource", **capabilities: Any) -> "Resource":
@@ -101,6 +103,7 @@ class Resource:
101
103
  are present in the original resource and as parameter, the one from parameter
102
104
  will be used.
103
105
  """
106
+
104
107
  res_capabilities = dict(original.capabilities)
105
108
  res_capabilities.update(capabilities)
106
109
  return Resource(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2025.9.18
3
+ Version: 2025.9.19
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -70,8 +70,8 @@ torchx/schedulers/local_scheduler.py,sha256=ttnxFDy48_DSYDEW-no27OirFZOyfrjwJ2S1
70
70
  torchx/schedulers/lsf_scheduler.py,sha256=YS6Yel8tXJqLPxbcGz95lZG2nCi36AQXdNDyuBJePKg,17661
71
71
  torchx/schedulers/slurm_scheduler.py,sha256=vZt102OxuTGj0ZE-V9dWbldtOyL2VbHcxADm_osL7Y4,31568
72
72
  torchx/schedulers/streams.py,sha256=8_SLezgnWgfv_zXUsJCUM34-h2dtv25NmZuxEwkzmxw,2007
73
- torchx/specs/__init__.py,sha256=Gw_2actqR_oWFtxEkGXCxGk_yrWK5JDZzwysyyqmXao,6438
74
- torchx/specs/api.py,sha256=wkhHOxeWH_tFO3npKqPhNg4VX2NH5gPIFEylkPBo3AU,41315
73
+ torchx/specs/__init__.py,sha256=HU7OoXs7aBBi0IenB49QIONRzoG1Ovs1Qlm9KnsvqfE,6609
74
+ torchx/specs/api.py,sha256=Rzv_Yx8yyseARbC928ZvqAZbvaXhJRDAbcyPsxiblF4,41543
75
75
  torchx/specs/builders.py,sha256=aozVl4q3h0mY5DDJCY1M1CyLC9SW66KJy8JIih8bZJo,13810
76
76
  torchx/specs/file_linter.py,sha256=6_aoeuS5d9UwXseKKfPgWNTwxj-f7G1i3uO9mQepti4,14402
77
77
  torchx/specs/finder.py,sha256=FcB6jQTNwnpc4OMV0F349kk0leu6O7JYjH_GW2d6GXE,17503
@@ -103,9 +103,9 @@ torchx/workspace/__init__.py,sha256=cZsKVvUWwDYcGhe6SCXQGBQfbk_yTnKEImOkI6xmu30,
103
103
  torchx/workspace/api.py,sha256=Ct_75VU94fsH9Rf1WRe-wJGpVgl5O05S_Dq_t2ArJWA,11348
104
104
  torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
105
105
  torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
106
- torchx_nightly-2025.9.18.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
107
- torchx_nightly-2025.9.18.dist-info/METADATA,sha256=grH3rDtKzsPyc3AV674FONndBtTojnf04r1eAGu8rIk,5693
108
- torchx_nightly-2025.9.18.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
109
- torchx_nightly-2025.9.18.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
110
- torchx_nightly-2025.9.18.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
111
- torchx_nightly-2025.9.18.dist-info/RECORD,,
106
+ torchx_nightly-2025.9.19.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
107
+ torchx_nightly-2025.9.19.dist-info/METADATA,sha256=4S3QpZtzHIUqC2VdZK_czPBhOWnQHdbTvjhFyAdE94s,5693
108
+ torchx_nightly-2025.9.19.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
109
+ torchx_nightly-2025.9.19.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
110
+ torchx_nightly-2025.9.19.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
111
+ torchx_nightly-2025.9.19.dist-info/RECORD,,