torch.compile() mrope (#9487)

This commit is contained in:
timmy-feng
2025-08-22 02:01:08 -04:00
committed by GitHub
parent 0f8cee8cd3
commit 61a0e600df

View File

@@ -1029,6 +1029,7 @@ class MRotaryEmbedding(RotaryEmbedding):
f"Corrected mrope_section: {self.mrope_section} (sum={sum(self.mrope_section)})"
)
@torch.compile(dynamic=True)
def forward(
self,
positions: torch.Tensor,