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

Document Lance compatibility with python multiprocessing #2405

Closed
ipoflex opened this issue May 29, 2024 · 0 comments · Fixed by #2506
Closed

Document Lance compatibility with python multiprocessing #2405

ipoflex opened this issue May 29, 2024 · 0 comments · Fixed by #2506
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@ipoflex
Copy link

ipoflex commented May 29, 2024

When using a pytorch Dataloader with many workers, access to lance dataset will hang forever. This is due to the fact that torch.utils.data.Dataloader use "fork" method for multiprocessing by default. The need of using "spawn" method with lance is mentionned in lancedb FAQ : https://lancedb.github.io/lancedb/faq/#does-lancedb-support-concurrent-operations but nowhere in lance doc, example, guide or repo. There is this issue : #2204 which was send to me by someone of lance team on discord. So as it was aked to me, i'm creating this issue to let you know that this information should maybe be written in docs or guides.
Maybe here : https://github.com/lancedb/lance-deeplearning-recipes as deep-learning usually use multi-gpu.

@wjones127 wjones127 added documentation Improvements or additions to documentation good first issue Good for newcomers labels May 29, 2024
@wjones127 wjones127 changed the title Lance compatibility with python multiprocessing Document Lance compatibility with python multiprocessing May 29, 2024
@wjones127 wjones127 self-assigned this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants