Skip to content

Commit

Permalink
Fix typo in Baichuan2 example (#10589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangky11 authored Mar 29, 2024
1 parent 52f1b54 commit 848fa04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# prompt format referred from https://github.com/baichuan-inc/Baichuan2/issues/227
# and https://huggingface.co/baichuan-inc/Baichuan2-7B-Chat/blob/main/generation_utils.py#L7-L49
# For English prompt, you are recommended to change the prompt format.
BAICHUAN_PROMPT_FORMAT = "<reserved_106> {prompt} <reserved_107>"
BAICHUAN2_PROMPT_FORMAT = "<reserved_106> {prompt} <reserved_107>"

if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Predict Tokens using `generate()` API for Baichuan2 model')
Expand Down

0 comments on commit 848fa04

Please sign in to comment.