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
e314b084
Unverified
Commit
e314b084
authored
Aug 02, 2025
by
Lianmin Zheng
Committed by
GitHub
Aug 02, 2025
Browse files
[FIX] Fix the nightly CI by disabling swa mem pool for gemma2 (#8693)
parent
403566bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+6
-0
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+3
-3
No files found.
python/sglang/srt/server_args.py
View file @
e314b084
...
@@ -1928,6 +1928,12 @@ class ServerArgs:
...
@@ -1928,6 +1928,12 @@ class ServerArgs:
if
"Llama4"
in
model_arch
:
if
"Llama4"
in
model_arch
:
assert
self
.
attention_backend
==
"fa3"
,
"fa3 is required for Llama4 model"
assert
self
.
attention_backend
==
"fa3"
,
"fa3 is required for Llama4 model"
if
"Gemma2ForCausalLM"
in
model_arch
:
# FIXME: https://github.com/sgl-project/sglang/pull/7367 is not compatible with gemma2 model.
# It failed at this test: https://github.com/sgl-project/sglang/actions/runs/16255155597/job/45890331952#step:4:736
logger
.
warning
(
"Disable hybrid SWA memory for Gemma2ForCausalLM."
)
self
.
disable_hybrid_swa_memory
=
True
# Check LoRA
# Check LoRA
self
.
check_lora_server_args
()
self
.
check_lora_server_args
()
...
...
python/sglang/test/test_utils.py
View file @
e314b084
...
@@ -27,9 +27,6 @@ import torch.nn.functional as F
...
@@ -27,9 +27,6 @@ import torch.nn.functional as F
from
sglang.bench_serving
import
run_benchmark
from
sglang.bench_serving
import
run_benchmark
from
sglang.global_config
import
global_config
from
sglang.global_config
import
global_config
from
sglang.lang.backend.openai
import
OpenAI
from
sglang.lang.backend.runtime_endpoint
import
RuntimeEndpoint
from
sglang.lang.interpreter
import
ProgramState
from
sglang.srt.utils
import
(
from
sglang.srt.utils
import
(
get_bool_env_var
,
get_bool_env_var
,
get_device
,
get_device
,
...
@@ -358,6 +355,9 @@ def add_common_sglang_args_and_parse(parser: argparse.ArgumentParser):
...
@@ -358,6 +355,9 @@ def add_common_sglang_args_and_parse(parser: argparse.ArgumentParser):
def
select_sglang_backend
(
args
:
argparse
.
Namespace
):
def
select_sglang_backend
(
args
:
argparse
.
Namespace
):
from
sglang.lang.backend.openai
import
OpenAI
from
sglang.lang.backend.runtime_endpoint
import
RuntimeEndpoint
if
args
.
backend
.
startswith
(
"srt"
):
if
args
.
backend
.
startswith
(
"srt"
):
if
args
.
backend
==
"srt-no-parallel"
:
if
args
.
backend
==
"srt-no-parallel"
:
global_config
.
enable_parallel_encoding
=
False
global_config
.
enable_parallel_encoding
=
False
...
...
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