Zhaowei Zhu, Hao Cheng, Jiaheng Wei, Yao Lu, Zeyu Wang, Qi Xuan, Yujie Fang, Xiaoniu Yang, Dongwei Xu
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Although large language models (LLMs) have achieved remarkable success across various domains, their considerable scale necessitates substantial computational resources, posing significant challenges for deployment in resource-constrained environments. Layer pruning, as a simple yet effective compression method, removes layers of a model directly, reducing computational overhead. However, what are the best practices for layer pruning in LLMs? Are sophisticated layer selection metrics truly effective? Does the LoRA (Low-Rank Approximation) family, widely regarded as a leading method for pruned model fine-tuning, truly meet expectations when applied to post-pruning fine-tuning? To answer these questions, we dedicate thousands of GPU hours to benchmarking layer pruning in LLMs and gaining insights across multiple dimensions. Our results demonstrate that a simple approach, i.e., pruning the final 25\% of layers followed by fine-tuning the \texttt{lm\_head} and the remaining last three layer, yields remarkably strong performance. Following this guide, we prune Llama-3.1-8B-It and obtain a model that outperforms many popular LLMs of similar size, such as ChatGLM2-6B, Vicuna-7B-v1.5, Qwen1.5-7B and Baichuan2-7B. We release the optimal model weights on Huggingface, and the code is available on GitHub.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2411.15558")
get_code_for_paper("2411.15558")
have("2411.15558")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2411.15558.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2411.15558)
Connect an agent — have() is free.