Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
38473363
"...pytorch/graphsage/advanced/train_sampling_unsupervised.py" did not exist on "44089c8b4d4db4ca71e816e0de50dca972dbabdb"
Unverified
Commit
38473363
authored
Oct 13, 2025
by
Trevor Morris
Committed by
GitHub
Oct 13, 2025
Browse files
[DSv32] Use torch.compile for _get_logits_head_gate (#11565)
parent
aaf7af1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/srt/layers/attention/nsa/nsa_indexer.py
python/sglang/srt/layers/attention/nsa/nsa_indexer.py
+1
-0
No files found.
python/sglang/srt/layers/attention/nsa/nsa_indexer.py
View file @
38473363
...
...
@@ -205,6 +205,7 @@ class Indexer(CustomOp):
return
ans
@
torch
.
compile
(
dynamic
=
True
)
def
_get_logits_head_gate
(
self
,
x
:
torch
.
Tensor
,
q_scale
:
torch
.
Tensor
):
weights
,
_
=
self
.
weights_proj
(
x
)
weights
=
weights
*
self
.
n_heads
**-
0.5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment