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
afcd3e10
"torchvision/transforms/v2/_misc.py" did not exist on "15b97d4b3c6493e1593ddfe4fa1c59d89b79829e"
Unverified
Commit
afcd3e10
authored
Oct 02, 2025
by
fzyzcjy
Committed by
GitHub
Oct 02, 2025
Browse files
Tiny remove duplicated code (#11164)
parent
12d68183
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+0
-8
No files found.
python/sglang/srt/utils.py
View file @
afcd3e10
...
...
@@ -2618,14 +2618,6 @@ def read_system_prompt_from_file(model_name: str) -> str:
return
""
def
bind_or_assign
(
target
,
source
):
if
target
is
not
None
:
target
.
copy_
(
source
)
return
target
else
:
return
source
def
prepack_weight_if_needed
(
weight
):
if
weight
.
device
!=
torch
.
device
(
"cpu"
):
return
weight
...
...
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