Open Hans-digit opened 2 weeks ago
One of my colleague faced this problem.
he has a messy preprocess in init method of custom dataset class.
In this case, is there any method to preprocess once in only main process and copy this dataset class to other subprocess.
In the same way, is there method to generate model once and copy this model to other subprocess, only call init method of model once.
Thanks for your help.
found answer for dataset class here
https://github.com/huggingface/accelerate/issues/3001
not found answer for model yet.
One of my colleague faced this problem.
he has a messy preprocess in init method of custom dataset class.
In this case, is there any method to preprocess once in only main process and copy this dataset class to other subprocess.
In the same way, is there method to generate model once and copy this model to other subprocess, only call init method of model once.
Thanks for your help.