Fix typo in Baichuan2 example (#10589)

This commit is contained in:
Keyan (Kyrie) Zhang 2024-03-28 22:31:47 -07:00 committed by GitHub
parent 52f1b541cf
commit 848fa04dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ from ipex_llm import optimize_model
# 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')