[object Object]

← back to Exo

Only collect topology if peers changed

470f961fbb3cd506feba02fcc7259f24854b37a8 · 2024-12-15 02:50:34 -0800 · Nel Nibcord

Files touched

Diff

commit 470f961fbb3cd506feba02fcc7259f24854b37a8
Author: Nel Nibcord <blindcrone@tuta.io>
Date:   Sun Dec 15 02:50:34 2024 -0800

    Only collect topology if peers changed
---
 exo/orchestration/node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exo/orchestration/node.py b/exo/orchestration/node.py
index 131b75e5..b68cd692 100644
--- a/exo/orchestration/node.py
+++ b/exo/orchestration/node.py
@@ -542,8 +542,8 @@ class Node:
       try:
         did_peers_change = await self.update_peers()
         if DEBUG >= 2: print(f"{did_peers_change=}")
-        await self.collect_topology(set())
         if did_peers_change:
+          await self.collect_topology(set())
           await self.select_best_inference_engine()
       except Exception as e:
         print(f"Error collecting topology: {e}")

← a9309210 set max-generate-tokens to 250  ·  back to Exo  ·  one token at a time f55a53ae →