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
7f8fcd39
Unverified
Commit
7f8fcd39
authored
Nov 21, 2024
by
Jerry Zhang
Committed by
GitHub
Nov 21, 2024
Browse files
Turn off autotune for scaled mm for fp8 dynamic quant in torchao (#2116)
parent
5c6a41fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python/sglang/srt/models/torch_native_llama.py
python/sglang/srt/models/torch_native_llama.py
+4
-0
No files found.
python/sglang/srt/models/torch_native_llama.py
View file @
7f8fcd39
...
@@ -401,6 +401,10 @@ class TorchNativeLlamaForCausalLM(nn.Module):
...
@@ -401,6 +401,10 @@ class TorchNativeLlamaForCausalLM(nn.Module):
self
.
lm_head
=
ParallelLMHead
(
config
.
vocab_size
,
config
.
hidden_size
)
self
.
lm_head
=
ParallelLMHead
(
config
.
vocab_size
,
config
.
hidden_size
)
self
.
logits_processor
=
LogitsProcessor
(
config
)
self
.
logits_processor
=
LogitsProcessor
(
config
)
# turning off autotune for fp8dq since it doesn't give speedup and
# increases compile time significantly
torch
.
_inductor
.
config
.
max_autotune_gemm_backends
=
"ATEN"
@
torch
.
no_grad
()
@
torch
.
no_grad
()
def
forward
(
def
forward
(
self
,
self
,
...
...
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