HomeMachine Learning & Neural NetworksLoRA Adapters

PEFT / LoRA Adapter Simulator

Interactive LoRA (Low-Rank Adaptation) simulator: a frozen weight matrix W plus a trainable low-rank decomposition ΔW = B·A. Tune the rank r, matrix dimension d and scale α and watch trainable-parameter count, percentage and compression ratio update live.

Machine Learning & Neural Networks2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
peft-lora-adapters ↗ Open standalone

Parameter-efficient finetuning (PEFT) methods like LoRA let large language models be adapted to new tasks without touching most of their weights. This simulator visualizes the core LoRA mechanism directly: a frozen weight matrix W sits untouched while a trainable low-rank pair A (r×d) and B (d×r) is multiplied together every frame to form the correction ΔW = (α/r)·B·A, which is what actually gets added to W during a forward pass. Adjust the rank r, the base matrix dimension d and the scale α to see how the trainable-parameter count, its share of the full matrix, and the compression ratio change — the same trade-off that lets LoRA finetune a multi-billion-parameter model by training a few million numbers.

⚙ Under the hood

Explore how LoRA low-rank decomposition works by adjusting a frozen weight matrix W and observing the effect of trainable B*A on every frame.

Machine LearningNeural NetworksLow-Rank Approximation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)