fix: make sure to add cpu to number

Signed-off-by: paperspace <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
paperspace
2024-05-09 00:06:10 +00:00
parent d02f267fc7
commit 6726f6ae3e
2 changed files with 15 additions and 2 deletions

View File

@@ -426,7 +426,7 @@ def build_command(
labels = {'library': 'vllm'}
service_config = dict(
resources={
'gpu' if device else 'cpu': len(device) if device else 'cpu_count',
'gpu' if device else 'cpu': len(device) if device else '1',
'gpu_type': recommended_instance_type(model_id, bentomodel),
},
traffic=dict(timeout=timeout),