Improve "connect your GPU" message #266
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before this PR, the message was:
Feb 18 13:12:02.550 [WARN] [/usr/local/lib/python3.8/dist-packages/petals/client/routing/sequence_manager.py._update:197] Could not find route through the model: MissingBlocksError("No servers holding blocks [65, 66, 67, 68, 69] are online.\nYou can check the public swarm's state at http://health.petals.ml\n\nIf there are not enough servers, please consider connecting your own GPU:\nhttps://github.com/bigscience-workshop/petals#connect-your-gpu-and-increase-petals-capacity") (retry in 0 sec)
Thus, it had line breaks that made it harder to read and prevented the http://health.petals.ml link to be opened from the terminal. This PR fixes this minor issue:
Feb 18 13:12:02.550 [WARN] [petals.client.routing.sequence_manager._update:197] Could not find route through the model: MissingBlocksError("No servers holding blocks [65, 66, 67, 68, 69] are online. You can check the public swarm's state at http://health.petals.ml If there are not enough servers, please connect your GPU: https://github.com/bigscience-workshop/petals#connect-your-gpu-and-increase-petals-capacity ") (retry in 0 sec)