Former-commit-id: 4cc2781efebd696ca42ce3c71d80e2eb707040cf
This commit is contained in:
hiyouga 2024-02-29 00:37:29 +08:00
parent 8e7d50dae4
commit 60ceace8a0

View File

@ -258,7 +258,7 @@ def get_template_and_fix_tokenizer(
template = templates["vanilla"] # placeholder
else:
template = templates.get(name, None)
if templates is None:
if template is None:
raise ValueError("Template {} does not exist.".format(name))
stop_words = template.stop_words