Loading your workspace…
Loading your workspace…
Source tokens and shifted target tokens enter separate embedding paths. The original model scales embeddings by √d_model and adds sinusoidal positions before either stack.
Interactive models, figures from your data, and technical diagrams.
Free with LiminalML attribution · No account needed
Technical visuals to make your own. For papers, presentations, and the explanations in between.
Turn an ML mechanism into an interactive explanation for your next article or presentation.
That’s the point this article needs to make. Keep the frozen weight W, then show the correction BAx occupying a lower-dimensional space.
ΔW = (α/r)BA · rank(ΔW) ≤ r
For a 4096 × 4096 matrix at rank 8, the adapter has 65,536 trainable parameters. The 16,777,216 base weights remain.
LoRA paper · Hu et al.Preparing the 3D view…
Follow the trade-off from exact GPU kernels to recurrent memory and sparse retrieval.
Tiles of Q, K and V move through fast on-chip memory. An online softmax combines their contributions without storing the full score or probability matrix in high-bandwidth memory.
Element counts with fixed head width 64. Excludes model weights, other intermediates, batching and layers; not peak GPU memory or a speed benchmark.
Exact dense softmax attention up to floating-point rounding. Arithmetic remains quadratic in sequence length; this is not a linear-attention architecture. Dao et al., 2022
Local drafts · Share snapshots · Download editable projects
Free downloads & export formats