liveBook · Manning

Low-rank adaptation

Low-rank adaptation (LoRA) is a parameter-efficient fine-tuning technique that adapts a model by learning low-rank updates to its weights, typically while keeping most original weights fixed.

How 10 Manning books explain it

LLMs in Production

Low-rank adaptation is a parameter-efficient fine-tuning method that adapts a pretrained model through trainable low-rank updates while leaving most original parameters fixed.

How it is used
Adapts pretrained models to specific tasks or domains without retraining their original weights.
How deep it goes
Explains low-rank update matrices and rank trade-offs, then demonstrates a PyTorch adapter and inference options without a full backpropagation tutorial.
Examples
Uses a 100 × 100 matrix update, a PEFT token-classification setup, and a rank-16 Llama-style adapter.
What you can do after
Apply it via Hugging Face PEFT or build a PyTorch adapter, then load or merge it for inference.

Read how LLMs in Production explains low-rank adaptation →

Building Reliable AI Systems

Low-Rank Adaptation is a parameter-efficient fine-tuning method that trains added low-rank matrices while keeping a pretrained model's weights frozen.

How it is used
Reduces the resource cost of adapting a pretrained model for tasks such as customer support.
How deep it goes
Explains frozen weights and trainable matrices, then configures and trains adapters in a QLoRA workflow.
Examples
Uses LLaMA-2-7B and a 1,000-example Bitext customer-support dataset to demonstrate QLoRA.
What you can do after
Apply LoRA through PEFT configuration and train, test, save, and reload a QLoRA adapter.

Read how Building Reliable AI Systems explains low-rank adaptation →

Introduction to Generative AI, Second Edition

Low-rank adaptation is a parameter-efficient fine-tuning technique that trains low-rank update matrices while keeping most pretrained parameters fixed.

How it is used
Lowers the barrier to customizing large language models within the open-source model ecosystem.
How deep it goes
Defines low-rank updates and fixed pretrained parameters but stops short of implementation details or training procedures.
Examples
Uses customization of large open language models as its concrete application.
What you can do after
Apply it to customize large language models without updating most pretrained parameters.

Read how Introduction to Generative AI, Second Edition explains low-rank adaptation →

Generative AI in Action

Low-rank adaptation is a parameter-efficient technique that adapts a pretrained model by training small low-rank matrices while leaving the original model weights frozen.

How it is used
Uses LoRA to adapt pretrained language models to tasks or specialized data with fewer trainable parameters than full fine-tuning.
How deep it goes
Explains frozen pretrained weights and trainable low-rank matrices in model layers, including their storage for downstream tasks.
Examples
Uses a layer diagram with frozen weight W and trainable matrices A and B to illustrate LoRA reparameterization.
What you can do after
Evaluate/understand LoRA’s resource trade-offs and the need to evaluate adapted models before production.

Read how Generative AI in Action explains low-rank adaptation →

Build a Large Language Model (From Scratch)

A parameter-efficient fine-tuning method that adapts a model by training low-rank updates instead of all weights.

How it is used
Applies parameter-efficient updates when instruction-fine-tuning a language model more efficiently.
How deep it goes
Defines low-rank updates and assigns a runtime-versus-performance experiment, but does not detail the underlying implementation.
Examples
Uses a code-modification exercise comparing training runtime and model performance before and after LoRA.
What you can do after
Apply it via an existing fine-tuning implementation and evaluate its runtime and model-performance effects.

Read how Build a Large Language Model (From Scratch) explains low-rank adaptation →

Transformers in Action

A low-rank adapter is a parameter-efficient fine-tuning component that represents a weight update through low-rank factors.

How it is used
Adapts pretrained transformer models to downstream tasks while training a small subset of parameters.
How deep it goes
Explains frozen weights, factor dimensions, rank constraints, SVD intuition, and library configuration, but not the training loop.
Examples
Uses NumPy SVD decomposition, matrix visualizations, and an Unsloth configuration targeting Qwen3-4B-Base.
What you can do after
Apply it via an Unsloth PEFT interface by selecting a rank and transformer target modules.

Read how Transformers in Action explains low-rank adaptation →

The Complete Obsolete Guide to Generative AI

LoRA is a parameter-efficient fine-tuning technique that adapts a pretrained model by learning low-rank updates rather than modifying all model parameters.

How it is used
Positions LoRA as a resource-efficient option when deciding whether to fine-tune an existing LLM for a particular use case.
How deep it goes
Introduces LoRA through its efficiency and hardware implications, while deferring practical implementation and low-rank mechanics.
Examples
Uses Nvidia 3090 hardware and possible multi-GPU setups as the concrete LoRA fine-tuning examples.
What you can do after
Evaluate/understand LoRA as a lower-resource fine-tuning option for customizing an existing model with your own data.

Read how The Complete Obsolete Guide to Generative AI explains low-rank adaptation →

Deep Learning with R, Third Edition

Low-rank adaptation is a parameter-efficient fine-tuning technique that freezes a model's original weights and trains a low-rank update to selected projections.

How it is used
Reduces accelerator-memory use when fine-tuning large language models.
How deep it goes
Explains frozen kernels, low-rank updates, parameter counts, and selective attention projections.
Examples
Uses a 2,048-square kernel, a rank-8 update, and KerasHub model configuration.
What you can do after
Apply LoRA through KerasHub or enable it on selected attention projections.

Read how Deep Learning with R, Third Edition explains low-rank adaptation →

The AI Pocket Book

A fine-tuning method that adds small trainable layers or low-rank updates while leaving the original model largely intact.

How it is used
Limits model updates during fine-tuning to improve training efficiency and reduce overfitting risk.
How deep it goes
Explains inserted learnable layers, preserved original parameters, update savings, and overfitting control without mathematical detail.
Examples
Uses inserted small layers, new learnable parameters, and unchanged original model parameters as its central artifacts.
What you can do after
Apply LoRA to fine-tune an existing model while monitoring validation or test performance for overfitting.

Read how The AI Pocket Book explains low-rank adaptation →

Domain-Specific Small Language Models

Low-rank adaptation parameters used to modify a pretrained model with a small number of additional learned weights.

How it is used
Adapts pretrained models to specific tasks or domains without updating all model parameters.
How deep it goes
Walks through configuration, training, saving, loading, and inference, without detailing the low-rank mathematics.
Examples
Demonstrates summarization with FLAN-T5-small and SAMSum using an 8-bit model and LoRA adapters.
What you can do after
Apply it via PEFT to train and use a LoRA-adapted sequence-to-sequence model for dialogue summarization.

Read how Domain-Specific Small Language Models explains low-rank adaptation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.