Open ming024 opened 1 year ago
In the data collator of AddLabelDataset
https://github.com/asappresearch/slue-toolkit/blob/ea0939b0c9da80f19dda35af26e117834fb20ec6/slue_toolkit/fairseq_addon/data/add_label_dataset.py#L28-L33
If self.dataset.collater sort the collated data, target and collated will become mismatched.
self.dataset.collater
target
collated
In the data collator of AddLabelDataset
https://github.com/asappresearch/slue-toolkit/blob/ea0939b0c9da80f19dda35af26e117834fb20ec6/slue_toolkit/fairseq_addon/data/add_label_dataset.py#L28-L33
If
self.dataset.collater
sort the collated data,target
andcollated
will become mismatched.