-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: cannot pickle 'Environment' object #26
Comments
This happens when there is no GPUs, but I am not sure how to workaround this. |
(I'm not from Amazon). The Nevertheless, I suggest that you use a machine with GPU, because this is research code, and not 'battle-tested' in different environments (e.g. just pure CPU for training). I have testing for inference, CPU-only works, but didn't try training/fine-tuning with just CPU. |
Thanks, it may be reasonable to try at a GPU machine. Just for a reference, I put the full stack trace below.
|
My guess is that the torch data loader is trying spin up x number of worker processes to prepare the batches of data. You can look it up, I think others also encountered similar issues with lmdb pickling when using multiple workers: Cheers |
Hi, I use python 3.12.2 and torch 2.2.2 on macOS 12.7.4.
The ReFinED version is 1.0.
When trying fine-tuning the following error happened.
( python src/refined/training/fine_tune/fine_tune.py --experiment_name test )
TypeError: cannot pickle 'Environment' object
Could you tell me what could be done to workaround this issue?
Thanks.
The text was updated successfully, but these errors were encountered: