Skip to content

Commit

Permalink
cleaner node info =
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCheema committed Jul 20, 2024
1 parent 04f2aa2 commit a2a7ca1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions exo/viz/topology_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ def _generate_layout(self) -> str:
else:
visualization[y][x] = '🔵' # Blue circle for inactive nodes

# Place node info (ID, start_layer, end_layer)
# Place node info (model, memory, TFLOPS, partition) on three lines
node_info = [
f"Model: {device_capabilities.model}",
f"Mem: {device_capabilities.memory // 1024}GB",
f"FLOPS: {device_capabilities.flops.fp16}T",
f"Part: {partition.start:.2f}-{partition.end:.2f}"
f"{device_capabilities.model} {device_capabilities.memory // 1024}GB",
f"{device_capabilities.flops.fp16}TFLOPS",
f"[{partition.start:.2f}-{partition.end:.2f}]"
]

# Calculate info position based on angle
Expand Down

0 comments on commit a2a7ca1

Please sign in to comment.