Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning

修剪 人气 计算机科学 语言模型 钥匙(锁) 刮擦 航程(航空) 机器学习 人工智能 工程类 程序设计语言 心理学 生物 社会心理学 计算机安全 航空航天工程 农学
作者
Mengzhou Xia,Tianyu Gao,Zhiyuan Zeng,Danqi Chen
出处
期刊:Cornell University - arXiv 被引量:8
标识
DOI:10.48550/arxiv.2310.06694
摘要

The popularity of LLaMA (Touvron et al., 2023a;b) and other recently emerged moderate-sized large language models (LLMs) highlights the potential of building smaller yet powerful LLMs. Regardless, the cost of training such models from scratch on trillions of tokens remains high. In this work, we study structured pruning as an effective means to develop smaller LLMs from pre-trained, larger models. Our approach employs two key techniques: (1) targeted structured pruning, which prunes a larger model to a specified target shape by removing layers, heads, and intermediate and hidden dimensions in an end-to-end manner, and (2) dynamic batch loading, which dynamically updates the composition of sampled data in each training batch based on varying losses across different domains. We demonstrate the efficacy of our approach by presenting the Sheared-LLaMA series, pruning the LLaMA2-7B model down to 1.3B and 2.7B parameters. Sheared-LLaMA models outperform state-of-the-art open-source models of equivalent sizes, such as Pythia, INCITE, and OpenLLaMA models, on a wide range of downstream and instruction tuning evaluations, while requiring only 3% of compute compared to training such models from scratch. This work provides compelling evidence that leveraging existing LLMs with structured pruning is a far more cost-effective approach for building smaller LLMs.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
ttt完成签到,获得积分10
2秒前
情怀应助科研通管家采纳,获得10
3秒前
领导范儿应助科研通管家采纳,获得10
3秒前
传奇3应助科研通管家采纳,获得10
3秒前
Hello应助科研通管家采纳,获得10
3秒前
Cleo应助科研通管家采纳,获得10
3秒前
3秒前
wlscj应助科研通管家采纳,获得20
3秒前
浮游应助科研通管家采纳,获得10
3秒前
上官若男应助科研通管家采纳,获得10
3秒前
赘婿应助科研通管家采纳,获得10
4秒前
evvj发布了新的文献求助10
4秒前
华仔应助科研通管家采纳,获得30
4秒前
无限的灵阳完成签到 ,获得积分20
4秒前
4秒前
科研通AI2S应助科研通管家采纳,获得10
4秒前
Jasper应助科研通管家采纳,获得10
4秒前
科研通AI6应助科研通管家采纳,获得30
4秒前
wanci应助科研通管家采纳,获得10
4秒前
赘婿应助科研通管家采纳,获得10
4秒前
4秒前
lawang发布了新的文献求助20
4秒前
amberzyc应助科研通管家采纳,获得10
4秒前
5秒前
Lucas应助猪猪hero采纳,获得10
5秒前
友好怜蕾发布了新的文献求助10
6秒前
7秒前
8秒前
8秒前
我是老大应助背后的书文采纳,获得10
8秒前
小杭76应助yuner采纳,获得10
8秒前
9秒前
Lester完成签到 ,获得积分10
10秒前
想发sci发布了新的文献求助10
10秒前
11秒前
量子星尘发布了新的文献求助10
12秒前
SC武完成签到,获得积分10
13秒前
17完成签到 ,获得积分10
14秒前
汉堡包应助lilyz615采纳,获得10
14秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Social Work Ethics Casebook: Cases and Commentary (revised 2nd ed.).. Frederic G. Reamer 1070
2025-2031年中国兽用抗生素行业发展深度调研与未来趋势报告 1000
List of 1,091 Public Pension Profiles by Region 851
The International Law of the Sea (fourth edition) 800
A Guide to Genetic Counseling, 3rd Edition 500
Synthesis and properties of compounds of the type A (III) B2 (VI) X4 (VI), A (III) B4 (V) X7 (VI), and A3 (III) B4 (V) X9 (VI) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5414857
求助须知:如何正确求助?哪些是违规求助? 4531710
关于积分的说明 14129736
捐赠科研通 4447140
什么是DOI,文献DOI怎么找? 2439607
邀请新用户注册赠送积分活动 1431701
关于科研通互助平台的介绍 1409315