Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Benchmark automation #3

wants to merge 7 commits into from

Conversation

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

Choose a reason for hiding this comment

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

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

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
Collaborator Author

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":
Copy link
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
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