Skip to content

Conversation

@robertnishihara
Copy link
Collaborator

I'm a little surprised that the cloudpickle modifications no longer seem to be necessary. I thought we needed those changes in order to pickle remote functions that invoked other remote functions.

@mehrdadn, do you remember any examples of functions that can't be pickled normally by cloudpickle but that could be pickled with the augmented version? I can't seem to recreate such an example at the moment.

The problem probably still exists, so if that's the case we should see if we can create a patch for cloudpickle.

@mehrdadn
Copy link
Contributor

I have an example in my bug report here. It doesn't seem to have been marked as resolved, so I expect it to still be broken in the latest version of CloudPickle.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/882/
Test PASSed.

@robertnishihara
Copy link
Collaborator Author

robertnishihara commented May 24, 2017

Thanks @mehrdadn. The reason we didn't submit your patch to cloudpickle was that it only works for CPython, is that right?

@mehrdadn
Copy link
Contributor

Yup.

@wesm
Copy link

wesm commented May 24, 2017

see also https://github.com/spartan-array/spartan/blob/master/spartan/cloudpickle.pyx, a cythonized version of cloudpickle

@robertnishihara
Copy link
Collaborator Author

Thanks for the link!

@pcmoritz
Copy link
Contributor

@wesm Thanks for the link! Did you try it out by any chance and measure the speed vs. regular cloudpickle?

@robertnishihara
Copy link
Collaborator Author

The test failure here is #591.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/886/
Test PASSed.

@pcmoritz pcmoritz merged commit 997aa35 into ray-project:master May 25, 2017
@pcmoritz pcmoritz deleted the removepickling branch May 25, 2017 03:22
@wesm
Copy link

wesm commented May 25, 2017

I haven't tested it personally but it may be worth evaluating at some point

@pcmoritz
Copy link
Contributor

mehrdad is fixing this whole class of problems upstream here: cloudpipe/cloudpickle#89

Myasuka pushed a commit to Myasuka/ray that referenced this pull request Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants