<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Long Context on Duo&#39;s Tech Blog</title>
    <link>https://duoan.github.io/tags/long-context/</link>
    <description>Recent content in Long Context on Duo&#39;s Tech Blog</description>
    <image>
      <title>Duo&#39;s Tech Blog</title>
      <url>https://duoan.github.io/images/papermod-cover.png</url>
      <link>https://duoan.github.io/images/papermod-cover.png</link>
    </image>
    <generator>Hugo -- 0.153.1</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 26 May 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://duoan.github.io/tags/long-context/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sequence Parallelism III: Ring Attention for Context That Does Not Fit</title>
      <link>https://duoan.github.io/posts/ring-attention/</link>
      <pubDate>Mon, 26 May 2025 00:00:00 +0000</pubDate>
      <guid>https://duoan.github.io/posts/ring-attention/</guid>
      <description>&lt;h1 id=&#34;sequence-parallelism-iii-ring-attention-for-context-that-does-not-fit&#34;&gt;Sequence Parallelism III: Ring Attention for Context That Does Not Fit&lt;/h1&gt;
&lt;p&gt;Megatron SP reduces replicated activation memory around tensor-parallel blocks.
DeepSpeed Ulysses uses All-to-All to turn sequence shards into head shards for attention.
Ring Attention changes the unit of work again.
It asks each rank to keep a block of queries fixed, then circulate key/value blocks around a ring until every query block has seen every key/value block it needs.
That is the core idea in &lt;em&gt;Ring Attention with Blockwise Transformers for Near-Infinite Context&lt;/em&gt; (&lt;a href=&#34;https://arxiv.org/abs/2310.01889&#34;&gt;arXiv:2310.01889&lt;/a&gt;).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
