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
cc88d98a
Unverified
Commit
cc88d98a
authored
Apr 08, 2025
by
DangKai
Committed by
GitHub
Apr 08, 2025
Browse files
fix empty_cache error in pt_weights_iterator (#5151)
Co-authored-by:
dangkai.dk
<
dangkai.dk@alibaba-inc.com
>
parent
3033c11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
python/sglang/srt/model_loader/weight_utils.py
python/sglang/srt/model_loader/weight_utils.py
+0
-1
No files found.
python/sglang/srt/model_loader/weight_utils.py
View file @
cc88d98a
...
...
@@ -457,7 +457,6 @@ def pt_weights_iterator(
state
=
torch
.
load
(
bin_file
,
map_location
=
"cpu"
,
weights_only
=
True
)
yield
from
state
.
items
()
del
state
torch
.
cuda
.
empty_cache
()
def
get_gguf_extra_tensor_names
(
...
...
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