pytorch / torchx

TorchX is a universal job launcher for PyTorch applications. TorchX is designed to have fast iteration time for training/research and support for E2E production ML pipelines when you're ready.
https://pytorch.org/torchx
Other
304 stars 97 forks source link

Support home directory sign (~) in BindMount path #865

Closed asuta274 closed 2 months ago

asuta274 commented 2 months ago

This PR is to support home directory sign (~) in BindMount path.

Test plan:

Unit tests

pytest torchx/specs/test/builders_test.py

Manually tested with local_docker and the config like below:

[component:dist.ddp]
mounts=type=bind,src=~/.config/gcloud/application_default_credentials.json,dst=/creds.json

torchx run would fail before the change and work after.