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
9b8ebb27
Unverified
Commit
9b8ebb27
authored
Oct 09, 2025
by
Lianmin Zheng
Committed by
GitHub
Oct 09, 2025
Browse files
move more files under srt/utils (#11285)
parent
758b887a
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
7 deletions
+7
-7
python/sglang/srt/utils/aio_rwlock.py
python/sglang/srt/utils/aio_rwlock.py
+0
-0
python/sglang/srt/utils/bench_utils.py
python/sglang/srt/utils/bench_utils.py
+0
-0
python/sglang/srt/utils/common.py
python/sglang/srt/utils/common.py
+1
-1
python/sglang/srt/utils/host_shared_memory.py
python/sglang/srt/utils/host_shared_memory.py
+0
-0
python/sglang/srt/utils/offloader.py
python/sglang/srt/utils/offloader.py
+4
-4
python/sglang/srt/utils/torch_memory_saver_adapter.py
python/sglang/srt/utils/torch_memory_saver_adapter.py
+0
-0
sgl-kernel/benchmark/bench_per_token_group_quant_8bit.py
sgl-kernel/benchmark/bench_per_token_group_quant_8bit.py
+1
-1
sgl-kernel/benchmark/bench_rotary_embedding.py
sgl-kernel/benchmark/bench_rotary_embedding.py
+1
-1
No files found.
python/sglang/srt/aio_rwlock.py
→
python/sglang/srt/
utils/
aio_rwlock.py
View file @
9b8ebb27
File moved
python/sglang/srt/bench_utils.py
→
python/sglang/srt/
utils/
bench_utils.py
View file @
9b8ebb27
File moved
python/sglang/srt/utils/common.py
View file @
9b8ebb27
...
@@ -487,7 +487,7 @@ def make_layers(
...
@@ -487,7 +487,7 @@ def make_layers(
# circula imports
# circula imports
from
sglang.srt.distributed
import
get_pp_indices
from
sglang.srt.distributed
import
get_pp_indices
from
sglang.srt.layers.utils
import
PPMissingLayer
from
sglang.srt.layers.utils
import
PPMissingLayer
from
sglang.srt.offloader
import
get_offloader
from
sglang.srt.
utils.
offloader
import
get_offloader
assert
not
pp_size
or
num_hidden_layers
>=
pp_size
assert
not
pp_size
or
num_hidden_layers
>=
pp_size
start_layer
,
end_layer
=
(
start_layer
,
end_layer
=
(
...
...
python/sglang/srt/host_shared_memory.py
→
python/sglang/srt/
utils/
host_shared_memory.py
View file @
9b8ebb27
File moved
python/sglang/srt/offloader.py
→
python/sglang/srt/
utils/
offloader.py
View file @
9b8ebb27
...
@@ -11,14 +11,14 @@ from sglang.srt.distributed.naive_distributed import (
...
@@ -11,14 +11,14 @@ from sglang.srt.distributed.naive_distributed import (
get_naive_distributed
,
get_naive_distributed
,
set_naive_distributed
,
set_naive_distributed
,
)
)
from
sglang.srt.host_shared_memory
import
(
from
sglang.srt.layers.parameter
import
ModelWeightParameter
from
sglang.srt.server_args
import
ServerArgs
from
sglang.srt.utils
import
MultiprocessingSerializer
,
is_pin_memory_available
from
sglang.srt.utils.host_shared_memory
import
(
HostSharedMemoryManager
,
HostSharedMemoryManager
,
get_host_shared_memory_manager
,
get_host_shared_memory_manager
,
set_host_shared_memory_manager
,
set_host_shared_memory_manager
,
)
)
from
sglang.srt.layers.parameter
import
ModelWeightParameter
from
sglang.srt.server_args
import
ServerArgs
from
sglang.srt.utils
import
MultiprocessingSerializer
,
is_pin_memory_available
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
python/sglang/srt/torch_memory_saver_adapter.py
→
python/sglang/srt/
utils/
torch_memory_saver_adapter.py
View file @
9b8ebb27
File moved
sgl-kernel/benchmark/bench_per_token_group_quant_8bit.py
View file @
9b8ebb27
...
@@ -7,7 +7,6 @@ from pathlib import Path
...
@@ -7,7 +7,6 @@ from pathlib import Path
import
torch
import
torch
import
triton
import
triton
from
sglang.srt.bench_utils
import
bench_kineto
from
sglang.srt.layers.quantization.fp8_kernel
import
(
from
sglang.srt.layers.quantization.fp8_kernel
import
(
create_per_token_group_quant_fp8_output_scale
,
create_per_token_group_quant_fp8_output_scale
,
)
)
...
@@ -16,6 +15,7 @@ from sglang.srt.layers.quantization.fp8_kernel import (
...
@@ -16,6 +15,7 @@ from sglang.srt.layers.quantization.fp8_kernel import (
)
)
from
sglang.srt.layers.quantization.fp8_kernel
import
sglang_per_token_group_quant_8bit
from
sglang.srt.layers.quantization.fp8_kernel
import
sglang_per_token_group_quant_8bit
from
sglang.srt.utils
import
is_hip
from
sglang.srt.utils
import
is_hip
from
sglang.srt.utils.bench_utils
import
bench_kineto
# CI environment detection
# CI environment detection
IS_CI
=
(
IS_CI
=
(
...
...
sgl-kernel/benchmark/bench_rotary_embedding.py
View file @
9b8ebb27
...
@@ -11,7 +11,7 @@ from sgl_kernel.testing.rotary_embedding import (
...
@@ -11,7 +11,7 @@ from sgl_kernel.testing.rotary_embedding import (
create_inputs
,
create_inputs
,
)
)
from
sglang.srt.bench_utils
import
bench_kineto
from
sglang.srt.
utils.
bench_utils
import
bench_kineto
# CI environment detection
# CI environment detection
IS_CI
=
(
IS_CI
=
(
...
...
Prev
1
2
Next
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