Fix mem_fraction_static for AMD CI (#6748)
This commit is contained in:
@@ -28,6 +28,7 @@ from sglang.srt.utils import (
|
|||||||
configure_ipv6,
|
configure_ipv6,
|
||||||
get_device,
|
get_device,
|
||||||
get_device_memory_capacity,
|
get_device_memory_capacity,
|
||||||
|
is_cuda,
|
||||||
is_flashinfer_available,
|
is_flashinfer_available,
|
||||||
is_hip,
|
is_hip,
|
||||||
is_port_available,
|
is_port_available,
|
||||||
@@ -261,7 +262,7 @@ class ServerArgs:
|
|||||||
self.mem_fraction_static = 0.88
|
self.mem_fraction_static = 0.88
|
||||||
else:
|
else:
|
||||||
self.mem_fraction_static = 0.88
|
self.mem_fraction_static = 0.88
|
||||||
if gpu_mem is not None and gpu_mem > 180 * 1000:
|
if gpu_mem is not None and gpu_mem > 180 * 1000 and is_cuda():
|
||||||
self.mem_fraction_static = 0.79
|
self.mem_fraction_static = 0.79
|
||||||
elif gpu_mem is not None and gpu_mem > 96 * 1024:
|
elif gpu_mem is not None and gpu_mem > 96 * 1024:
|
||||||
mem_fraction = self.mem_fraction_static
|
mem_fraction = self.mem_fraction_static
|
||||||
|
|||||||
Reference in New Issue
Block a user