mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 04:32:50 +08:00
parent
8e7d50dae4
commit
60ceace8a0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user