Skip to content

Commit edafab3

Browse files
committed
torch compile mrope
1 parent 6264614 commit edafab3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/sglang/srt/layers/rotary_embedding.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,7 @@ def __init__(
10291029
f"Corrected mrope_section: {self.mrope_section} (sum={sum(self.mrope_section)})"
10301030
)
10311031

1032+
@torch.compile(dynamic=True)
10321033
def forward(
10331034
self,
10341035
positions: torch.Tensor,

0 commit comments

Comments
 (0)