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

assistant prefill #2615

Merged
merged 21 commits into from
Jan 15, 2025
Merged

assistant prefill #2615

merged 21 commits into from
Jan 15, 2025

Conversation

baberabb
Copy link
Contributor

@baberabb baberabb commented Jan 7, 2025

add an assistant_prefill to the chat prompt.

This makes it so the assistant's responses include certain content at the start after the <|assistant|> token

added arc_challenge_chat and mmlu_llama (both chat) from llama evals

@baberabb baberabb changed the title Prefix assistant prefill Jan 7, 2025
@baberabb
Copy link
Contributor Author

with apply_chat_template and fewshot_as_multiturn

vllm (pretrained=meta-llama/Llama-3.1-8B-Instruct,enable_prefix_caching=True), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: auto

Tasks Version Filter n-shot Metric Value Stderr
arc_challenge_chat 1 remove_whitespace 0 exact_match 0.8157 ± 0.0113

vllm (pretrained=meta-llama/Llama-3.1-8B-Instruct,enable_prefix_caching=True), gen_kwargs: (None), limit: None, num_fewshot: None, batch_size: auto

Groups Version Filter n-shot Metric Value Stderr
mmlu_llama 1 strict_match exact_match 0.6585 ± 0.0038

There appears to be a discrepancy between our evaluation results and those reported in the Hugging Face eval repo for meta-llama/Llama-3.1-8B-Instruct model. However prompts are exactly the same

@baberabb baberabb merged commit 703fbff into main Jan 15, 2025
8 checks passed
@baberabb baberabb deleted the prefix branch January 15, 2025 23:09
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.

1 participant