-
Notifications
You must be signed in to change notification settings - Fork 250
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
[ENH] add internlm2-chat-20b-ppo #207
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d7b97d0
add model config
C1rN09 2153360
modify `huggingface_local_completion` to remove EOS
C1rN09 7081250
add results & update leaderboard
C1rN09 e8b579a
delete extra leaderboard csv
C1rN09 0efc893
add docstring of `remove_ending`
C1rN09 4a816e3
remove reference_outputs.json
C1rN09 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4,832 changes: 4,832 additions & 0 deletions
4,832
results/internlm2-chat-20b-ppo/model_outputs.json
Large diffs are not rendered by default.
Oops, something went wrong.
64,151 changes: 64,151 additions & 0 deletions
64,151
results/internlm2-chat-20b-ppo/weighted_alpaca_eval_gpt4_turbo/annotations.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
15 changes: 15 additions & 0 deletions
15
src/alpaca_eval/models_configs/internlm2-chat-20b-ppo/configs.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,15 @@ | ||
internlm2-chat-20b-ppo: | ||
prompt_template: "internlm2-chat-20b-ppo/prompt.txt" | ||
fn_completions: "huggingface_local_completions" | ||
completions_kwargs: | ||
model_name: "internlm/internlm2-chat-20b" | ||
model_kwargs: | ||
torch_dtype: "bfloat16" | ||
trust_remote_code: True | ||
is_fast_tokenizer: False | ||
max_new_tokens: 2048 | ||
batch_size: 32 | ||
eos_token_id: 92542 | ||
remove_ending: "[UNUSED_TOKEN_145]" | ||
pretty_name: "InternLM2 Chat 20B ppo" | ||
link: "https://huggingface.co/internlm/internlm2-chat-20b" |
3 changes: 3 additions & 0 deletions
3
src/alpaca_eval/models_configs/internlm2-chat-20b-ppo/prompt.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,3 @@ | ||
[UNUSED_TOKEN_146]user | ||
{instruction}[UNUSED_TOKEN_145] | ||
[UNUSED_TOKEN_146]assistant |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
note that we typically use 4096 for newer models. 2048 is perfectly fine just saying in case some outputs are truncated
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.
Thanks for your advice!
Currently we haven't observed too many truncated completions. We suppose
2048
tokens is enough for our model. Responses above2048
tokens are generally nonsense repetition, which might waste GPU time & GPT tokens