torchx-nightly 2024.6.4__py3-none-any.whl → 2024.6.6__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.

@@ -124,6 +124,7 @@ def ensure_network(client: Optional["DockerClient"] = None) -> None:
124
124
  class DockerOpts(TypedDict, total=False):
125
125
  copy_env: Optional[List[str]]
126
126
  env: Optional[Dict[str, str]]
127
+ privileged: bool
127
128
 
128
129
 
129
130
  class DockerScheduler(DockerWorkspaceMixin, Scheduler[DockerOpts]):
@@ -287,6 +288,7 @@ class DockerScheduler(DockerWorkspaceMixin, Scheduler[DockerOpts]):
287
288
  LABEL_REPLICA_ID: str(replica_id),
288
289
  },
289
290
  "hostname": name,
291
+ "privileged": cfg.get("privileged", False),
290
292
  "network": NETWORK,
291
293
  "mounts": mounts,
292
294
  "devices": devices,
@@ -374,6 +376,13 @@ class DockerScheduler(DockerWorkspaceMixin, Scheduler[DockerOpts]):
374
376
  (e.g. ENV1:v1,ENV2:v2,ENV3:v3 or ENV1:V1;ENV2:V2). Environment variables from env will be applied on top
375
377
  of the ones from copy_env""",
376
378
  )
379
+ opts.add(
380
+ "privileged",
381
+ type_=bool,
382
+ default=False,
383
+ help="If true runs the container with elevated permissions."
384
+ " Equivalent to running with `docker run --privileged`.",
385
+ )
377
386
  return opts
378
387
 
379
388
  def _get_app_state(self, container: "Container") -> AppState:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2024.6.4
3
+ Version: 2024.6.6
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -69,7 +69,7 @@ torchx/schedulers/api.py,sha256=s2hI87uAWtU2SHMNBKjAqelzQU_GKp_BjcxdtjVVDDk,1415
69
69
  torchx/schedulers/aws_batch_scheduler.py,sha256=7qxy3UFRq0F731-kTjEi6VABWKD60o0req6CBMsTohU,27975
70
70
  torchx/schedulers/aws_sagemaker_scheduler.py,sha256=dPah3yaKFUVm-ZZrzFbyM_abP-LCTd-AcAjZ6t2iycU,20699
71
71
  torchx/schedulers/devices.py,sha256=BnjZnbXGTWiZKLmMKE3zPDOkb4Vao3jgPVa01aV6vyY,1367
72
- torchx/schedulers/docker_scheduler.py,sha256=xgTStwLrf9hKiz2mbaSCuHWeUBZKJBG30awo7F2rCTE,16204
72
+ torchx/schedulers/docker_scheduler.py,sha256=IrDlmeH-tg_f3krA04Y81nK9dmuYfEPbYOuCjSQkIHA,16541
73
73
  torchx/schedulers/gcp_batch_scheduler.py,sha256=dlUfvjfMuQiRcSXQAdwxqdadwPhOf82L5u-ejRWtFgE,16226
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
@@ -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.6.4.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
117
- torchx_nightly-2024.6.4.dist-info/METADATA,sha256=mLdOgIjwCH8cwczRYK8Y1kJmBzJAZI-MeaX_bios1zw,6183
118
- torchx_nightly-2024.6.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
119
- torchx_nightly-2024.6.4.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
120
- torchx_nightly-2024.6.4.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
121
- torchx_nightly-2024.6.4.dist-info/RECORD,,
116
+ torchx_nightly-2024.6.6.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
117
+ torchx_nightly-2024.6.6.dist-info/METADATA,sha256=ZISffYAIW4kotw73T-VVoXJUF8pOFBlINSsFC9Xj8xk,6183
118
+ torchx_nightly-2024.6.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
119
+ torchx_nightly-2024.6.6.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
120
+ torchx_nightly-2024.6.6.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
121
+ torchx_nightly-2024.6.6.dist-info/RECORD,,