peterjc123:

OverflowError: cannot serialize a bytes object larger than 4 GiB


Plus: The related python bug: link 142
However, according to this issue 116, this one can be solved by using pickle version 4. But it cannot be controlled on our side. It’s actually a Python bug. As the workground, we could implement something like this 271 that overrides the default pickle version.