search
HomeTechnology peripheralsAIMicrosoft releases new mixed precision training framework FP8: 64% faster than BF16 and 42% less memory usage

微软发布新的混合精度训练框架 FP8:速度超过 BF16 64%,内存占用减少 42%

November 10 news, large language models (LLM) are rising rapidly, showing bright prospects in language generation and understanding, and their influence goes beyond the language field and extends to logic and mathematics. , physics and other fields.

微软发布新的混合精度训练框架 FP8:速度超过 BF16 64%,内存占用减少 42%

However, if you want to unlock these "extraordinary energy", you need to pay a high price. For example, training a 540B model requires 6144 TPUv4 chips of Project PaLM; and training a 175B model GPT-3, requires thousands of Petaflop/s-day.

A good solution is to train with low precision, which can increase processing speed and reduce memory usage and communication costs. The current mainstream training systems include Megatron-LM, MetaSeq and Colossal-AI, which use FP16/BF16 mixed precision or FP32 full precision by default to train large language models

Although these accuracy levels are necessary for large language models Indispensable, but they are computationally expensive.

If you use FP8 low precision, you can increase speed by 2 times, reduce memory costs by 50% to 75%, and save communication costs.

Currently only the Nvidia Transformer Engine is compatible with the FP8 framework, primarily leveraging this precision for GEMM (general matrix multiplication) calculations while maintaining master weights and gradients at FP16 or FP32 high precision.

To address this challenge, a team of researchers from Microsoft Azure and Microsoft Research introduced an efficient FP8 mixed-precision framework tailored for large language model training.

微软发布新的混合精度训练框架 FP8:速度超过 BF16 64%,内存占用减少 42%

Microsoft has introduced three optimization stages to leverage FP8 for distributed and mixed precision training. As these levels progress, increased integration of FP8 becomes evident, suggesting a greater impact on the LLM training process.

In addition, in order to overcome problems such as data overflow or underflow, Microsoft researchers proposed two key methods: automatic sampling and precise decoupling. The former involves components that are not sensitive to accuracy, reducing accuracy, and dynamically adjusting the Tensor sampling factor to Make sure gradient values ​​stay within the FP8 representation range. This prevents underflow and overflow events during communication, ensuring a smoother training process.

Microsoft has tested memory usage reduced by 27% to 42% and weight gradient communication overhead significantly reduced by 63% to 65% compared to the widely adopted BF16 mixed precision method. Runs 64% faster than widely adopted BF16 frameworks such as Megatron-LM and 17% faster than the Nvidia Transformer Engine.

微软发布新的混合精度训练框架 FP8:速度超过 BF16 64%,内存占用减少 42%

When training the GPT-175B model, the hybrid FP8 precision framework saves 21% of memory on the H100 GPU platform, and compared to TE (Transformer Engine), the training time is reduced 17%.

This site attaches the GitHub address and paper address: https://www.php.cn/link/7b3564b05f78b6739d06a2ea3187f5ca

The above is the detailed content of Microsoft releases new mixed precision training framework FP8: 64% faster than BF16 and 42% less memory usage. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Let's Dance: Structured Movement To Fine-Tune Our Human Neural NetsLet's Dance: Structured Movement To Fine-Tune Our Human Neural NetsApr 27, 2025 am 11:09 AM

Scientists have extensively studied human and simpler neural networks (like those in C. elegans) to understand their functionality. However, a crucial question arises: how do we adapt our own neural networks to work effectively alongside novel AI s

New Google Leak Reveals Subscription Changes For Gemini AINew Google Leak Reveals Subscription Changes For Gemini AIApr 27, 2025 am 11:08 AM

Google's Gemini Advanced: New Subscription Tiers on the Horizon Currently, accessing Gemini Advanced requires a $19.99/month Google One AI Premium plan. However, an Android Authority report hints at upcoming changes. Code within the latest Google P

How Data Analytics Acceleration Is Solving AI's Hidden BottleneckHow Data Analytics Acceleration Is Solving AI's Hidden BottleneckApr 27, 2025 am 11:07 AM

Despite the hype surrounding advanced AI capabilities, a significant challenge lurks within enterprise AI deployments: data processing bottlenecks. While CEOs celebrate AI advancements, engineers grapple with slow query times, overloaded pipelines, a

MarkItDown MCP Can Convert Any Document into Markdowns!MarkItDown MCP Can Convert Any Document into Markdowns!Apr 27, 2025 am 09:47 AM

Handling documents is no longer just about opening files in your AI projects, it’s about transforming chaos into clarity. Docs such as PDFs, PowerPoints, and Word flood our workflows in every shape and size. Retrieving structured

How to Use Google ADK for Building Agents? - Analytics VidhyaHow to Use Google ADK for Building Agents? - Analytics VidhyaApr 27, 2025 am 09:42 AM

Harness the power of Google's Agent Development Kit (ADK) to create intelligent agents with real-world capabilities! This tutorial guides you through building conversational agents using ADK, supporting various language models like Gemini and GPT. W

Use of SLM over LLM for Effective Problem Solving - Analytics VidhyaUse of SLM over LLM for Effective Problem Solving - Analytics VidhyaApr 27, 2025 am 09:27 AM

summary: Small Language Model (SLM) is designed for efficiency. They are better than the Large Language Model (LLM) in resource-deficient, real-time and privacy-sensitive environments. Best for focus-based tasks, especially where domain specificity, controllability, and interpretability are more important than general knowledge or creativity. SLMs are not a replacement for LLMs, but they are ideal when precision, speed and cost-effectiveness are critical. Technology helps us achieve more with fewer resources. It has always been a promoter, not a driver. From the steam engine era to the Internet bubble era, the power of technology lies in the extent to which it helps us solve problems. Artificial intelligence (AI) and more recently generative AI are no exception

How to Use Google Gemini Models for Computer Vision Tasks? - Analytics VidhyaHow to Use Google Gemini Models for Computer Vision Tasks? - Analytics VidhyaApr 27, 2025 am 09:26 AM

Harness the Power of Google Gemini for Computer Vision: A Comprehensive Guide Google Gemini, a leading AI chatbot, extends its capabilities beyond conversation to encompass powerful computer vision functionalities. This guide details how to utilize

Gemini 2.0 Flash vs o4-mini: Can Google Do Better Than OpenAI?Gemini 2.0 Flash vs o4-mini: Can Google Do Better Than OpenAI?Apr 27, 2025 am 09:20 AM

The AI landscape of 2025 is electrifying with the arrival of Google's Gemini 2.0 Flash and OpenAI's o4-mini. These cutting-edge models, launched weeks apart, boast comparable advanced features and impressive benchmark scores. This in-depth compariso

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools