change order
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from dashboard_utils.bubbles import get_new_bubble_data
|
|
10 |
wandb.login(anonymous="must")
|
11 |
|
12 |
st.title("Training transformers together dashboard")
|
13 |
-
st.
|
14 |
|
15 |
steps, losses, alive_peers = get_main_metrics()
|
16 |
source = pd.DataFrame({
|
@@ -21,21 +21,22 @@ chart_loss = alt.Chart(source).mark_line().encode(
|
|
21 |
x='steps',
|
22 |
y='loss'
|
23 |
)
|
24 |
-
st.altair_chart(chart_loss)
|
25 |
|
26 |
-
st.
|
27 |
-
st.header("Snapshot")
|
28 |
-
serialized_data, profiles = get_new_bubble_data()
|
29 |
-
observers = observable(
|
30 |
-
"Participants",
|
31 |
-
notebook="d/9ae236a507f54046", # "@huggingface/participants-bubbles-chart",
|
32 |
-
targets=["c_noaws"],
|
33 |
-
redefine={"serializedData": serialized_data, "profileSimple": profiles},
|
34 |
-
)
|
35 |
-
|
36 |
-
st.header("Overtime")
|
37 |
chart_alive_peer = alt.Chart(source).mark_line().encode(
|
38 |
x='steps',
|
39 |
y='alive participants'
|
40 |
)
|
41 |
-
st.altair_chart(chart_alive_peer)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
wandb.login(anonymous="must")
|
11 |
|
12 |
st.title("Training transformers together dashboard")
|
13 |
+
st.caption("Training Loss")
|
14 |
|
15 |
steps, losses, alive_peers = get_main_metrics()
|
16 |
source = pd.DataFrame({
|
|
|
21 |
x='steps',
|
22 |
y='loss'
|
23 |
)
|
24 |
+
st.altair_chart(chart_loss, use_container_width=True)
|
25 |
|
26 |
+
st.caption("Number of alive participants over time")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
chart_alive_peer = alt.Chart(source).mark_line().encode(
|
28 |
x='steps',
|
29 |
y='alive participants'
|
30 |
)
|
31 |
+
st.altair_chart(chart_alive_peer, use_container_width=True)
|
32 |
+
|
33 |
+
st.header("Collaborative training participants")
|
34 |
+
serialized_data, profiles = get_new_bubble_data()
|
35 |
+
with st.spinner('Wait for it...'):
|
36 |
+
observers = observable(
|
37 |
+
"Participants",
|
38 |
+
notebook="d/9ae236a507f54046", # "@huggingface/participants-bubbles-chart",
|
39 |
+
targets=["c_noaws"],
|
40 |
+
redefine={"serializedData": serialized_data, "profileSimple": profiles},
|
41 |
+
)
|
42 |
+
|