Episode 67 of the Stanford MLSys Seminar “Foundation Models Limited Series”!
Speaker: Tri Dao
Abstract:
Transformers are slow and memory-hungry on long sequences, since the time and memory complexity of self-attention are quadratic in sequence length. Approximate attention methods have attempted to address this problem by trading off model quality to reduce the compute complexity, but often do not achieve wall-clock speedup. We argue that a missing principle is making attention algorithms IO-aware -- accounting for reads and writes between levels of GPU memory. We propose FlashAttention, an IO-aware exact attention algorithm that uses tiling to reduce the number of memory reads/writes between GPU high bandwidth memory (HBM) and GPU on-chip SRAM. We analyze the IO complexity of FlashAttention, showing that it requires fewer HBM accesses than standard attention, and is optimal for a range of SRAM sizes. We also extend FlashAttention to block-sparse attention, yielding an approximate attenti
4 views
489
132
1 month ago 00:18:56 1
How To Teach A Child To Read-Raise Genius/Smarter Kids-2,3,4,5,6 Year Olds Children Learning Reading
1 month ago 00:01:49 22
Fish arrow 13cm flash j shad
1 month ago 00:08:08 3
France is sinking 3 meters! Dams and rivers overflow, historic flooding in France
2 months ago 00:11:16 1
ASMR Fast Paced Doctor Exam | Personal Attention, Flashlight, Whispered
2 months ago 00:04:50 1
The Clash - The Magnificent Seven (Official Video)
2 months ago 00:03:12 2
DREW RYNIEWICZ - It Mustve Been Love - THE X FACTOR USA 2011
2 months ago 00:04:47 1
Machine Love (feat. Kasane Teto)
2 months ago 00:05:26 1
Absolute Classic Cars. 1967 Morris Minor 1000 Deluxe - Bare shell restoration to Concours - SOLD
2 months ago 00:03:01 1
Cannes, the Capital of Cinema, plunged under Water. Floods in France due to storm from Europe.
2 months ago 00:07:49 1
Death by Glamour (UNDERTALE ANIMATIC ) - Mettaton vs. Frisk Fight
2 months ago 00:04:47 1
Icon For Hire-Now You Know (Official Music Video)
2 months ago 00:00:00 1
Live Earthquake Monitoring on GlobalQuake
3 months ago 00:02:59 1
Au Kenya, la réalité virtuelle au service des plus démunis
3 months ago 00:08:42 1
Deadly typhoon destroys China and other natural disasters in the world
3 months ago 00:13:44 1
Fast and Aggressive ASMR for ADHD 🦄⚡️
3 months ago 00:00:00 1
Focus Sahel : la guerre entre la Russie et l’Ukraine va-t-elle s’exporter au Sahel ?
3 months ago 00:08:35 1
DAMS ERUPTION! Entire Cities are Sinking, heavy rains in Gujarat, India. Flash floods
3 months ago 00:18:13 1
2024 BYD Yangwang U8 - China’s Craziest and Luxury SUV!
3 months ago 00:08:05 1
TORMENT FROM HEAVEN FELL ON MEDINA! Storm and floods in Saudi Arabia.
3 months ago 00:01:19 1
VOA60 Afrique : Tchad, Togo, Kenya, Botswana
3 months ago 04:01:26 1
Let’s reproduce GPT-2 (124M)
3 months ago 00:03:37 1
Zato-ichi Style lightning fast Flash Cut in 3 simple steps!
3 months ago 00:02:22 1
Warriors Cats •°Tigerstar’s death°• REMAKE
3 months ago 00:10:08 1
JUST LIKE TSUNAMI! Floods ravage cities in Mallorca and Menorca, Spain.