Skip to main content
QUICK REVIEW

[论文解读] h2oGPT: Democratizing Large Language Models

A. Candel, Jon McKinney|arXiv (Cornell University)|Jun 13, 2023
Topic ModelingComputer Science被引用 8
一句话总结

h2oGPT 提供开源、商业可用的微调大型语言模型(7–40B 参数)及用于私有文档检索、无代码微调的工具,以及完整的开源生态系统。

ABSTRACT

Applications built on top of Large Language Models (LLMs) such as GPT-4 represent a revolution in AI due to their human-level capabilities in natural language processing. However, they also pose many significant risks such as the presence of biased, private, or harmful text, and the unauthorized inclusion of copyrighted material. We introduce h2oGPT, a suite of open-source code repositories for the creation and use of LLMs based on Generative Pretrained Transformers (GPTs). The goal of this project is to create the world's best truly open-source alternative to closed-source approaches. In collaboration with and as part of the incredible and unstoppable open-source community, we open-source several fine-tuned h2oGPT models from 7 to 40 Billion parameters, ready for commercial use under fully permissive Apache 2.0 licenses. Included in our release is 100\% private document search using natural language. Open-source language models help boost AI development and make it more accessible and trustworthy. They lower entry hurdles, allowing people and groups to tailor these models to their needs. This openness increases innovation, transparency, and fairness. An open-source strategy is needed to share AI benefits fairly, and H2O.ai will continue to democratize AI and LLMs.

研究动机与目标

  • 推动开源 LLMs 以解决专有产品在隐私、定制化、成本与可用性方面的顾虑。
  • 描述 h2oGPT 生态系统、数据准备与可用于商业用途的微调流水线。
  • 展示模型发布(7–40B 参数)和私有文档对话能力。
  • 说明数据管道、评估与工具,支持透明且可复现的 AI 开发。

提出的方法

  • 回顾并汇总适用于开源 LLM 的基础模型和宽松许可的数据集。
  • 描述数据准备、使用 LoRA 与 8/16 位技术进行微调,以降低内存使用并加速训练。
  • 引入 H2O LLM Data Studio 进行数据集准备与质量控制。
  • 展示无代码微调的 H2O LLM Studio 及基于向量数据库的私有文档对话系统。
  • 提供在 HuggingFace 与 GitHub 的商业许可开源发布。

实验结果

研究问题

  • RQ1开放源代码 LLMs 结合 LoRA 微调在标准推理基准上与闭源模型的比较如何?
  • RQ2私有文档对话和向量数据库对齐是否能实现可靠、离线、隐私保护的问答?
  • RQ3在商品级基础设施上对 7–40B 参数模型进行微调的实际硬件与数据需求是什么?
  • RQ48-bit/4-bit 训练对开发者的性能与可访问性有何影响?
  • RQ5端到端的开源栈(数据工作室、Studio 与对话系统)在快速迭代与部署中的有效性如何?

主要发现

  • h2oGPT 的发布包括在 Hugging Face 上从 6.9B 到 40B 参数的模型,适用于商业用途。
  • 微调使用 LoRA,训练参数只占总量的约 ~0.13%,并支持 16/8/4 位训练,内存需求可降低至约 ~2× 或更多。
  • LoRA 适配器实现高效训练,显著减小内存占用与优化器状态(约 20 MB 对比 20 GB)。
  • 8位/4位训练使在商品级 GPU 上对 LLM 进行训练成为可能,降低显存需求,提升可访问性。
  • H2O LLM Studio 提供无代码微调与评估,且带向量 DB 绑定的私有文档对话支持离线、私有部署。
  • 在常见开放基准上的评估显示,不同模型规模的表现差异存在,开源模型相较大型闭源模型存在差距,但通过微调有所改善。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。