from dashboard_utils.main_metrics import get_main_metrics import streamlit as st import wandb from streamlit_observable import observable from dashboard_utils.bubbles import get_new_bubble_data wandb.login(anonymous="must") st.title("Training transformers together dashboard") st.header("Training Loss") steps, losses, alive_peers = get_main_metrics() st.line_chart(data={"steps": steps, "loss":losses}) st.header("Collaborative training participants") st.header("Snapshot") serialized_data, profiles = get_new_bubble_data() observers = observable( "Participants", notebook="d/9ae236a507f54046", # "@huggingface/participants-bubbles-chart", targets=["c_noaws"], redefine={"serializedData": serialized_data, "profileSimple": profiles}, ) st.header("Overtime") st.line_chart(data={"steps": steps, "alive participants":alive_peers})