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
zhaoyu6
sglang
Commits
403566bc
"examples/vscode:/vscode.git/clone" did not exist on "0ec8addb201c22971e3608a948dbc8576c59e6b8"
Unverified
Commit
403566bc
authored
Aug 03, 2025
by
fzyzcjy
Committed by
GitHub
Aug 02, 2025
Browse files
Remove assertions about per group quant fp8 (#8717)
parent
0a56b721
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
python/sglang/srt/layers/quantization/fp8_kernel.py
python/sglang/srt/layers/quantization/fp8_kernel.py
+0
-4
No files found.
python/sglang/srt/layers/quantization/fp8_kernel.py
View file @
403566bc
...
@@ -354,10 +354,6 @@ def sglang_per_token_group_quant_fp8(
...
@@ -354,10 +354,6 @@ def sglang_per_token_group_quant_fp8(
),
"the last dimension of `x` cannot be divisible by `group_size`"
),
"the last dimension of `x` cannot be divisible by `group_size`"
assert
x
.
is_contiguous
(),
"`x` is not contiguous"
assert
x
.
is_contiguous
(),
"`x` is not contiguous"
if
scale_ue8m0
:
# TODO: handle this case by fixing the (token=4, dim=256, group_size=128) UT case
assert
x
.
shape
[
-
1
]
%
(
group_size
*
4
)
==
0
x_q
=
torch
.
empty_like
(
x
,
device
=
x
.
device
,
dtype
=
fp8_dtype
)
x_q
=
torch
.
empty_like
(
x
,
device
=
x
.
device
,
dtype
=
fp8_dtype
)
x_s
=
create_per_token_group_quant_fp8_output_scale
(
x_s
=
create_per_token_group_quant_fp8_output_scale
(
x_shape
=
x
.
shape
,
x_shape
=
x
.
shape
,
...
...
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