Tune memory arguments on B200 (#6718)
This commit is contained in:
@@ -260,7 +260,9 @@ class ServerArgs:
|
||||
self.mem_fraction_static = 0.88
|
||||
else:
|
||||
self.mem_fraction_static = 0.88
|
||||
if gpu_mem is not None and gpu_mem > 96 * 1024:
|
||||
if gpu_mem is not None and gpu_mem > 180 * 1000:
|
||||
self.mem_fraction_static = 0.79
|
||||
elif gpu_mem is not None and gpu_mem > 96 * 1024:
|
||||
mem_fraction = self.mem_fraction_static
|
||||
# 15 GB + additional 3GB for cuda graph
|
||||
reserve_mem = 1024 * 18
|
||||
@@ -277,7 +279,9 @@ class ServerArgs:
|
||||
|
||||
# Set chunked prefill size, which depends on the gpu memory capacity
|
||||
if self.chunked_prefill_size is None:
|
||||
if gpu_mem is not None and gpu_mem < 25_000:
|
||||
if gpu_mem is not None and gpu_mem > 180_000:
|
||||
self.chunked_prefill_size = 16384
|
||||
elif gpu_mem is not None and gpu_mem < 25_000:
|
||||
self.chunked_prefill_size = 2048
|
||||
elif self.disaggregation_mode != "null":
|
||||
self.chunked_prefill_size = 16384
|
||||
|
||||
Reference in New Issue
Block a user