-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Self-taught-llama3.1-70B-dpo as a evaluator (#412)
- Loading branch information
1 parent
10051fd
commit d96bcbd
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/alpaca_eval/evaluators_configs/Self-taught-llama3.1-70B-dpo/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Self-taught-llama3.1-70B-dpo: | ||
prompt_template: "Self-taught-llama3.1-70B-dpo/self_taught.txt" | ||
fn_completions: "vllm_local_completions" | ||
completions_kwargs: | ||
model_name: "Self-taught-llama3.1-70B-dpo" | ||
max_new_tokens: 512 | ||
temperature: 0 | ||
model_kwargs: | ||
dtype: "half" | ||
tensor_parallel_size: 8 | ||
enable_chunked_prefill: False | ||
max_model_len: 5120 | ||
distributed_executor_backend: "ray" | ||
fn_completion_parser: "regex_parser" | ||
completion_parser_kwargs: | ||
outputs_to_match: | ||
1: "[[A]]" | ||
2: "[[B]]" |
16 changes: 16 additions & 0 deletions
16
src/alpaca_eval/evaluators_configs/Self-taught-llama3.1-70B-dpo/self_taught.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<|start_header_id|>system<|end_header_id|> | ||
|
||
Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user question displayed below. You should choose the assistant that follows the user's instructions and answers the user's question better. Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of their responses. Begin your evaluation by comparing the two responses and provide a short explanation. Avoid any position biases and ensure that the order in which the responses were presented does not influence your decision. Do not allow the length of the responses to influence your evaluation. Do not favor certain names of the assistants. Be as objective as possible. After providing your explanation, output your final verdict by strictly following this format: \"[[A]]\" if assistant A is better, \"[[B]]\" if assistant B is better. <|eot_id|><|start_header_id|>user<|end_header_id|><|eot_id|><|start_header_id|>user<|end_header_id|> | ||
|
||
[User Question] | ||
{instruction} | ||
|
||
[The Start of Assistant A's Answer] | ||
{output_1} | ||
[The End of Assistant A's Answer] | ||
|
||
[The Start of Assistant B's Answer] | ||
{output_2} | ||
[The End of Assistant B's Answer]<|eot_id|><|start_header_id|>assistant<|end_header_id|> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters