torchx
torchx copied to clipboard
significance of flags described in the dist.py in ray context
❓ Questions and Help
Question
We are trying to run torchx with ray as the scheduler and trying to understand the significance of some. of the flags and whether those flags are valid in ray scheduler setup
-
https://github.com/pytorch/torchx/blob/main/torchx/components/dist.py#L173 is the image flag valid in ray setup
-
similar with port mapping https://github.com/pytorch/torchx/blob/main/torchx/components/dist.py#L179 . does this has any significance in ray setup.
- Image field maps to the directory it runs in though under normal usage it is overridden by the TempDirWorkspace which is build from the local files https://github.com/pytorch/torchx/blob/8c0345c297c24409f8d6ea5f5231bddd4a8d538f/torchx/workspace/dir_workspace.py#L19-L31
- port_maps are mostly informative and aren't passed to Ray as there doesn't seem to be a way to do so https://github.com/pytorch/torchx/blob/main/torchx/schedulers/ray_scheduler.py#L308