artidoro / qlora

QLoRA: Efficient Finetuning of Quantized LLMs
https://arxiv.org/abs/2305.14314
MIT License
9.96k stars 820 forks source link

Paged optimizer vs gradient checkpointing? #293

Open LeoPerelli opened 4 months ago

LeoPerelli commented 4 months ago

Hello, i am somewhat confused by what paged optimizer obtains vs gradient checkpointing. Specifically, I was expecting one of the two by itself to be sufficient to avoid OOM errors. Indeed, if the paged optimizer is paging gradients, we shouldn't need gradient checkpoints anymore? However it does not appear to be so and the authors suggest using both together. Thanks!