paper-with-me

Papers

Revisiting Block-based Quantisation: What is Important for Sub-8-bit LLM Inference?

2023-10-08 · Cheng Zhang, Jianyi Cheng, Ilia Shumailov, George A. Constantinides, Yiren Zhao

The inference of Large language models (LLMs) requires immense computation and memory resources. To curtail these costs, quantisation has merged as a promising solution, but existing LLM quantisation mainly focuses on 8-bit. In this work, we explore the statistical and learning properties of the LLM layer and attribute the bottleneck of LLM quantisation to numerical scaling offsets. To address this, we adapt block quantisations for LLMs, a family of methods that share scaling factors across packed numbers. Block quantisations efficiently reduce the numerical scaling offsets solely from an arithmetic perspective, without additional treatments in the computational path. Our nearly-lossless quantised 6-bit LLMs achieve a $19\times$ higher arithmetic density and $5\times$ memory density than the float32 baseline, surpassing the prior art 8-bit quantisation by $2.5\times$ in arithmetic density and $1.2\times$ in memory density, without requiring any data calibration or re-training. We also share our insights into sub-8-bit LLM quantisation, including the mismatch between activation and weight distributions, optimal fine-tuning strategies, and a lower quantisation granularity inherent in the statistical properties of LLMs. The latter two tricks enable nearly-lossless 4-bit LLMs on downstream tasks. Our code is open-sourced.

📄 PDF Abstract BibTeX arXiv:2310.05079

Code (1)

chengzhang-98/llm-mixed-q 공식 구현 pytorch

Tasks

Attribute

Similar Papers 제목 키워드 기반

ThriftAttention: Selective Mixed Precision for Long-Context FP4 Attention

2026-05-21 · Joe Sharratt arxiv

Efficient attention algorithms are critical to mitigate the quadratic cost of attention in long-context workloads. Prior work utilises block-scaled quantisation techniques on Blackwell GPUs to move attention computation …

Optimal Formats for Weight Quantisation

2025-05-19 · Douglas Orr, Luka Ribar, Carlo Luschi

Weight quantisation is an essential technique for enabling efficient training and deployment of modern deep learning models. However, the recipe book of quantisation formats is large and the formats are often chosen empi…

Understanding and Minimising Outlier Features in Neural Network Training

2024-05-29 · Bobby He, Lorenzo Noci, Daniele Paliotta, Imanol Schlag 외

Outlier Features (OFs) are neurons whose activation magnitudes significantly exceed the average over a neural network's (NN) width. They are well known to emerge during standard transformer training and have the undesira…

Vector Quantisation for Robust Segmentation

2022-07-05 · Ainkaran Santhirasekaram, Avinash Kori, Mathias Winkler, Andrea Rockall 외

The reliability of segmentation models in the medical domain depends on the model's robustness to perturbations in the input space. Robustness is a particular challenge in medical imaging exhibiting various sources of im…

Data AugmentationDictionary LearningSegmentation

An exploration of the effect of quantisation on energy consumption and inference time of StarCoder2

2024-11-15 · Pepijn de Reus, Ana Oprescu, Jelle Zuidema

This study examines quantisation and pruning strategies to reduce energy consumption in code Large Language Models (LLMs) inference. Using StarCoder2, we observe increased energy demands with quantization due to lower th…

Model CompressionQuantization