Skip to content

Conversation

@ZhangLirong-amd
Copy link
Contributor

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

Copilot AI review requested due to automatic review settings November 18, 2025 08:57
Copilot finished reviewing on behalf of ZhangLirong-amd November 18, 2025 08:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a SymInt compatibility issue in the fused_moe_fake function by removing the call to the lru_cache-decorated get_inter_dim helper function. The lru_cache decorator causes errors when tensor shapes contain symbolic integers (SymInt) used during PyTorch compilation/tracing.

  • Replaced get_inter_dim(w1.shape, w2.shape) call with direct extraction of model_dim from w2.shape[1]
  • Removed unused variables E and inter_dim from the fake function implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@valarLip valarLip merged commit 9151b0a into main Nov 19, 2025
24 of 25 checks passed
@valarLip valarLip deleted the zlr/moe_fake branch November 19, 2025 02:07
zhuyuhua-v pushed a commit that referenced this pull request Nov 22, 2025
zhuyuhua-v pushed a commit that referenced this pull request Nov 22, 2025
zhuyuhua-v pushed a commit that referenced this pull request Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants