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

Always use spawn multiprocessing context #435

Merged
merged 2 commits into from
Dec 25, 2022
Merged

Always use spawn multiprocessing context #435

merged 2 commits into from
Dec 25, 2022

Conversation

NullSenseStudio
Copy link
Collaborator

Unix based systems use the multiprocessing context fork whereas Windows and macOS systems use spawn by default. This is leading to the _load_dependencies() function never being called so most of the backend is non-functional.

Fixes #430

Copy link
Owner

@carson-katri carson-katri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This behavior seems very odd, nice catch! And if fork was preferable for Linux, I wonder why macOS doesn't use 'fork' by default.

@carson-katri carson-katri merged commit fc72e14 into carson-katri:main Dec 25, 2022
@carson-katri carson-katri added this to the v0.0.10 milestone Jan 15, 2023
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.

ModuleNotFoundErrors: No modules named 'diffusers' nor 'huggingface_hub'
2 participants