Skip to content

Conversation

ProExpertProg
Copy link
Collaborator

@ProExpertProg ProExpertProg commented Sep 3, 2025

Fixes #23091.

Purpose

Cleanup compilation tests and custom passes and address #23091 and part of #24376. This PR is a prerequisite for matching torch implementations of custom ops in #TODO.

Cleanup:

  • RMSNorm + QuantFP8 fusion:
    • remove custom multi-output matching workaround
    • remove .instance() workaround
    • rename FusionPass to RMSNormQuantFusionPass
  • reduce test_fusion.py running time
  • add cleanup pass that topo-sorts and does DCE
  • add LazyInitPass test utility
  • add env var for pattern match debugging (TODO: docs)
  • fix test_sequence_parallelism.py
  • add assert to test_silu_mul_quant_fusion for easier diagnostics of fp4 failures.

Test Plan

Unit tests all pass.


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Copy link

mergify bot commented Sep 6, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @ProExpertProg.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Sep 6, 2025
@ProExpertProg ProExpertProg force-pushed the luka/new-custom-op-matching branch from 83ee4d9 to d0f7fdb Compare September 6, 2025 18:55
@mergify mergify bot removed the needs-rebase label Sep 6, 2025
Signed-off-by: Luka Govedič <[email protected]>
Signed-off-by: luka <[email protected]>
Signed-off-by: Luka Govedič <[email protected]>
Signed-off-by: luka <[email protected]>
Signed-off-by: Luka Govedič <[email protected]>
Signed-off-by: luka <[email protected]>
Signed-off-by: Luka Govedič <[email protected]>
Signed-off-by: luka <[email protected]>
Signed-off-by: Luka Govedič <[email protected]>
@ProExpertProg ProExpertProg force-pushed the luka/new-custom-op-matching branch from ea109c9 to 6dff951 Compare September 6, 2025 20:30
Copy link

mergify bot commented Sep 6, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @ProExpertProg.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Sep 6, 2025
@github-project-automation github-project-automation bot moved this from In progress to Done in torch.compile integration Sep 9, 2025
@ProExpertProg ProExpertProg deleted the luka/new-custom-op-matching branch September 9, 2025 22:49
Copy link

mergify bot commented Sep 9, 2025

⚠️ The sha of the head commit of this PR conflicts with #24542. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: graph.eliminate_dead_code() break the fx graph with enable_fi_allreduce_fusion when TP == 2

1 participant