paper-with-me

홈 › Papers

Training and inference of large language models using 8-bit floating point

2023-09-29 · Sergio P. Perez, Yan Zhang, James Briggs, Charlie Blake, Josh Levy-Kramer, Paul Balanca, Carlo Luschi, Stephen Barlow, Andrew William Fitzgibbon

FP8 formats are gaining popularity to boost the computational efficiency for training and inference of large deep learning models. Their main challenge is that a careful choice of scaling is needed to prevent degradation due to the reduced dynamic range compared to higher-precision formats. Although there exists ample literature about selecting such scalings for INT formats, this critical aspect has yet to be addressed for FP8. This paper presents a methodology to select the scalings for FP8 linear layers, based on dynamically updating per-tensor scales for the weights, gradients and activations. We apply this methodology to train and validate large language models of the type of GPT and Llama 2 using FP8, for model sizes ranging from 111M to 70B. To facilitate the understanding of the FP8 dynamics, our results are accompanied by plots of the per-tensor scale distribution for weights, activations and gradients during both training and inference.

📄 PDF Abstract BibTeX arXiv:2309.17224

Code (0)

등록된 구현이 없습니다.

Tasks

Computational Efficiency

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Multi-Head Attention 설명 없음
Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Weight Decay 설명 없음
Adam 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Microscaling Floating Point Formats for Large Language Models

2025-10-02 · Marco Cococcioni, Dario Pagani, Federico Rossi arxiv

The increasing computational and memory demands of large language models (LLMs) necessitate innovative approaches to optimize resource usage without compromising performance. This paper leverages microscaling floating-po…

RepDL: Bit-level Reproducible Deep Learning Training and Inference

2025-10-10 · Peichen Xie, Xian Zhang, Shuo Chen arxiv

Non-determinism and non-reproducibility present significant challenges in deep learning, leading to inconsistent results across runs and platforms. These issues stem from two origins: random number generation and floatin…

dMX: Differentiable Mixed-Precision Assignment for Low-Precision Floating-Point Formats

2026-06-02 · Giuseppe Franco, Ian Colbert, Pablo Monteagudo-Lago, Felix Marty 외 arxiv

Quantizing large language models (LLMs) to low-precision floating-point representations is central to efficient deployment, yet applying a single bit-width uniformly across all layers is sub-optimal in terms of both perf…

Flexpoint: An Adaptive Numerical Format for Efficient Training of Deep Neural Networks

2017-11-06 · NeurIPS 2017 12 · Urs Köster, Tristan J. Webb, Xin Wang, Marcel Nassar 외

Deep neural networks are commonly developed and trained in 32-bit floating point format. Significant gains in performance and energy efficiency could be realized by training and inference in numerical formats optimized f…

Generative Adversarial Network

Addition is All You Need for Energy-efficient Language Models

2024-10-01 · Hongyin Luo, Wei Sun

Large neural networks spend most computation on floating point tensor multiplications. In this work, we find that a floating point multiplier can be approximated by one integer adder with high precision. We propose the l…

AllNatural Language UnderstandingQuestion Answering