A straightforward method for training your LLM, from downloading data to generating text.
style(ui): drop em dashes from the control panel's text
FareedKhan-dev2326c0d55030
diff --git a/ui/app.py b/ui/app.pyindex abffd8d..d655b59 100644--- a/ui/app.py+++ b/ui/app.py@@ -1,5 +1,5 @@"""-Train LLM From Scratch β control panel (Home).+Train LLM From Scratch: control panel (Home).Run with: streamlit run ui/app.py"""@@ -14,8 +14,8 @@ from ui import jobs, themefrom ui.stages import ABS_DOC, STAGEStheme.setup_page("Control Panel", "π§ ")-theme.hero("π§ Train LLM From Scratch β Control Panel",- "Pretrain β SFT β Reward Model β DPO β PPO β GRPO Β· evaluate Β· chat β all from one place.")+theme.hero("π§ Train LLM From Scratch: Control Panel",+ "Pretrain β SFT β Reward Model β DPO β PPO β GRPO Β· evaluate Β· chat, all from one place.")# Master pipeline diagram (the hand-drawn overview).overview = ABS_DOC("docs/diagrams/00_overview.png")@@ -35,7 +35,7 @@ if gpus:for col, (i, name, used, total, util) in zip(cols, gpus):col.metric(f"GPU {i} Β· {name.split(' ')[-1]}", f"{used/1024:.0f}/{total/1024:.0f} GB", f"{util}% util")else:- st.info("No GPUs detected (nvidia-smi unavailable) β CPU / smoke mode only.")+ st.info("No GPUs detected (nvidia-smi unavailable): CPU / smoke mode only.")# --- Job status ---st.subheader("π Jobs")diff --git a/ui/config_forms.py b/ui/config_forms.pyindex 06ada8a..cb562b9 100644--- a/ui/config_forms.py+++ b/ui/config_forms.py@@ -2,7 +2,7 @@Render an editable config form from a stage's dataclass fields and write it back to JSON.Base/runtime fields (shared) are saved to ``base.json``; the stage's own hyperparameters to-``configs/<stage>.json`` β matching the loader's merge model. Shows the exact resolved+``configs/<stage>.json``, matching the loader's merge model. Shows the exact resolvedlaunch command underneath."""diff --git a/ui/pages/1_Data.py b/ui/pages/1_Data.pyindex b46a297..4631b68 100644--- a/ui/pages/1_Data.py+++ b/ui/pages/1_Data.py@@ -14,7 +14,7 @@ from ui.stages import DATA_DIR, DATA_SCRIPTStheme.setup_page("Data", "π¦")theme.hero("π¦ Data preparation",- "Download & preprocess the corpora β Pile (pretrain), Alpaca/Dolly/GSM8K (SFT), "+ "Download & preprocess the corpora: Pile (pretrain), Alpaca/Dolly/GSM8K (SFT), ""HH-RLHF/UltraFeedback (preferences), GSM8K + arithmetic (RL).")st.caption("Each button launches the real `scripts/prepare_*.py` as a background job. "@@ -35,9 +35,9 @@ for name, args in DATA_SCRIPTS.items():st.subheader("Live log")last = st.session_state.get("last_data_job")-sel = st.selectbox("Job", [j["job_id"] for j in jobs.active_jobs() if j["job_id"].startswith("data_")] or ["β"],+sel = st.selectbox("Job", [j["job_id"] for j in jobs.active_jobs() if j["job_id"].startswith("data_")] or ["(none running)"],index=0)-job_to_show = sel if sel != "β" else last+job_to_show = sel if sel != "(none running)" else lastif job_to_show:st.code(jobs.tail_log(job_to_show, 10000) or "(no log yet)", language="text")if jobs.status(job_to_show) == "running" and st.toggle("Auto-refresh", value=True):diff --git a/ui/pages/9_Chat.py b/ui/pages/9_Chat.pyindex 2cc2efa..82e0c4f 100644--- a/ui/pages/9_Chat.py+++ b/ui/pages/9_Chat.py@@ -12,7 +12,7 @@ from ui import themefrom ui.stages import CKPT_DIRtheme.setup_page("Chat", "π¬")-theme.hero("π¬ Chat", "Talk to any checkpoint β chat template for instruction models, raw mode for the base.")+theme.hero("π¬ Chat", "Talk to any checkpoint: chat template for instruction models, raw mode for the base.")ckpts = sorted(glob.glob(os.path.join(CKPT_DIR, "**", "*.pt"), recursive=True))if not ckpts:diff --git a/ui/stage_page.py b/ui/stage_page.pyindex d6313dc..5946218 100644--- a/ui/stage_page.py+++ b/ui/stage_page.py@@ -65,7 +65,7 @@ def render_stage_page(stage_key: str) -> None:auto = st.toggle("Auto-refresh", value=(job_status == "running"), key=f"auto_{stage.key}")st.subheader("Live log")- st.code(jobs.tail_log(stage.key, 12000) or "(no log yet β launch the stage)", language="text")+ st.code(jobs.tail_log(stage.key, 12000) or "(no log yet: launch the stage)", language="text")st.subheader("Metrics")log = metrics.latest_log(stage.log_prefix)