Skip to content
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

Can't pickle <class 'dlimp.dataset.DLataset'> #6

Open
DelinQu opened this issue Jul 11, 2024 · 0 comments
Open

Can't pickle <class 'dlimp.dataset.DLataset'> #6

DelinQu opened this issue Jul 11, 2024 · 0 comments

Comments

@DelinQu
Copy link

DelinQu commented Jul 11, 2024

Hi kvablack,
thanks for your great work! I'm using dlimp to read the OpenX dataset and train a model using huggingface Trainer for muti-GPU acceleration. In multi-GPU training, an issue involving serialization occurs when loading the dataset and starting the training. The following error is encountered:

train_dataset = build_datasets(
    data_args,
)

# TEST: dump using pickle
import pickle
filehandler = open("outputs/dataset.obj","wb")
pickle.dump(train_dataset, filehandler)

# [error]
pickle.PicklingError: Can't pickle <class 'dlimp.dataset.DLataset'>: it's not the same object as dlimp.dataset.DLataset

I believe the issue lies in the serialization of the dlimp Dataset or tf Dataset. Could you provide any solution or suggestions?
Many Thanks! 🤗

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

No branches or pull requests

1 participant