Skip to content

Conversation

@TroyGarden
Copy link
Contributor

Summary:

context

  • loglevel is not correctly set in train pipeline benchmark due to the multiprocess setup
  • the log level is only set in the main process but not correctly set in the forked/spawn processes
  • this diff add the loglevel argument into the RunConfig so that in every runner funcion can call set_logger_level
  • also directly pass the error message on yaml or json parser failure, which previously just warn silently and the warning message is buried in lengthy logs.

Differential Revision: D85829837

Summary:
# context
* loglevel is not correctly set in train pipeline benchmark due to the multiprocess setup
* the log level is only set in the main process but not correctly set in the forked/spawn processes
* this diff add the `loglevel` argument into the RunConfig so that in every runner funcion can call `set_logger_level`
* also directly pass the error message on yaml or json parser failure, which previously just warn silently and the warning message is buried in lengthy logs.

Differential Revision: D85829837
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Oct 30, 2025

@TroyGarden has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85829837.

@meta-cla meta-cla 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 Oct 30, 2025
TroyGarden added a commit to TroyGarden/torchrec that referenced this pull request Nov 2, 2025
Summary:

# context
* loglevel is not correctly set in train pipeline benchmark due to the multiprocess setup
* the log level is only set in the main process but not correctly set in the forked/spawn processes
* this diff add the `loglevel` argument into the RunConfig so that in every runner funcion can call `set_logger_level`
* also directly pass the error message on yaml or json parser failure, which previously just warn silently and the warning message is buried in lengthy logs.
* with loglevel=info we can now see the planner info: P2014482201

Differential Revision: D85829837
TroyGarden added a commit to TroyGarden/torchrec that referenced this pull request Nov 2, 2025
Summary:

# context
* loglevel is not correctly set in train pipeline benchmark due to the multiprocess setup
* the log level is only set in the main process but not correctly set in the forked/spawn processes
* this diff add the `loglevel` argument into the RunConfig so that in every runner funcion can call `set_logger_level`
* also directly pass the error message on yaml or json parser failure, which previously just warn silently and the warning message is buried in lengthy logs.
* with loglevel=info we can now see the planner info: P2014482201

Differential Revision: D85829837
@meta-codesync meta-codesync bot closed this in ac8bc67 Nov 3, 2025
@TroyGarden TroyGarden deleted the export-D85829837 branch November 3, 2025 00:05
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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant