上海人工智能实验室提出LLaMA-Adapter:在1小时和1.2M的参数范围内微调LLaMA以遵循指示

1,583次阅读
没有评论

“LLaMA-Adapter:具有零初始注意力的语言模型的高效微调”的正式实施。

这个 repo 提出了LLaMA-Adapter,一种用于微调指令遵循LLaMA模型的轻量级自适应方法🔥,使用Stanford Alpaca提供的 52K 数据。

代码地址:https://github.com/ZrrSkywalker/LLaMA-Adapter

概述

效率比较:

上海人工智能实验室提出LLaMA-Adapter:在1小时和1.2M的参数范围内微调LLaMA以遵循指示

通过将适配器插入 LLaMA 的转换器,我们的方法仅引入1.2M可学习参数,并在1 小时内将 LLaMA 转换为指令跟随模型。我们提出了一种用于早期稳定训练的Zero-init Attention机制,并且可以简单地扩展到多模态输入指令,例如图像、音频和视频经过微调后,LLaMA-Adapter 可以生成高质量的指令跟随语句,可与完全微调的Stanford AlpacaAlpaca-Lora相媲美。

上海人工智能实验室提出LLaMA-Adapter:在1小时和1.2M的参数范围内微调LLaMA以遵循指示

 

论文地址:https://arxiv.org/pdf/2303.16199.pdf

标题:LLaMAAdapter: Efficient Fine-tuning of Language Models with Zero-init Attention

Renrui Zhang, Jiaming Han, Aojun Zhou, Xiangfei Hu, Shilin Yan, Pan Lu, Hongsheng Li, Peng Gao, Yu Qiao

[Shanghai Artificial Intelligence Laboratory & CUHK MMLab &University of California, Los Angeles]

摘要:本文提出了LLaMA-Adapter,这是一种轻量级的适应方法,可以将LLaMA有效地微调为指令跟随模型。LLaMA-Adapter使用52K个自我构造演示,在冻结的LaMA 7B模型上只引入了120万个可学习的参数,在8个A100 GPU上进行微调的成本不到1小时。具体来说,采用了一套可学习的适应性提示,并将其预置在较高转换层的输入文本标记上。然后,提出了一个具有零门控的零启动注意力机制,该机制可以自适应地将新的教学线索注入到LaMA中,同时有效地保留了其预训练的知识。通过有效的训练,LLaMA-Adapter产生了高质量的反应,与具有完全微调的7B参数的Alpaca相当。此外,我们的方法可以简单地扩展到多模态输入,例如图像,以图像为条件的LLaMA,它在ScienceQA上实现了卓越的推理能力。

上海人工智能实验室提出LLaMA-Adapter:在1小时和1.2M的参数范围内微调LLaMA以遵循指示

 

Read More 

正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 0
评论(没有评论)

文心AIGC

2023 年 3 月
 12345
6789101112
13141516171819
20212223242526
2728293031  
文心AIGC
文心AIGC
人工智能ChatGPT,AIGC指利用人工智能技术来生成内容,其中包括文字、语音、代码、图像、视频、机器人动作等等。被认为是继PGC、UGC之后的新型内容创作方式。AIGC作为元宇宙的新方向,近几年迭代速度呈现指数级爆发,谷歌、Meta、百度等平台型巨头持续布局
文章搜索
热门文章
手把手教你用AI 10分钟生成一个APP!零基础也能搞定

手把手教你用AI 10分钟生成一个APP!零基础也能搞定

今日,我将向大家展示DeepSeek的全新玩法——从零开始,利用AI创建一个完整的应用程序。借助DeepSee...
最新评论
ufabet ufabet มีเกมให้เลือกเล่นมากมาย: เกมเดิมพันหลากหลาย ครบทุกค่ายดัง
tornado crypto mixer tornado crypto mixer Discover the power of privacy with TornadoCash! Learn how this decentralized mixer ensures your transactions remain confidential.
ดูบอลสด ดูบอลสด Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
Obrazy Sztuka Nowoczesna Obrazy Sztuka Nowoczesna Thank you for this wonderful contribution to the topic. Your ability to explain complex ideas simply is admirable.
ufabet ufabet Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
ufabet ufabet You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
ufabet ufabet Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
热评文章
手把手教你用AI 10分钟生成一个APP!零基础也能搞定

手把手教你用AI 10分钟生成一个APP!零基础也能搞定

今日,我将向大家展示DeepSeek的全新玩法——从零开始,利用AI创建一个完整的应用程序。借助DeepSee...