paper-with-me

Papers

SliceGPT: Compress Large Language Models by Deleting Rows and Columns

2024-01-26 · Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari do Nascimento, Torsten Hoefler, James Hensman

Large language models have become the cornerstone of natural language processing, but their use comes with substantial costs in terms of compute and memory resources. Sparsification provides a solution to alleviate these resource constraints, and recent works have shown that trained models can be sparsified post-hoc. Existing sparsification techniques face challenges as they need additional data structures and offer constrained speedup with current hardware. In this paper we present SliceGPT, a new post-training sparsification scheme which replaces each weight matrix with a smaller (dense) matrix, reducing the embedding dimension of the network. Through extensive experimentation, we show that SliceGPT can remove up to 25% of the model parameters (including embeddings) for LLAMA2-70B, OPT 66B and Phi-2 models while maintaining 99%, 99% and 90% zero-shot task performance of the dense model respectively. Our sliced models run on fewer GPUs and run faster without any additional code optimization: on 24GB consumer GPUs we reduce the total compute for inference on LLAMA2-70B to 64% of that of the dense model; on 40GB A100 GPUs we reduce it to 66%. We offer a new insight, computational invariance in transformer networks, which enables SliceGPT and we hope it will inspire and enable future avenues to reduce memory and computation demands for pre-trained models. Code is available at: https://github.com/microsoft/TransformerCompression

📄 PDF Abstract BibTeX arXiv:2401.15024

Code (1)

microsoft/transformercompression 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

OPT OPT is a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters. The model uses an AdamW optimizer and weight decay of 0.1. It follows a linear…

Similar Papers 제목 키워드 기반

Change Is the Only Constant: Dynamic LLM Slicing based on Layer Redundancy

2024-11-05 · Razvan-Gabriel Dumitru, Paul-Ioan Clotan, Vikas Yadav, Darius Peteleaza 외

This paper introduces a novel model compression approach through dynamic layer-specific pruning in Large Language Models (LLMs), enhancing the traditional methodology established by SliceGPT. By transitioning from consta…

Model Compression

Getting Free Bits Back from Rotational Symmetries in LLMs

2024-10-02 · Jiajun He, Gergely Flamich, José Miguel Hernández-Lobato

Current methods for compressing neural network weights, such as decomposition, pruning, quantization, and channel simulation, often overlook the inherent symmetries within these networks and thus waste bits on encoding r…

Quantization

Japanese Sentence Compression with a Large Training Dataset

2017-07-01 · ACL 2017 7 · Shun Hasegawa, Yuta Kikuchi, Hiroya Takamura, Manabu Okumura

In English, high-quality sentence compression models by deleting words have been trained on automatically created large training datasets. We work on Japanese sentence compression by a similar approach. To create a large…

SentenceSentence Compression

DeltaLLM: Compress LLMs with Low-Rank Deltas between Shared Weights

2025-01-30 · Liana Mikaelyan, Ayyoob Imani, Mathew Salvaris, Parth Pathak 외

We introduce DeltaLLM, a new post-training compression technique to reduce the memory footprint of LLMs. We propose an alternative way of structuring LLMs with weight sharing between layers in subsequent Transformer bloc…

Adapt-Pruner: Adaptive Structural Pruning for Efficient Small Language Model Training

2025-02-05 · Boyao Wang, Rui Pan, Shizhe Diao, Xingyuan Pan 외

Small language models (SLMs) have attracted considerable attention from both academia and industry due to their broad range of applications in edge devices. To obtain SLMs with strong performance, conventional approaches…

Language ModelingLanguage ModellingMMLUSmall Language Model