Fine-Tuning, and When Not ToLesson 21 of 84

Module 3 · Full, LoRA and the parameter-efficient family

Choosing rank, alpha and which modules to touch

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 3 of 9 in this chapter

This chapter’s goalPredict on paper the memory a given model, method and sequence length will need, choose between full fine-tuning, LoRA, QLoRA and the tiny methods for a stated budget, and justify a rank, an alpha and a target-module set.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Trainable parameters on an 8B model at r = 16All seven projections41.9Attention only: q, k, v, o13.6Query and value only6.8million parameters trainedBreadth beats depth. Adapting all seven projections at a modest rank beats adapting two at a highrank, and the feed-forward matrices are the larger ones.
Breadth beats depth. Adapting all seven projections at a modest rank beats adapting two at a high rank, and the feed-forward matrices are the larger ones.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Breadth beats depth

There are two ways to give a LoRA more capacity: raise the rank, or adapt more matrices. The consistent finding across published comparisons and a great deal of practical experience is that which modules you target matters more than the rank you pick.

The early LoRA work adapted only the attention query and value projections, and that convention stuck around long after the evidence moved. On a modern decoder, adapting all seven linear projections at a modest rank beats adapting two at a high rank, at a similar parameter count.

The seven, on a Llama-style architecture:

  • Attention: q_proj, k_proj, v_proj, o_proj
  • Feed-forward: gate_proj, up_proj, down_proj

The feed-forward matrices are the larger ones (with hidden 4,096 and intermediate 14,336, each MLP projection is 58.7M parameters against the attention projections’ 16.8M), and a good deal of a transformer’s task-specific behaviour appears to live there.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘Choosing rank, alpha and which modules to touch’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/rank-alpha-and-targets (Accessed: 29 November 2026).