mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 08:08:09 +08:00
fix error info
Former-commit-id: b90ed220c5e94086d2b73045eff2440ff1b58c5c
This commit is contained in:
parent
32f8b1082b
commit
b8574c1b82
@ -147,7 +147,7 @@ class Template:
|
||||
elif isinstance(elem, dict):
|
||||
token_ids = token_ids + [tokenizer.convert_tokens_to_ids(elem.get("token"))]
|
||||
else:
|
||||
raise NotImplementedError
|
||||
raise ValueError("Input must be string or dict[str, str], got {}".format(type(elem)))
|
||||
|
||||
return token_ids
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user