<?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>Context Parallelism on Duo&#39;s Tech Blog</title>
    <link>https://duoan.github.io/tags/context-parallelism/</link>
    <description>Recent content in Context Parallelism 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, 02 Jun 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://duoan.github.io/tags/context-parallelism/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sequence Parallelism IV: Megatron Context Parallel and Load-Balanced Rings</title>
      <link>https://duoan.github.io/posts/megatron-context-parallel/</link>
      <pubDate>Mon, 02 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://duoan.github.io/posts/megatron-context-parallel/</guid>
      <description>&lt;h1 id=&#34;sequence-parallelism-iv-megatron-context-parallel-and-load-balanced-rings&#34;&gt;Sequence Parallelism IV: Megatron Context Parallel and Load-Balanced Rings&lt;/h1&gt;
&lt;p&gt;Megatron Context Parallel, usually shortened to CP, brings long-context attention into Megatron&amp;rsquo;s hybrid-parallel world.
It keeps the familiar tensor, pipeline, and data-parallel axes, then adds a context axis that shards the sequence.
Inside that context group, attention behaves like a ring, borrowing the same blockwise K/V circulation idea as Ring Attention (&lt;a href=&#34;https://arxiv.org/abs/2310.01889&#34;&gt;arXiv:2310.01889&lt;/a&gt;) while staying compatible with Megatron-style tensor and pipeline parallelism (&lt;a href=&#34;https://arxiv.org/abs/2104.04473&#34;&gt;arXiv:2104.04473&lt;/a&gt;).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
