torchx-nightly 2024.5.24__py3-none-any.whl → 2024.5.25__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/runner/api.py +12 -1
- torchx/schedulers/local_scheduler.py +2 -1
- {torchx_nightly-2024.5.24.dist-info → torchx_nightly-2024.5.25.dist-info}/METADATA +1 -1
- {torchx_nightly-2024.5.24.dist-info → torchx_nightly-2024.5.25.dist-info}/RECORD +8 -8
- {torchx_nightly-2024.5.24.dist-info → torchx_nightly-2024.5.25.dist-info}/LICENSE +0 -0
- {torchx_nightly-2024.5.24.dist-info → torchx_nightly-2024.5.25.dist-info}/WHEEL +0 -0
- {torchx_nightly-2024.5.24.dist-info → torchx_nightly-2024.5.25.dist-info}/entry_points.txt +0 -0
- {torchx_nightly-2024.5.24.dist-info → torchx_nightly-2024.5.25.dist-info}/top_level.txt +0 -0
torchx/runner/api.py
CHANGED
|
@@ -98,7 +98,10 @@ class Runner:
|
|
|
98
98
|
"""
|
|
99
99
|
self._name: str = name
|
|
100
100
|
self._scheduler_factories = scheduler_factories
|
|
101
|
-
self._scheduler_params: Dict[str,
|
|
101
|
+
self._scheduler_params: Dict[str, Any] = {
|
|
102
|
+
**(self._get_scheduler_params_from_env()),
|
|
103
|
+
**(scheduler_params or {}),
|
|
104
|
+
}
|
|
102
105
|
# pyre-fixme[24]: SchedulerOpts is a generic, and we don't have access to the corresponding type
|
|
103
106
|
self._scheduler_instances: Dict[str, Scheduler] = {}
|
|
104
107
|
self._apps: Dict[AppHandle, AppDef] = {}
|
|
@@ -106,6 +109,14 @@ class Runner:
|
|
|
106
109
|
# component_name -> map of component_fn_param_name -> user-specified default val encoded as str
|
|
107
110
|
self._component_defaults: Dict[str, Dict[str, str]] = component_defaults or {}
|
|
108
111
|
|
|
112
|
+
def _get_scheduler_params_from_env(self) -> Dict[str, str]:
|
|
113
|
+
scheduler_params = {}
|
|
114
|
+
for key, value in os.environ.items():
|
|
115
|
+
lower_case_key = key.lower()
|
|
116
|
+
if lower_case_key.startswith("torchx_"):
|
|
117
|
+
scheduler_params[lower_case_key.strip("torchx_")] = value
|
|
118
|
+
return scheduler_params
|
|
119
|
+
|
|
109
120
|
def __enter__(self) -> "Runner":
|
|
110
121
|
return self
|
|
111
122
|
|
|
@@ -1184,11 +1184,12 @@ def create_scheduler(
|
|
|
1184
1184
|
session_name: str,
|
|
1185
1185
|
cache_size: int = 100,
|
|
1186
1186
|
extra_paths: Optional[List[str]] = None,
|
|
1187
|
+
image_provider_class: Callable[[LocalOpts], ImageProvider] = CWDImageProvider,
|
|
1187
1188
|
**kwargs: Any,
|
|
1188
1189
|
) -> LocalScheduler:
|
|
1189
1190
|
return LocalScheduler(
|
|
1190
1191
|
session_name=session_name,
|
|
1191
|
-
image_provider_class=
|
|
1192
|
+
image_provider_class=image_provider_class,
|
|
1192
1193
|
cache_size=cache_size,
|
|
1193
1194
|
extra_paths=extra_paths,
|
|
1194
1195
|
)
|
|
@@ -56,7 +56,7 @@ torchx/pipelines/kfp/__init__.py,sha256=8iJ8lql_fxwuk9VCYSxXnX6tPL228fB5mDZpOs-k
|
|
|
56
56
|
torchx/pipelines/kfp/adapter.py,sha256=q9fGRS3-xOYVl-tAjTNlUFLbw22r5IiCz9IP34t1rWU,8959
|
|
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=w882mjD4AbQQe23jeePBfWs0UBZ7LxAI1ryNa73iaq4,28487
|
|
60
60
|
torchx/runner/config.py,sha256=pBNbe51EvsfyZvOdhAKvobq0V9lKtpnDkWUzEgnxiP4,17838
|
|
61
61
|
torchx/runner/events/__init__.py,sha256=9vaNjo39IR2YE-gDAd23PLvJg7i-hOMDV50nXAsYGlI,4376
|
|
62
62
|
torchx/runner/events/api.py,sha256=JiC3ZgHONE_k9vAmur-8cQ2ZdUAPm45LJB8tBUguGIo,2231
|
|
@@ -74,7 +74,7 @@ torchx/schedulers/gcp_batch_scheduler.py,sha256=dlUfvjfMuQiRcSXQAdwxqdadwPhOf82L
|
|
|
74
74
|
torchx/schedulers/ids.py,sha256=3E-_vwVYC-8Tv8kjuY9-W7TbOe_-Laqd8a65uIN3hQY,1798
|
|
75
75
|
torchx/schedulers/kubernetes_mcad_scheduler.py,sha256=xAt-on3K8HwS2kzWasn0zXd2q4IDQzo2N5A5Ehh9NII,42885
|
|
76
76
|
torchx/schedulers/kubernetes_scheduler.py,sha256=qubhzfBAOFag6Yi_oAgdq1Jxr56LG68cioTre3qggEM,27065
|
|
77
|
-
torchx/schedulers/local_scheduler.py,sha256=
|
|
77
|
+
torchx/schedulers/local_scheduler.py,sha256=1xAEAymKqhxYYll4JmKNPWkIGSSro_2JxyLVOisiWTs,41428
|
|
78
78
|
torchx/schedulers/lsf_scheduler.py,sha256=FhpI8KgYKySz6xMTLmy0IcesJk2SpJ_no-iRzpqV0Wk,17653
|
|
79
79
|
torchx/schedulers/ray_scheduler.py,sha256=unnDtDu1rPpCLJLDcm4NYRo9ZCCtQgG5BtlHwVfly-U,17448
|
|
80
80
|
torchx/schedulers/slurm_scheduler.py,sha256=_57XhN9ggFaD6ZG9cPXkAlcHoF-R5mPmAvqPwhNJ4qw,19370
|
|
@@ -113,9 +113,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
|
|
|
113
113
|
torchx/workspace/api.py,sha256=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
|
|
114
114
|
torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
|
|
115
115
|
torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
|
|
116
|
-
torchx_nightly-2024.5.
|
|
117
|
-
torchx_nightly-2024.5.
|
|
118
|
-
torchx_nightly-2024.5.
|
|
119
|
-
torchx_nightly-2024.5.
|
|
120
|
-
torchx_nightly-2024.5.
|
|
121
|
-
torchx_nightly-2024.5.
|
|
116
|
+
torchx_nightly-2024.5.25.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
|
|
117
|
+
torchx_nightly-2024.5.25.dist-info/METADATA,sha256=OHGNHuO7NBiT0at0OXtbKGbaYfGY2i2fc4w0pGbw8hw,6053
|
|
118
|
+
torchx_nightly-2024.5.25.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
119
|
+
torchx_nightly-2024.5.25.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
|
|
120
|
+
torchx_nightly-2024.5.25.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
|
|
121
|
+
torchx_nightly-2024.5.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|