AI Hints
Home›Fine-Tuning LLMs Tutorial›Bigger Models and Many Adapters
Fine-Tuning LLMs · Lesson 69 of 120

Practice

Try it yourself.

⏱ 2 min read▶ Video at 1:46:35🎓 Free
Watch this lesson in the Fine-Tuning LLMs courseWatch on YouTube ↗Full Fine-Tuning LLMs course

You've learned the core of LoRA fine-tuning. The best way to make it stick is to change things, and watch what happens. Here are some experiments to try.

  • You know the core
  • Change things
  • Watch what happens

Experiments to try

Try these. Change the rank from sixteen to four, and to sixty four. Does accuracy change? Use only q proj and v proj, instead of all linear. Train for two epochs instead of one. Use only one hundred training examples. And try a different base model. Change one thing at a time, and write down the results.

ExperimentQuestion
r = 4 or 64does capacity matter here?
q_proj + v_proj onlyis attention enough?
2 epochsbetter, or overfitting?
100 exampleshow much data is needed?
another base modelbigger, or smaller?

Quick check

Let's check. You want one model to do three different tasks, with the least memory. What should you do? Pause, and think about it. The answer is B. One base model, with three LoRA adapters, switched with set adapter.

Quick check
Three tasks, least memory. What should you do?

Summary

Let's recap. Experiment with rank, target modules, epochs, data size, and base model. Change one thing at a time. And keep notes. Next, a whole section on the most important ingredient. Data.

Key takeaways
  • Experiment
  • One change at a time
  • Keep notes
Next up: Quality Beats Quantity — why data matters most