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
83452dbb
Unverified
Commit
83452dbb
authored
Jan 19, 2025
by
Xiaoyu Zhang
Committed by
GitHub
Jan 18, 2025
Browse files
fix file name spelling mistake and useless variable in minmax-text-01-lightning_attention (#2971)
parent
3d93f84a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
benchmark/kernels/minmax-text-01-lightning_attention/benchmark_lightning_attention_decode.py
...ghtning_attention/benchmark_lightning_attention_decode.py
+0
-1
benchmark/kernels/minmax-text-01-lightning_attention/benchmark_lightning_attention_prefill.py
...htning_attention/benchmark_lightning_attention_prefill.py
+2
-0
No files found.
benchmark/kernels/minmax-text-01-lighting_attention/benchmark_lighting_attention_decode.py
→
benchmark/kernels/minmax-text-01-light
n
ing_attention/benchmark_light
n
ing_attention_decode.py
View file @
83452dbb
...
...
@@ -26,7 +26,6 @@ def _decode_kernel(
d_original
:
tl
.
constexpr
,
e
:
tl
.
constexpr
,
e_original
:
tl
.
constexpr
,
BLOCK_SIZE
:
tl
.
constexpr
=
32
,
):
off_bh
=
tl
.
program_id
(
0
)
off_h
=
off_bh
%
h
...
...
benchmark/kernels/minmax-text-01-lighting_attention/benchmark_lighting_attention_prefill.py
→
benchmark/kernels/minmax-text-01-light
n
ing_attention/benchmark_light
n
ing_attention_prefill.py
View file @
83452dbb
...
...
@@ -493,6 +493,8 @@ def test_lightning_attention_implementations(model_params):
msg
=
"Lightning attention implementations produce different results"
,
)
print
(
"✅ Two implementations match"
)
def
get_benchmark
():
batch_size_range
=
[
2
**
i
for
i
in
range
(
0
,
7
)]
# max 64
...
...
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