[object Object]

← back to Exo

update gpu rich/poor calc

2caccf897b381a24de9b5556762bfe89b73199e0 · 2024-09-20 18:13:55 +0100 · Alex Cheema

Files touched

Diff

commit 2caccf897b381a24de9b5556762bfe89b73199e0
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Fri Sep 20 18:13:55 2024 +0100

    update gpu rich/poor calc
---
 exo/viz/topology_viz.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exo/viz/topology_viz.py b/exo/viz/topology_viz.py
index 3664f378..ab66773a 100644
--- a/exo/viz/topology_viz.py
+++ b/exo/viz/topology_viz.py
@@ -161,7 +161,7 @@ class TopologyViz:
 
     # Calculate total FLOPS and position on the bar
     total_flops = sum(self.topology.nodes.get(partition.node_id, UNKNOWN_DEVICE_CAPABILITIES).flops.fp16 for partition in self.partitions)
-    bar_pos = (math.tanh(total_flops/20 - 2) + 1)/2
+    bar_pos = (math.tanh(math.cbrt(total_flops)/2.5 - 2) + 1)
 
     # Add GPU poor/rich bar
     bar_width = 30

← 6ce8fd87 script to configure mlx  ·  back to Exo  ·  tweak ci for unit tests b1ec5ae2 →