Share from 0:00
0:00
/

"LoQT: Low-Rank Adapters for Quantized Pretraining"

The podcast on this paper is generated with Google's Illuminate.

Train massive neural networks on your gaming PC with LoQT's memory tricks

LoQT introduces a memory-efficient training method that combines low-rank adapters with quantization, enabling training of 7B parameter models on a single 24GB GPU without model sharding or offloading. This breakthrough makes LLM training accessible on consumer hardware[3].

-----

https://arxiv.org/abs/2405.16528

πŸ” Original Problem:

Training large neural networks demands extensive computational resources, making it impractical on consumer hardware without complex techniques like model sharding or gradient offloading[3].

-----

πŸ› οΈ Solution in this Paper:

β†’ LoQT initializes two low-rank factors for each weight matrix - one from gradient projections and another to minimize quantization error.

β†’ Only one matrix receives active optimization, significantly reducing gradient and optimizer state size compared to full training.

β†’ The product of these matrices merges periodically into the full-rank matrix with exponentially increasing gaps[3].

β†’ Non-updated matrices stay quantized for optimal memory usage.

-----

πŸ’‘ Key Insights:

β†’ Large accumulated updates enable successful quantized model training, as small changes wouldn't register in quantized states[3].

β†’ Gradient-based tensor factorization provides effective initialization for low-rank adapters.

β†’ Exponentially increasing merge intervals align with model convergence patterns.

-----

πŸ“Š Results:

β†’ Successfully trains 7B parameter models on 24GB consumer GPUs

β†’ Enables 13B parameter model training with per-layer updates on same hardware

β†’ Suitable for both pretraining and fine-tuning tasks[3]

Discussion about this video

User's avatar

Ready for more?