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
4a9f3eef
Unverified
Commit
4a9f3eef
authored
Aug 09, 2025
by
Brayden Zhong
Committed by
GitHub
Aug 09, 2025
Browse files
Tiny Llama4 type error in constructor (#6752)
parent
1b7afad0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/models/llama4.py
python/sglang/srt/models/llama4.py
+1
-1
No files found.
python/sglang/srt/models/llama4.py
View file @
4a9f3eef
...
@@ -204,7 +204,7 @@ class Llama4Attention(nn.Module):
...
@@ -204,7 +204,7 @@ class Llama4Attention(nn.Module):
super
().
__init__
()
super
().
__init__
()
self
.
layer_id
=
layer_id
self
.
layer_id
=
layer_id
self
.
hidden_size
=
hidden_size
self
.
hidden_size
=
hidden_size
self
.
use_rope
=
int
(
(
layer_id
+
1
)
%
4
!=
0
)
self
.
use_rope
=
(
layer_id
+
1
)
%
4
!=
0
self
.
use_qk_norm
=
config
.
use_qk_norm
and
self
.
use_rope
self
.
use_qk_norm
=
config
.
use_qk_norm
and
self
.
use_rope
attn_tp_rank
=
get_attention_tp_rank
()
attn_tp_rank
=
get_attention_tp_rank
()
...
...
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