LoRA, ZeRO stages and numeric formats

MediumConcept20 minRSREMLEPro outline

The question

Explain how LoRA works and how it is initialised, what ZeRO stages 1, 2 and 3 each shard, and the trade-offs between FP32, FP16, BF16 and INT8.

What the interviewer is looking for

  • Explains low-rank update with B initialised to zero
  • States what each ZeRO stage shards and the communication cost
  • Knows BF16 keeps FP32 range with less precision and why FP16 needs loss scaling
  • Places INT8 mostly in inference with calibration
  • Gives memory numbers per parameter

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Alibaba Qwen (Tongyi Lab) question type: LoRA, DeepSpeed ZeRO 1, 2 and 3, FP16 versus BF16 versus FP32 versus INT8.

Reported in: nowcoder.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Alibaba Qwen (Tongyi Lab) question.