-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark automation #3
base: main
Are you sure you want to change the base?
Conversation
Errors: results and regeneration + Initial benchmark automation
export PORT="$vllm_port" | ||
export HF_CACHE="$hf_cache" | ||
|
||
docker run --runtime nvidia --gpus '"device=0,1,2,3,4,5,6,7"' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавить возможность задавать список device
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще оставить один device (который можно задавать), так как с такими параметрами vllm использует только одну карточку
clean_env "$model_type" | ||
|
||
vllm_port=$(get_param_from_string "$var_values" "vllm_port") | ||
hf_cache="/nfs/$(whoami)/hf_cache" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно вынести директорию к кэшем куда-нибудь наверх, чтобы можно было руками её прописать
@@ -53,54 +55,42 @@ def get_answer( | |||
turns = [] | |||
for j in range(len(question["turns"])): | |||
conv.append({"role": "user", "content": question["turns"][j]["content"]}) | |||
if api_type == "anthropic": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вернуть api_type для антропиков, добавить расчет токенов для этого типа апи
@@ -0,0 +1,143 @@ | |||
# -*- coding: utf-8 -*- | |||
import sys | |||
import yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавить pyyaml в requirements.txt
No description provided.