arXiv:2604.09034cs.LG2026-04

用单块A100 GPU在24小时内高效微调700亿参数大模型

The nextAI Solution to the NeurIPS 2023 LLM Efficiency Challenge

  • 采用量化低秩适配技术,结合Flash Attention 2提升效率
  • 在24小时内完成微调,资源消耗大幅降低且性能稳定
  • 适合关注大模型轻量化部署的研究者与工程实践者

大型语言模型的快速发展带来了计算资源消耗和透明度的挑战。我们参与了NeurIPS 2023 LLM效率挑战赛,目标是在严格约束下微调一个基础模型。聚焦于LLaMa2 70B模型,使用单张A100 40GB GPU,在24小时时限内完成优化。方法基于自建数据集,整合开源资源与基准测试,契合开放源代码理念。采用量化低秩适配(QLoRA)微调,并融合Flash Attention 2等先进注意力机制。通过多组LoRA配置实验,平衡计算效率与模型精度。通过迭代测试不同数据组合,最终选出在多种任务与基准上表现稳健的版本。成果为在单卡环境下高效微调LLaMa2 70B模型,实现显著资源节省与高准确率。研究证明了在资源受限环境中优化大规模模型的可行性,凸显了其在实际应用中的潜力。

原文摘要 · Abstract (English)

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.

大模型微调低资源训练QLoRA高效推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。