LLMQ:面向消费级GPU的高效低精度预训练
LLMQ: Efficient Lower-Precision Pretraining for Consumer GPUs
AI总结:
LLMQ通过优化消费级GPU的内存和通信瓶颈,实现了高效低精度语言模型的训练,无需额外算法近似,可在中端显卡上训练大模型。
摘要:
我们介绍了LLMQ,这是一种面向中等规模语言模型训练(例如3B到32B参数)的端到端CUDA/C++实现,适用于经济实惠的消费级GPU。这些设备的特点是内存可用性低且通信速度较慢,相比数据中心级GPU。因此,我们展示了一系列针对这些瓶颈的优化技术,包括激活检查点、卸载和基于复制引擎的集体操作。LLMQ能够在单块16GB中端游戏显卡上训练或微调一个7B模型,或在配备4块RTX 4090的工作站上训练一个32B模型。这在执行标准的8位训练流水线时实现,无需额外的算法近似,并保持约50%的FLOP利用率。LLMQ的效率与在更昂贵的云级GPU上生产规模系统相当。
英文摘要:
We present LLMQ, an end-to-end CUDA/C++ implementation for medium-sized language-model training, e.g. 3B to 32B parameters, on affordable, commodity GPUs. These devices are characterized by low memory availability and slow communication compared to datacentre-grade GPUs. Consequently, we showcase a range of optimizations that target these bottlenecks, including activation checkpointing, offloading, and copy-engine based collectives. LLMQ is able to train or fine-tune a 7B model on a single 16GB mid-range gaming card, or a 32B model on a workstation equipped with 4 RTX 4090s. This is achieved while executing a standard 8-bit training pipeline, without additional algorithmic approximations, and maintaining FLOP utilization of around 50%. The efficiency of LLMQ rivals that of production-scale systems on much more expensive cloud-grade GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。