Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tee argument #808

Merged
merged 3 commits into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion torchx/components/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def ddp(
rdzv_backend: str = "c10d",
mounts: Optional[List[str]] = None,
debug: bool = False,
tee: int = 3,
) -> specs.AppDef:
"""
Distributed data parallel style application (one role, multi-replica).
Expand Down Expand Up @@ -208,6 +209,7 @@ def ddp(
mounts: mounts to mount into the worker environment/container (ex. type=<bind/volume>,src=/host,dst=/job[,readonly]).
See scheduler documentation for more info.
debug: whether to run with preset debug flags enabled
tee: tees the specified std stream(s) to console + file. 0: none, 1: stdout, 2: stderr, 3: both
"""

if (script is None) == (m is None):
Expand Down Expand Up @@ -262,7 +264,7 @@ def ddp(
"--nproc_per_node",
str(nproc_per_node),
"--tee",
"3",
str(tee),
"--role",
"",
]
Expand Down
Loading