# LoRA and QLoRA

Type: Pattern · Live URL: https://chronoscope.hopperlabs.ai/#/lora-qlora

LoRA adapts a model with trainable low-rank updates. QLoRA combines this approach with a quantized base model.

[LoRA and QLoRA in Chronoscope](https://chronoscope.hopperlabs.ai/#/lora-qlora) · [LoRA tunes small adapters while keeping the base model fixed](https://arxiv.org/abs/2106.09685) · [QLoRA trains adapters through a frozen four-bit model](https://arxiv.org/abs/2305.14314) · [MLX 0.12 speeds up quantized matrix multiplication](https://github.com/ml-explore/mlx/releases/tag/v0.12.0)

## LoRA tunes small adapters while keeping the base model fixed

The LoRA paper injected trainable low-rank matrices into a frozen model. Different tasks could share the same base weights and carry their own compact updates.

[LoRA and QLoRA in Chronoscope](https://chronoscope.hopperlabs.ai/#/lora-qlora) · [LoRA tunes small adapters while keeping the base model fixed](https://arxiv.org/abs/2106.09685)

## Timeline

- 2021-06-17 — LoRA tunes small adapters while keeping the base model fixed [LoRA tunes small adapters while keeping the base model fixed](https://arxiv.org/abs/2106.09685) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2021-lora-adapters)

- 2023-05-23 — QLoRA trains adapters through a frozen four-bit model [QLoRA trains adapters through a frozen four-bit model](https://arxiv.org/abs/2305.14314) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2023-qlora)

- 2024-04-25 — MLX 0.12 speeds up quantized matrix multiplication [MLX 0.12 speeds up quantized matrix multiplication](https://github.com/ml-explore/mlx/releases/tag/v0.12.0) · [Chronoscope](https://chronoscope.hopperlabs.ai/#/ai-engineering/x/2024-mlx-0-12-speeds-up-quantized-matrix-multiplication)

## Related articles

- [AI Engineering](/wiki/ai-engineering/) (covered-in)
- [Quantization](/wiki/quantization/) (shares-milestones)
- [Apple Machine Learning Research](/wiki/apple-ml/) (shares-milestones)
- [Continuous batching](/wiki/continuous-batching/) (shares-milestones)
- [MLX](/wiki/mlx/) (shares-milestones)
