Skip to content

feat(web): add interactive web demo with WASM + Vite#9

Merged
AbdelStark merged 2 commits intomainfrom
claude/web-demo-wasm-webgpu-gtYaK
Mar 16, 2026
Merged

feat(web): add interactive web demo with WASM + Vite#9
AbdelStark merged 2 commits intomainfrom
claude/web-demo-wasm-webgpu-gtYaK

Conversation

@AbdelStark
Copy link
Copy Markdown
Owner

Full end-to-end browser demo of the Attention Residuals algorithm:

  • Pure Rust WASM crate (web-demo/crate/) faithfully reimplements the core
    AttnRes operation (RMSNorm, depth-wise softmax, weighted combination)
    mirroring src/attn_res_op.rs and src/layer.rs exactly
  • TypeScript frontend (Vite + Canvas 2D) with academic-grade design:
    • Section 1: Problem statement (information dilution in standard residuals)
    • Section 2: Algorithm walkthrough (5-step AttnRes with equations)
    • Section 3: Interactive demo (configurable model, live heatmaps)
    • Section 4: Training simulation (loss curve, weight evolution, norm tracking)
    • Section 5: Standard vs AttnRes comparison
  • wasm-pack build (--target web), zero external WASM dependencies
  • Updated CLAUDE.md, AGENTS.md, README.md with web-demo docs and commands
  • Updated .gitignore for web-demo build artifacts

https://claude.ai/code/session_01SEXHievpnMwNq3q2kz2zBB

claude added 2 commits March 16, 2026 07:50
Full end-to-end browser demo of the Attention Residuals algorithm:

- Pure Rust WASM crate (web-demo/crate/) faithfully reimplements the core
  AttnRes operation (RMSNorm, depth-wise softmax, weighted combination)
  mirroring src/attn_res_op.rs and src/layer.rs exactly
- TypeScript frontend (Vite + Canvas 2D) with academic-grade design:
  - Section 1: Problem statement (information dilution in standard residuals)
  - Section 2: Algorithm walkthrough (5-step AttnRes with equations)
  - Section 3: Interactive demo (configurable model, live heatmaps)
  - Section 4: Training simulation (loss curve, weight evolution, norm tracking)
  - Section 5: Standard vs AttnRes comparison
- wasm-pack build (--target web), zero external WASM dependencies
- Updated CLAUDE.md, AGENTS.md, README.md with web-demo docs and commands
- Updated .gitignore for web-demo build artifacts

https://claude.ai/code/session_01SEXHievpnMwNq3q2kz2zBB
@AbdelStark AbdelStark merged commit 1b1e7be into main Mar 16, 2026
4 checks passed
@AbdelStark AbdelStark deleted the claude/web-demo-wasm-webgpu-gtYaK branch March 17, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants