Skip to content

Benchmark automation#3

Open
zemerov wants to merge 7 commits intomainfrom
arena-hard-ru
Open

Benchmark automation#3
zemerov wants to merge 7 commits intomainfrom
arena-hard-ru

Conversation

@zemerov
Copy link
Copy Markdown
Collaborator

@zemerov zemerov commented Aug 2, 2024

No description provided.

export PORT="$vllm_port"
export HF_CACHE="$hf_cache"

docker run --runtime nvidia --gpus '"device=0,1,2,3,4,5,6,7"' \
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить возможность задавать список device

Copy link
Copy Markdown

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"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно вынести директорию к кэшем куда-нибудь наверх, чтобы можно было руками её прописать

turns = []
for j in range(len(question["turns"])):
conv.append({"role": "user", "content": question["turns"][j]["content"]})
if api_type == "anthropic":
Copy link
Copy Markdown
Collaborator Author

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
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить pyyaml в requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants