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

Fix logging for torchX command line to remove extra prefix #1008

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

andywag
Copy link
Contributor

@andywag andywag commented Feb 14, 2025

Summary:
The issue is here. The tee_logs was changed to support MVAI so this diff makes the MVAI case an option and defaults to the old call.

for example,
before, the line is:
trainer/0 [1]:I0210 16:15:39.768000 3837215 gen_ai/genie_projects/llm/metaformers/train.py:830] Training starts ...

but now, it is:
I0210 16:15:40.036000 3378434 torchx/util/log_tee_helpers.py:105] trainer/0 [1]:I0210 16:15:39.768000 3837215 gen_ai/genie_projects/llm/metaformers/train.py:830] Training starts ..

Differential Revision: D69641309

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 14, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69641309

)

Summary:

The issue is here. The tee_logs was changed to support MVAI so this diff makes the MVAI case an option and defaults to the old call.

for example,
before, the line is:
trainer/0 [1]:I0210 16:15:39.768000 3837215 gen_ai/genie_projects/llm/metaformers/train.py:830] Training starts ...

but now, it is:
I0210 16:15:40.036000 3378434 torchx/util/log_tee_helpers.py:105] trainer/0 [1]:I0210 16:15:39.768000 3837215 gen_ai/genie_projects/llm/metaformers/train.py:830] Training starts ..

Differential Revision: D69641309
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69641309

@facebook-github-bot facebook-github-bot merged commit 4209218 into pytorch:main Feb 14, 2025
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants