Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import matplotlib.pyplot as plt
|
|
3 |
import matplotlib.patches as patches
|
4 |
import math
|
5 |
|
6 |
-
plt.rcParams['axes.prop_cycle'] = plt.cycler(color=["#FF6600","#FFBE00","#496767", "#87A19E", "#FF9200", "#0F3538","#F8E08E", "#0F2021","#FAFAF0"])
|
7 |
|
8 |
def visualize_cluster(tp, pp, nodes, nodes_per_row, node_spacing=0.5, gpu_spacing=0.1 ):
|
9 |
gpus_per_row = 2
|
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
|
|
72 |
with gr.Row():
|
73 |
|
74 |
tp = gr.Number(value=4, label="Tensor Parallel")
|
75 |
-
pp = gr.Number(value=
|
76 |
nodes = gr.Number(value=8, label="Number of Compute Nodes")
|
77 |
nodes_per_row = gr.Number(value=8, label="Number Nodes per Row")
|
78 |
|
|
|
3 |
import matplotlib.patches as patches
|
4 |
import math
|
5 |
|
6 |
+
# plt.rcParams['axes.prop_cycle'] = plt.cycler(color=["#FF6600","#FFBE00","#496767", "#87A19E", "#FF9200", "#0F3538","#F8E08E", "#0F2021","#FAFAF0"])
|
7 |
|
8 |
def visualize_cluster(tp, pp, nodes, nodes_per_row, node_spacing=0.5, gpu_spacing=0.1 ):
|
9 |
gpus_per_row = 2
|
|
|
72 |
with gr.Row():
|
73 |
|
74 |
tp = gr.Number(value=4, label="Tensor Parallel")
|
75 |
+
pp = gr.Number(value=4, label="Pipeline Parallel")
|
76 |
nodes = gr.Number(value=8, label="Number of Compute Nodes")
|
77 |
nodes_per_row = gr.Number(value=8, label="Number Nodes per Row")
|
78 |
|