You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(torchx/workspace) Support multi-project/directory workspace
Summary:
Usage:
In your `.torchxconfig` file specify multi-project workspace as follows:
```
[cli:run]
workspace =
/home/$USER/github/myproj:
/home/$USER/github/verl: verl
/home/$USER/.torchxconfig: verl/.torchxconfig
```
Then the workspace is built as:
1. `/home/$USER/github/myproj/**` -> `$REMOTE_ROOT/**`
1. `/home/$USER/github/verl/**` -> `$REMOTE_ROOT/verl/**`
1. `/home/$USER/.torchxconfig` -> `$REMOTE_ROOT/verl/.torchxconfig`
Notes:
1. The mappings are basically like BUCK `python_library`'s `resoruce` attribute. Mapping to an empty string, or simply leaving the target blank (as we did for `myproj` in the example above) copies the contents of the src dir directly into the remote workspace root
1. Files can be specified as src. The target of a file can be a directory, and if so, the file will be copied into the directory. For example:
```
[cli:run]
workspace =
/home/$USER/github/verl: verl
/home/$USER/.torchxconfig: verl
```
copies `.torchxconfig` into `$REMOTE_ROOT/verl/.torchxconfig`. However if we switching the order of the projects won't work:
```
[cli:run]
workspace =
/home/$USER/.torchxconfig: verl
/home/$USER/github/verl: verl
```
This would copy `.torchxconfig` to the file called `verl` in `$REMOTE_ROOT/verl`, then `github/verl` would fail to copy.
Differential Revision: D82169554
0 commit comments