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
1b951620
Unverified
Commit
1b951620
authored
Jun 27, 2025
by
Xinyuan Tong
Committed by
GitHub
Jun 27, 2025
Browse files
Updates transformers and timm dependencies (#7577)
Signed-off-by:
Xinyuan Tong
<
justinning0323@outlook.com
>
parent
29bd4c81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
python/pyproject.toml
python/pyproject.toml
+2
-2
python/sglang/srt/models/gemma3_causal.py
python/sglang/srt/models/gemma3_causal.py
+1
-2
No files found.
python/pyproject.toml
View file @
1b951620
...
@@ -43,7 +43,8 @@ runtime_common = [
...
@@ -43,7 +43,8 @@ runtime_common = [
"soundfile==0.13.1"
,
"soundfile==0.13.1"
,
"scipy"
,
"scipy"
,
"torchao==0.9.0"
,
"torchao==0.9.0"
,
"transformers==4.52.3"
,
"transformers==4.53.0"
,
"timm==1.0.16"
,
"uvicorn"
,
"uvicorn"
,
"uvloop"
,
"uvloop"
,
"xgrammar==0.1.19"
,
"xgrammar==0.1.19"
,
...
@@ -105,7 +106,6 @@ test = [
...
@@ -105,7 +106,6 @@ test = [
"matplotlib"
,
"matplotlib"
,
"pandas"
,
"pandas"
,
"peft"
,
"peft"
,
"timm"
,
"sentence_transformers"
,
"sentence_transformers"
,
]
]
all
=
["sglang[srt]
", "
sglang
[openai]
", "
sglang
[anthropic]
", "
sglang
[litellm]
", "
sglang
[torch_memory_saver]
", "
sglang
[decord]"]
all
=
["sglang[srt]
", "
sglang
[openai]
", "
sglang
[anthropic]
", "
sglang
[litellm]
", "
sglang
[torch_memory_saver]
", "
sglang
[decord]"]
...
...
python/sglang/srt/models/gemma3_causal.py
View file @
1b951620
...
@@ -166,8 +166,7 @@ class Gemma3Attention(nn.Module):
...
@@ -166,8 +166,7 @@ class Gemma3Attention(nn.Module):
prefix
=
add_prefix
(
"o_proj"
,
prefix
),
prefix
=
add_prefix
(
"o_proj"
,
prefix
),
)
)
# Determine if layer uses sliding window based on pattern
self
.
is_sliding
=
config
.
layer_types
[
layer_id
]
==
"sliding_attention"
self
.
is_sliding
=
bool
((
layer_id
+
1
)
%
config
.
sliding_window_pattern
)
# Initialize the rotary embedding.
# Initialize the rotary embedding.
if
self
.
is_sliding
:
if
self
.
is_sliding
:
...
...
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