<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Torchdynamo on Programmer.ie</title>
    <link>http://programmer.ie/tags/torchdynamo/</link>
    <description>Recent content in Torchdynamo on Programmer.ie</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 08 Aug 2026 13:58:00 +0100</lastBuildDate>
    <atom:link href="http://programmer.ie/tags/torchdynamo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>PyTorch Compiler Debugging: Graph Breaks, Guards, Recompiles and torch.compile</title>
      <link>http://programmer.ie/books/pytorch-zero-to-hero/09a-chapter/</link>
      <pubDate>Sat, 08 Aug 2026 13:58:00 +0100</pubDate>
      <guid>http://programmer.ie/books/pytorch-zero-to-hero/09a-chapter/</guid>
      <description>&lt;h2 id=&#34;pytorch-zero-to-hero--advanced-step-09a&#34;&gt;PyTorch: Zero to Hero — Advanced Step 09A&lt;/h2&gt;&#xA;&lt;p&gt;In the previous chapter we treated &lt;code&gt;torch.compile&lt;/code&gt; as one tool inside a larger performance-debugging workflow.&lt;/p&gt;&#xA;&lt;p&gt;That is enough until compilation itself becomes the problem.&lt;/p&gt;&#xA;&lt;p&gt;Then the questions change.&lt;/p&gt;&#xA;&lt;p&gt;The model runs in eager mode.&lt;/p&gt;&#xA;&lt;p&gt;The model may even run when compiled.&lt;/p&gt;&#xA;&lt;p&gt;But perhaps:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;compile time is enormous&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;first call takes seconds&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;new shapes keep compiling again&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;graph breaks appear inside forward()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;compiled execution is slower than eager&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;one backend works and another fails&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;small code changes produce very different compiler behavior&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At that point, &lt;code&gt;torch.compile(model)&lt;/code&gt; is not the end of the story.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
