Explorar o código

Improve "connect your GPU" message (#266)

Alexander Borzunov %!s(int64=2) %!d(string=hai) anos
pai
achega
a2e7f27a5a
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/petals/client/routing/sequence_manager.py

+ 4 - 4
src/petals/client/routing/sequence_manager.py

@@ -365,8 +365,8 @@ def maybe_log_traceback(exc: Exception):
 class MissingBlocksError(RuntimeError):
     def __init__(self, block_indices: Union[int, Sequence[int]]):
         super().__init__(
-            f"No servers holding blocks {block_indices} are online.\n"
-            f"You can check the public swarm's state at http://health.petals.ml\n\n"
-            f"If there are not enough servers, please consider connecting your own GPU:\n"
-            f"https://github.com/bigscience-workshop/petals#connect-your-gpu-and-increase-petals-capacity"
+            f"No servers holding blocks {block_indices} are online. "
+            f"You can check the public swarm's state at http://health.petals.ml "
+            f"If there are not enough servers, please connect your GPU: "
+            f"https://github.com/bigscience-workshop/petals#connect-your-gpu-and-increase-petals-capacity "
         )