fix: move gpu_num/cpu_num outside values block to match API spec
This commit is contained in:
10
main.py
10
main.py
@@ -262,8 +262,8 @@ def build_config_params(gpu: str) -> str:
|
||||
'max_model_len': 4096,
|
||||
'modelFormat': 'GGUF',
|
||||
'sut_config': {
|
||||
'gpu_num': 1,
|
||||
'values': {
|
||||
'gpu_num': 1,
|
||||
'command': [
|
||||
'/bin/bash', '-ic',
|
||||
'llama-server --model /model --alias llm --threads 20 '
|
||||
@@ -273,8 +273,9 @@ def build_config_params(gpu: str) -> str:
|
||||
}
|
||||
},
|
||||
'ref_config': {
|
||||
'gpu_num': 1,
|
||||
'values': {
|
||||
'cpu_num': 2, 'gpu_num': 1,
|
||||
'cpu_num': 2,
|
||||
'command': [
|
||||
'llama-server', '--model', '/model', '--alias', 'llm',
|
||||
'--threads', '20', '--n-gpu-layers', '999',
|
||||
@@ -298,8 +299,8 @@ def build_config_params(gpu: str) -> str:
|
||||
'max_model_len': 2048,
|
||||
'modelFormat': 'HuggingFace',
|
||||
'sut_config': {
|
||||
'gpu_num': 1,
|
||||
'values': {
|
||||
'gpu_num': 1,
|
||||
'command': [
|
||||
'/bin/bash', '-ic',
|
||||
'vllm serve /model --port 8000 --served-model-name llm --max-model-len 2048 --dtype auto --gpu-memory-utilization 0.95 -tp 1 --enforce-eager --trust-remote-code'
|
||||
@@ -307,8 +308,9 @@ def build_config_params(gpu: str) -> str:
|
||||
}
|
||||
},
|
||||
'ref_config': {
|
||||
'gpu_num': 1,
|
||||
'values': {
|
||||
'cpu_num': 2, 'gpu_num': 1,
|
||||
'cpu_num': 2,
|
||||
'command': [
|
||||
'vllm', 'serve', '/model', '--port', '8000',
|
||||
'--served-model-name', 'llm', '--max-model-len', '2048',
|
||||
|
||||
Reference in New Issue
Block a user