31/31
Part 6 of 6 · What interviewers ask nextCheck yourself
Check yourself
5 questions
  1. 1.You initialize B with torch.randn(out, r) * 0.01 instead of zeros. What happens?

  2. 2.You wrap nn.Linear(16, 12) with r = 4 and forget to freeze the base. How many parameters report requires_grad=True?

  3. 3.With alpha = 8 and r = 4, merge() runs W += B @ A and forgets the scale. What does the merged layer compute?

  4. 4.After merge(), your forward still adds the LoRA branch. What do you get?

  5. 5.Your layer multiplies the update by 1 instead of alpha / r. Which check catches it?

Now the problem this lesson builds to: 16 LoRA from scratch (PyTorch)Practice it