SpinTheMic
Pro

Interview practice question

Fine-tuning a 7B model on one GPU

Machine Learning · ML Frameworks · Intermediate

You need to fine-tune a 7-billion-parameter model but only have one 24 GB GPU. How do you do it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • QLoRA: 4-bit base model (bitsandbytes NF4) + LoRA adapters (PEFT).
  • Gradient checkpointing; small micro-batches with accumulation.
  • Paged optimizers.
  • TRL SFTTrainer.
  • Evaluate adapter; merge or serve separately.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics