arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12057cs.CLcs.AI
收藏

NinjaLLM:使用Amazon SageMaker与AWS Trainium和Inferentia2实现快速、可扩展且经济高效的RAG

NinjaLLM: Fast, Scalable and Cost-effective RAG using Amazon SageMaker and AWS Trainium and Inferentia2

NinjaTech AI

Tengfei Xue, Xuefeng Li, Roman Smirnov, Tahir Azim, Arash Sadrieh, Babak Pahlavan

AI总结:

本文提出NinjaLLM,在AWS Trainium和Inferentia2芯片上通过SageMaker微调托管LLM,增强RAG的工具使用、引用能力并缓解幻觉,在Natural Questions和HotPotQA上分别达到62%和59%的准确率。

摘要:

检索增强生成(RAG)技术如今被广泛用于以对话形式检索和呈现信息。本文提出了一系列对传统RAG技术的增强,重点关注在AWS Trainium和Inferentia2 AI芯片上通过SageMaker进行微调和托管的大型语言模型(LLMs)。这些芯片的特点是弹性、经济实惠,并且在AI计算任务中具有高效性能。除了支持在这些芯片上部署外,这项工作还旨在改进工具使用、增加引用能力,并缓解因上下文偏差导致的幻觉和不安全响应的风险。我们在Natural Questions和HotPotQA数据集上对RAG系统的性能进行了基准测试,分别达到了62%和59%的准确率,超过了DBRX和Mixtral Instruct等其他模型。

英文摘要:

Retrieval-augmented generation (RAG) techniques are widely used today to retrieve and present information in a conversational format. This paper presents a set of enhancements to traditional RAG techniques, focusing on large language models (LLMs) fine-tuned and hosted on AWS Trainium and Inferentia2 AI chips via SageMaker. These chips are characterized by their elasticity, affordability, and efficient performance for AI compute tasks. Besides enabling deployment on these chips, this work aims to improve tool usage, add citation capabilities, and mitigate the risks of hallucinations and unsafe responses due to context bias. We benchmark our RAG system's performance on the Natural Questions and HotPotQA datasets, achieving an accuracy of 62% and 59% respectively, exceeding other models such as DBRX and Mixtral Instruct.

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

↑