<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>FlashAttention on 111qqz的小窝</title><link>https://111qqz.com/tags/flashattention/</link><description>Recent content in FlashAttention on 111qqz的小窝</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>hust.111qqz@gmail.com (111qqz)</managingEditor><webMaster>hust.111qqz@gmail.com (111qqz)</webMaster><copyright>© 2011-2026 111qqz</copyright><lastBuildDate>Wed, 21 Oct 2026 19:30:00 +0800</lastBuildDate><atom:link href="https://111qqz.com/tags/flashattention/index.xml" rel="self" type="application/rss+xml"/><item><title>GPU 的数据存在哪？——从 HBM 到片上存储的存储层级</title><link>https://111qqz.com/2026/10/gpu-memory-hierarchy-data-movement/</link><pubDate>Wed, 21 Oct 2026 19:30:00 +0800</pubDate><author>hust.111qqz@gmail.com (111qqz)</author><guid>https://111qqz.com/2026/10/gpu-memory-hierarchy-data-movement/</guid><description>&lt;p&gt;最近在看 MIT 6.S191 Lecture 9 的时候，反复听到一句话：Data Movement Matters。&lt;/p&gt;
&lt;p&gt;之前写过 &lt;a href="https://111qqz.com/2026/09/arithmetic-intensity-compute-bound/" &gt;Arithmetic Intensity 和 Compute/Memory Bound&lt;/a&gt;，也刚写完 &lt;a href="https://111qqz.com/2026/10/flash-attention-tiling-online-softmax/" &gt;FlashAttention 的分块和 Online Softmax&lt;/a&gt;。这些文章里&amp;quot;HBM&amp;quot;和&amp;quot;片上存储&amp;quot;出现了很多次，但我发现自己其实一直没有认真想过一个问题：HBM 到底是什么？它全称叫 High Bandwidth Memory——高带宽内存——既然带宽已经很高了，为什么还要费这么大劲减少对它的访问？&lt;/p&gt;</description></item><item><title>FlashAttention 的核心思想：为什么 Attention Matrix 根本不需要存下来？</title><link>https://111qqz.com/2026/10/flash-attention-tiling-online-softmax/</link><pubDate>Wed, 21 Oct 2026 18:00:00 +0800</pubDate><author>hust.111qqz@gmail.com (111qqz)</author><guid>https://111qqz.com/2026/10/flash-attention-tiling-online-softmax/</guid><description>&lt;p&gt;之前的几篇把 Self-Attention 的公式拆得比较清楚了，从 &lt;a href="https://111qqz.com/2026/09/single-head-attention-qkv/" &gt;QKV 的计算含义&lt;/a&gt;到 &lt;a href="https://111qqz.com/2026/09/multi-head-attention/" &gt;Multi-Head 的分工&lt;/a&gt;。另一条线是 GPU 性能——&lt;a href="https://111qqz.com/2026/09/arithmetic-intensity-compute-bound/" &gt;Arithmetic Intensity、memory bound、HBM 带宽&lt;/a&gt;这些概念也已经聊过。关于 HBM 和片上存储的物理区别，可以参考&lt;a href="https://111qqz.com/2026/10/gpu-memory-hierarchy-data-movement/" &gt;GPU 存储层级那篇&lt;/a&gt;。&lt;/p&gt;</description></item></channel></rss>