LoQT: 面向量化预训练的低秩适配器
LoQT: Low-Rank Adapters for Quantized Pretraining
AI总结:
针对消费级硬件难以直接开展大模型预训练的问题,提出LoQT方法,通过基于梯度的张量分解初始化低秩可训练权重并定期合并到量化全秩权重中,实现了在24GB GPU上高效训练7B参数模型及逐层更新训练13B模型。
摘要:
尽管低秩适配器与量化技术已取得进展,但在消费级硬件上进行大模型预训练仍离不开模型分片、训练期间的内存卸载或逐层梯度更新。为解决这些局限,我们提出量化训练低秩适配器(Low-Rank Adapters for Quantized Training, LoQT),这是一种高效训练量化模型的方法。LoQT采用基于梯度的张量分解来初始化低秩可训练权重矩阵,并将其定期合并到量化的全秩权重矩阵中。该方法既适用于模型预训练,也适用于微调。我们在语言建模和下游任务适配场景中验证了该方法,发现LoQT可在24GB GPU上高效训练参数规模最高达7B的模型;我们还证明了在相同硬件上采用逐层梯度更新训练13B模型的可行性。
英文摘要:
Despite advances using low-rank adapters and quantization, pretraining of large models on consumer hardware has not been possible without model sharding, offloading during training, or per-layer gradient updates. To address these limitations, we propose Low-Rank Adapters for Quantized Training (LoQT), a method for efficiently training quantized models. LoQT uses gradient-based tensor factorization to initialize low-rank trainable weight matrices that are periodically merged into quantized full-rank weight matrices. Our approach is suitable for both pretraining and fine-tuning models. We demonstrate this for language modeling and downstream task adaptation, finding that LoQT enables efficient training of models up to 7B parameters on a 24GB GPU. We also demonstrate the feasibility of training a 13B model using per-layer gradient updates on the same hardware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。