AbstractPhil commited on
Commit
92c2954
·
verified ·
1 Parent(s): d70f5ac

compact the status panel (228px -> ~2-3 lines): it sits above the tabs in a non-scrolling iframe, so every line pushed the controls further out of reach; all warnings and disclosures kept

Browse files
Files changed (1) hide show
  1. app.py +17 -22
app.py CHANGED
@@ -464,41 +464,36 @@ def status_md(step, arm_path=CORE_ONLY):
464
  arm = ARM_BY_PATH.get(arm_path or "")
465
  if arm and arm["step"] != step:
466
  arm = None
 
 
 
467
  if not WRAPPERS:
468
  arm_line = "**Arm:** adapter sites unavailable — core only"
469
  elif arm:
470
  sp = arm.get("spec") or {}
471
  t = _tmpl(arm)
 
472
  arm_line = (
473
- f"**Arm:** `{arm['name']}`"
474
  + (f" ({arm['group']})" if arm.get("group") else "")
475
- + f" · {arm['kind']}"
476
- + (f" · {arm['params']/1e6:.1f}M params" if arm.get("params")
477
- else "")
478
  + (f" · {arm['sites']} sites" if arm.get("sites") else "")
479
- + (f" · n_slots {sp['n_slots']}/hidden {sp['hidden']}"
480
- if sp else "")
481
  + " · trained on THIS core"
482
- + (f" \n*{arm['behavior']}*" if arm.get("behavior") else "")
483
- + f" \n**Template:** {FRAME_TAG.get(t['frame'], t['frame'])}"
484
- f" · turn ends on {t['turn_end']}"
485
- + (f" \n**Decode:** T={_decode_of(arm)[0]:g}, "
486
- f"top-p {_decode_of(arm)[1]:g} — {_decode_of(arm)[2]}"
487
- if _decode_of(arm)[2] else "")
488
  + (f" \n⚠️ {t['note']}" if t.get("note") else ""))
489
  else:
490
- arm_line = (f"**Arm:** none attached — raw core"
491
- + (f" ({len(arms)} available for this checkpoint)"
492
- if arms else ""))
493
  return " \n".join(filter(None, [
494
- f"**Core:** step {step:,}"
495
- + (f" · {meta['tokens']/1e9:.2f}B bytes" if meta.get("tokens") else ""),
496
- (f"**Val bits-per-byte:** {meta['val_bpb']:.3f}"
497
- if meta.get("val_bpb") else ""),
 
498
  arm_line,
499
- f"**Params:** {CORE_PARAMS/1e6:.1f}M core · context {CFG.context} bytes",
500
- (f"ℹ️ newest checkpoint in the training repo is step {newest:,}"
501
- if step != newest else ""),
502
  ("ℹ️ this checkpoint is post-anneal: its core chats on its own, so "
503
  "*Core only* no longer shows an unconditioned model"
504
  if step >= 58664 else ""),
 
464
  arm = ARM_BY_PATH.get(arm_path or "")
465
  if arm and arm["step"] != step:
466
  arm = None
467
+ # compact by design: this panel sits above the tabs, and the Space
468
+ # is embedded in a non-scrolling iframe where every extra line
469
+ # pushes the controls further out of reach
470
  if not WRAPPERS:
471
  arm_line = "**Arm:** adapter sites unavailable — core only"
472
  elif arm:
473
  sp = arm.get("spec") or {}
474
  t = _tmpl(arm)
475
+ dt, dp, _ = _decode_of(arm)
476
  arm_line = (
477
+ f"**Arm** `{arm['name']}`"
478
  + (f" ({arm['group']})" if arm.get("group") else "")
479
+ + (f" · {arm['params']/1e6:.1f}M" if arm.get("params") else "")
 
 
480
  + (f" · {arm['sites']} sites" if arm.get("sites") else "")
481
+ + (f" · n{sp['n_slots']}/h{sp['hidden']}" if sp else "")
 
482
  + " · trained on THIS core"
483
+ + f" \n{FRAME_TAG.get(t['frame'], t['frame'])} · ends on "
484
+ f"{t['turn_end']} · T={dt:g}/top-p {dp:g}"
485
+ + (f" · *{arm['behavior']}*" if arm.get("behavior") else "")
 
 
 
486
  + (f" \n⚠️ {t['note']}" if t.get("note") else ""))
487
  else:
488
+ arm_line = ("**Arm** none attached — raw core"
489
+ + (f" ({len(arms)} available here)" if arms else ""))
 
490
  return " \n".join(filter(None, [
491
+ f"**step {step:,}**"
492
+ + (f" · {meta['tokens']/1e9:.2f}B bytes" if meta.get("tokens") else "")
493
+ + (f" · bpb {meta['val_bpb']:.3f}" if meta.get("val_bpb") else "")
494
+ + f" · {CORE_PARAMS/1e6:.1f}M core · ctx {CFG.context}"
495
+ + (f" · newest is {newest:,}" if step != newest else ""),
496
  arm_line,
 
 
 
497
  ("ℹ️ this checkpoint is post-anneal: its core chats on its own, so "
498
  "*Core only* no longer shows an unconditioned model"
499
  if step >= 58664 else ""),