-
Notifications
You must be signed in to change notification settings - Fork 2
Architecture Visualizer — shared widget for model surgery and cognition #577
Copy link
Copy link
Closed
Description
The Pattern
Both the persona brain widget and the model forge factory need to visualize a complex system transforming in real-time. The data shape is identical:
| Concept | Brain Widget | Factory Widget |
|---|---|---|
| Nodes | Neurons | Attention heads / MoE experts |
| Connections | Synaptic weights | Attention patterns / expert routing |
| Activity | Thought process | Loss, entropy, utilization |
| Transitions | Learning | Pruning, defrag, mitosis, LoRA merge |
ArchitectureVisualizer (shared component)
A general-purpose topology renderer that takes:
- Nodes with state (active, pruned, cloning, merged)
- Connections with strength (weight magnitude, attention score)
- Activity stream (real-time values that drive animation)
- Transitions (structural changes with animation)
Forge Mode
- Attention heads as a grid per layer — lit nodes dim during pruning, disappear during defrag
- MoE experts as columns — 256 pillars collapse to 16 during compaction
- LoRA overlays glow during training, then merge into base structure
- Loss curve flowing through the visualization
- Token flow showing data routing through surviving architecture
Brain Mode (existing)
- Persona neurons with activation levels
- Connection strength between concepts
- Thought stream visualization
Events (drives the visualization)
model:forge:step → update activity levels (loss, head entropy)
model:forge:prune → transition: nodes dim and fade
model:forge:defrag → transition: nodes collapse, grid shrinks
model:forge:mitosis → transition: node splits into two
model:forge:complete → final state snapshot
Implementation
ArchitectureVisualizerWidget— shared base inwidgets/shared/ForgeVisualizerWidget— factory-specific adapter (topology from forge events)BrainVisualizerWidget— cognition-specific adapter (topology from persona state)- Canvas/WebGL rendering for performance (hundreds of nodes)
- Off-main-thread computation for layout algorithms
Related
- Factory — forge production floor with SCADA monitoring and AI foreman #576 (Factory widget)
- Brain widget (existing)
- sentinel-ai Build(deps): Bump actions/checkout from 4 to 5 #107 (head mitosis)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels