arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.09034cs.LG
收藏

NeurIPS 2023 LLM效率挑战的nextAI解决方案

The nextAI Solution to the NeurIPS 2023 LLM Efficiency Challenge

UNIST(蔚山科学技术院);CJ Corporation(CJ集团)

Gyuwon Park, DongIl Shin, SolGil Oh, SangGi Ryu, Byung-Hak Kim

AI总结:

本文提出通过QLoRA微调和Flash Attention 2技术优化LLaMa2 70B模型,在单块A100 GPU内实现高效资源利用与高准确率。

摘要:

大型语言模型(LLMs)的快速演变显著影响了自然语言处理领域,但其日益复杂的结构引发了对资源使用和透明度的担忧。为应对这些挑战,我们参与了NeurIPS 2023 LLM效率挑战,旨在在严格限制下对基础模型进行微调。我们的重点是LLaMa2 700亿参数模型,在24小时内于单块A100 40GB GPU上进行优化。我们的方法依赖于一个自定义数据集,该数据集精心构建自多种开源资源和基准测试,符合挑战的开源理念。我们的方法利用了量化低秩适应(QLoRA)微调,结合了先进的注意力机制如Flash Attention 2。我们尝试了LoRA技术的各种配置,优化计算效率与模型准确性的平衡。我们的微调策略基于多个数据集组成创建和迭代测试,最终选择了在多样化任务和基准测试中表现稳健的版本。我们的努力最终得到了一个在单块GPU内高效微调的LLaMa2 70B模型,不仅显著减少了资源使用,还在多种问答基准测试中表现出高准确性。本研究证明了在资源受限环境中优化大规模模型的可行性,强调了LLMs在现实应用中的潜力。

英文摘要:

The rapid evolution of Large Language Models (LLMs) has significantly impacted the field of natural language processing, but their growing complexity raises concerns about resource usage and transparency. Addressing these challenges, we participated in the NeurIPS LLM Efficiency Challenge, aiming to fine-tune a foundation model within stringent constraints. Our focus was the LLaMa2 70 billion model, optimized on a single A100 40GB GPU within a 24-hour limit. Our methodology hinged on a custom dataset, carefully assembled from diverse open-source resources and benchmark tests, aligned with the challenge's open-source ethos. Our approach leveraged Quantized-Low Rank Adaptation (QLoRA) Fine tuning, integrated with advanced attention mechanisms like Flash Attention 2. We experimented with various configurations of the LoRA technique, optimizing the balance between computational efficiency and model accuracy. Our fine-tuning strategy was underpinned by the creation and iterative testing of multiple dataset compositions, leading to the selection of a version that demonstrated robust performance across diverse tasks and benchmarks. The culmination of our efforts was an efficiently fine-tuned LLaMa2 70B model that operated within the constraints of a single GPU, showcasing not only a significant reduction in resource utilization but also high accuracy across a range of QA benchmarks. Our study serves as a testament to the feasibility of optimizing large-scale models in resource-constrained environments, emphasizing the potential of LLMs in real-world applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑