Replies: 1 comment
-
hey @saxoji were you able to use this ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
_register_template(
name="granite",
format_user=StringFormatter(
slots=[
(
"<|start_of_role|>user<|end_of_role|>{{content}}<|end_of_text|>"
"<|start_of_role|>assistant<|end_of_role|>"
)
]
),
format_assistant=StringFormatter(
slots=[
"<|start_of_role|>assistant<|end_of_role|>{{content}}<|end_of_text|>"
]
),
format_system=StringFormatter(
slots=[
"<|start_of_role|>system<|end_of_role|>{{content}}<|end_of_text|>"
]
),
format_observation=StringFormatter(
slots=[
(
"<|start_of_role|>tool_response<|end_of_role|>\n\n{{content}}<|end_of_text|>"
"<|start_of_role|>assistant<|end_of_role|>\n\n"
)
]
),
format_prefix=EmptyFormatter(slots=["<|end_of_text|>"]),
default_system=(
"You are a helpful assistant."
),
stop_words=["<|end_of_text|>"],
replace_eos=True,
replace_jinja_template=False,
)
Beta Was this translation helpful? Give feedback.
All reactions