-
Notifications
You must be signed in to change notification settings - Fork 510
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
RuntimeError: Attempt to start a new process before current process has finished its bootstrapping phase #405
Comments
Hi @mberman84, Unfortunately, we don't support macOS natively. Can you install our Docker and try to experiment from there? You can look up Docker docs on how to run terminal/Python/Jupyter from inside an existing container image |
Downloading the entire model is not the correct behavior - instead, it should download ~3 shards with embeddings and LM head (the start and the end of the model), but skip downloading the intermediate transformer blocks (= most shards) |
Hi @mberman84, We've shipped native macOS support in #477 - both macOS clients and servers (including ones using Apple M1/M2 GPU) now work out of the box. You can try the latest version with: pip install --upgrade git+https://github.com/bigscience-workshop/petals Please ensure that you use Python 3.10+ (you can use Homebrew to install one: Please let me know if you meet any issues while installing or using it! |
Hi @borzunov, I'm genuinely happy you've been working on native macOS support – this is a game-changer for me. Thank you so much, this is really appreciated. I ran "pip install --upgrade git+https://github.com/bigscience-workshop/petals" within a Python 3.11.4 virtual environment. But when trying to run the script I got the same error as before the upgrade:
I'm running this on an Intel MacBook. Do you happen to have any idea what I'm missing? |
Hi @Spider-netizen, Please move your script's code into the You need that because, unlike Linux, macOS creates subprocesses via spawn (basically runs this script again with another When I have time, I'll check if it's possible to update the library to make it work without this condition, so it's not confusing for macOS users. |
This doesn't change anything on Linux but helps macOS users. Specifically, it's helps to: - Avoid [this error](bigscience-workshop/petals#405 (comment)) for people who don't use `if __name__ == "__main__"` in simple scripts on macOS (that uses spawn for processes by default). - Make DHT consistent with other code that inherits from `mp.context.ForkProcess` directly.
Just fixed it, now it should work even without
|
This doesn't change anything on Linux but helps macOS users. Specifically, it's helps to: - Avoid [this error](bigscience-workshop/petals#405 (comment)) for people who don't use `if __name__ == "__main__"` in simple scripts on macOS (that uses spawn for processes by default). - Make DHT consistent with other code that inherits from `mp.context.ForkProcess` directly. (cherry picked from commit 1eb5d18)
I'm using MacOS and got everything installed. Now I'm trying to run the code recommended in the docs:
However, when I try this, I get this error:
When I try to use the new LLama2 model (I have access) it starts to download the entire model, which is obviously huge (15x9gb). Is that the correct behavior?
The text was updated successfully, but these errors were encountered: