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
zhaoyu6
sglang
Commits
9208591f
Unverified
Commit
9208591f
authored
Aug 17, 2024
by
Yineng Zhang
Committed by
GitHub
Aug 18, 2024
Browse files
fix: use fp16 dtype for sm75 (#1136)
parent
5d0d40d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+5
-0
No files found.
python/sglang/srt/model_executor/model_runner.py
View file @
9208591f
...
@@ -148,6 +148,11 @@ class ModelRunner:
...
@@ -148,6 +148,11 @@ class ModelRunner:
f
"[gpu=
{
self
.
gpu_id
}
] Load weight begin. "
f
"[gpu=
{
self
.
gpu_id
}
] Load weight begin. "
f
"avail mem=
{
get_available_gpu_memory
(
self
.
gpu_id
):.
2
f
}
GB"
f
"avail mem=
{
get_available_gpu_memory
(
self
.
gpu_id
):.
2
f
}
GB"
)
)
if
torch
.
cuda
.
get_device_capability
()[
0
]
<
8
:
logger
.
info
(
"Compute capability below sm80 use float16 due to lack of bfloat16 support."
)
self
.
server_args
.
dtype
=
"float16"
monkey_patch_vllm_dummy_weight_loader
()
monkey_patch_vllm_dummy_weight_loader
()
device_config
=
DeviceConfig
()
device_config
=
DeviceConfig
()
...
...
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