Commit e230bf1
committed
feat(example): add interactive TUI training demo
Add demo_tui example with real-time visualization of the AttnRes
training process: loss curve (braille chart), depth attention weight
heatmap with actual alpha computation, pseudo-query norm growth bars,
and cycling algorithm step explainer. Uses ratatui + crossterm.
Adds layers() and embed_tokens() accessors to AttnResTransformer for
diagnostic extraction of attention weights during training.
Remove obsolete implementation_plan.md.1 parent 64601d3 commit e230bf1
5 files changed
Lines changed: 846 additions & 209 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments