BacktranslationDataset doesn't work with multiple workers
if num_workers > 0, there will be an error:
AttributeError: Can't pickle local object 'SemisupervisedTranslationTask.build_model.<locals>.backtranslate_fn'
Yeah, I'm not sure BacktranslationDataset was ever intended to be run with multiple workers since it relies on models that are on the GPU. cc @pipibjc
Thanks for reporting! I will need to find some workaround of it. For now we can only use one worker if we want to use BacktranslationDataset
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
This is still an issue