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
dc67d976
Unverified
Commit
dc67d976
authored
Sep 04, 2024
by
Yineng Zhang
Committed by
GitHub
Sep 04, 2024
Browse files
misc: speedup load safetensors (#1319)
Co-authored-by:
ispobock
<
ISPObaoke@163.com
>
parent
1e495e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+1
-0
No files found.
python/sglang/srt/model_executor/model_runner.py
View file @
dc67d976
...
...
@@ -162,6 +162,7 @@ class ModelRunner:
return
min_per_gpu_memory
def
load_model
(
self
):
torch
.
set_num_threads
(
1
)
logger
.
info
(
f
"Load weight begin. avail mem=
{
get_available_gpu_memory
(
self
.
gpu_id
):.
2
f
}
GB"
)
...
...
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