There was an error while loading. Please reload this page.
1 parent 27cce16 commit 2a6c2ffCopy full SHA for 2a6c2ff
vllm/v1/structured_output/__init__.py
@@ -44,7 +44,10 @@ def __init__(self, vllm_config: VllmConfig):
44
self.fill_bitmask_parallel_threshold = 128
45
if self.fill_bitmask_parallel_threshold < max_batch_size:
46
self.fill_bitmask_parallel_batch_size = 16
47
- max_workers = max(1, min(multiprocessing.cpu_count(), 8))
+ # Use:
48
+ # - at least 1 CPU
49
+ # - at most half the number of CPUs or 8, whichever is less
50
+ max_workers = max(1, min(multiprocessing.cpu_count() // 2, 8))
51
self.executor_for_fillmask = ThreadPoolExecutor(
52
max_workers=max_workers)
53
0 commit comments