mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 04:32:50 +08:00
fix error info
Former-commit-id: 7e8655c8b59c3fdc455e304cf875a6b7fcb69290
This commit is contained in:
parent
4e6e42bb55
commit
48e7b600a8
@ -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