mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2024-05-04 01:06:47 +03:00
fix dataset
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -60,7 +60,7 @@ def convert_sharegpt(examples: Dict[str, List[Any]], dataset_attr: "DatasetAttr"
|
||||
accept_tags = [dataset_attr.assistant_tag, dataset_attr.function_tag]
|
||||
|
||||
if message[dataset_attr.role_tag] not in accept_tags:
|
||||
raise ValueError("Invalid role tag.")
|
||||
raise ValueError("Invalid role tag in {}.".format(messages))
|
||||
|
||||
prompt.append({"role": tag_mapping[message[dataset_attr.role_tag]], "content": message[dataset_attr.content_tag]})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user