mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-14 19:06:26 +08:00
@@ -472,9 +472,30 @@ register_template(
|
|||||||
|
|
||||||
r"""
|
r"""
|
||||||
Supports: https://huggingface.co/baichuan-inc/Baichuan-13B-Chat
|
Supports: https://huggingface.co/baichuan-inc/Baichuan-13B-Chat
|
||||||
|
Used for training.
|
||||||
"""
|
"""
|
||||||
register_template(
|
register_template(
|
||||||
name="baichuan",
|
name="baichuan",
|
||||||
|
prefix=[
|
||||||
|
"{{system}}"
|
||||||
|
],
|
||||||
|
prompt=[
|
||||||
|
{"token": "<reserved_102>"}, # user token
|
||||||
|
"{{query}}",
|
||||||
|
{"token": "<reserved_103>"} # assistant token
|
||||||
|
],
|
||||||
|
system="",
|
||||||
|
sep=[],
|
||||||
|
stop_words=[]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
r"""
|
||||||
|
Supports: https://huggingface.co/baichuan-inc/Baichuan-13B-Chat
|
||||||
|
Used for inference of the original model.
|
||||||
|
"""
|
||||||
|
register_template(
|
||||||
|
name="baichuan_eval",
|
||||||
prefix=[
|
prefix=[
|
||||||
"{{system}}",
|
"{{system}}",
|
||||||
{"token": "<reserved_102>"} # user token
|
{"token": "<reserved_102>"} # user token
|
||||||
|
|||||||
Reference in New Issue
Block a user