We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d0d40d commit 9208591Copy full SHA for 9208591
1 file changed
python/sglang/srt/model_executor/model_runner.py
@@ -148,6 +148,11 @@ def load_model(self):
148
f"[gpu={self.gpu_id}] Load weight begin. "
149
f"avail mem={get_available_gpu_memory(self.gpu_id):.2f} GB"
150
)
151
+ if torch.cuda.get_device_capability()[0] < 8:
152
+ logger.info(
153
+ "Compute capability below sm80 use float16 due to lack of bfloat16 support."
154
+ )
155
+ self.server_args.dtype = "float16"
156
157
monkey_patch_vllm_dummy_weight_loader()
158
device_config = DeviceConfig()
0 commit comments