Skip to content

Conversation

@TroyGarden
Copy link
Contributor

Summary:

context

  • when working on UDD LSR MC5, we observed 5% QPS regression due to disabled SDD pipeline (mast log)
  • the code change is mainly due to the torch.fx.wrap of a postproc function
  • although the pipeline_postproc flag is True, the issue is that it's actually a fx-wrapped function.
  • currently postproc trace only works for a torch.nn.Module, not a function.
  • added test case to verify this, and future work is needed to support better tracing for the fx-wrapped function.

Differential Revision: D82501416

@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 Sep 16, 2025
@facebook-github-bot
Copy link
Contributor

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

…x wrap module (meta-pytorch#3377)

Summary:

# context
* when working on UDD LSR MC5, we observed 5% QPS regression due to disabled SDD pipeline ([mast log](https://fburl.com/mlhub/rvuibmcp))
* the code change is mainly due to the `torch.fx.wrap` of a [postproc function](https://fburl.com/code/spvnz047)
* although the `pipeline_postproc` flag is `True`, the issue is that it's actually a fx-wrapped function.
* currently postproc trace only works for a torch.nn.Module, not a function.
* added test case to verify this, and future work is needed to support better tracing for the fx-wrapped function.

Reviewed By: spmex

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

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

@TroyGarden TroyGarden deleted the export-D82501416 branch September 16, 2025 05:58
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.

2 participants