Change
72af2e2
72af2e27459f70c3c47961adc66fa83304fec446 · commit on GitHub
pytorch-blog-feed: changed (180986 bytes, HTTP 200)
raw/pytorch-blog-feed/response.xml modified
- Source
- pytorch-blog-feed
- Lines added
- +114
- Lines removed
- -216
- Stored bytes at this commit
- 180,986
- Timestamp
- origin
- Raw artifact at this commit
- raw/pytorch-blog-feed/response.xml
Recorded headers
| observed_at | 2026-12-04T01:05:22.115Z |
|---|---|
| origin_date | 2026-12-04T01:00:54.000Z |
| status | 200 |
| final URL | https://pytorch.org/blog/feed/ |
| etag | "fe9266f077883abe9db9bbfe9f35f3e6" |
| last-modified | Thu, 03 Dec 2026 19:00:02 GMT |
| date | Fri, 04 Dec 2026 01:05:22 GMT |
| age | 268 |
| cache-control | public, max-age=60, s-maxage=43200, stale-while-revalidate=86400, stale-if-error=604800 |
| cf-cache-status | null |
| content-encoding | null |
| content-length | 180986 |
@
@@ -12,7 +12,7 @@ <atom:link href="https://pytorch.org/blog/feed/" rel="self" type="application/rss+xml" /> <link>https://pytorch.org/blog/</link> <description></description>-
<lastBuildDate>Wed, 02 Dec 2026 19:17:45 +0000</lastBuildDate>+
<lastBuildDate>Thu, 03 Dec 2026 17:07:13 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod>@
@@ -28,6 +28,117 @@ <height>32</height></image> <item>+
<title>From Models to Moments: What Developers Built During ExecuTorch Hackathon</title>+
<link>https://pytorch.org/blog/from-models-to-moments-what-developers-built-during-executorch-hackathon/</link>+
+
<dc:creator><![CDATA[Bilgin Cagatay, Software Engineering Manager (Meta), Felix Baum, Senior Director, Product Management, AI Software (Qualcomm), Andrew Caples, Business Development Manager (Meta), Lauren Lunde, Staff Product Manager (Qualcomm), Derrick Johnson, Staff Engineer (Qualcomm), Siddart…+
<pubDate>Thu, 03 Dec 2026 19:00:02 +0000</pubDate>+
<category><![CDATA[Blog]]></category>+
<guid isPermaLink="false">https://pytorch.org/?p=216219</guid>+
+
<description><![CDATA[<p>TL;DR What happens when you put open source AI, powerful edge hardware, and a room full of highly motivated developers together for 48 hours? At the ExecuTorch Hackathon at Founder’s...</p>+
<p>The post <a href="https://pytorch.org/blog/from-models-to-moments-what-developers-built-during-executorch-hackathon/">From Models to Moments: What Developers Built During ExecuTorch Hackathon</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>+
]]></description>+
<content:encoded><![CDATA[<p><strong>TL;DR</strong></p>+
<p>What happens when you put open source AI, powerful edge hardware, and a room full of highly motivated developers together for 48 hours? At the ExecuTorch Hackathon at Founder’s Inc. in San Francisco, the answer included an AI scam judge, a clinical mobility measurement tool, an offline smart-home…+
<p>Held October 17–18, the ExecuTorch Hackathon converged around a shared goal: helping developers build AI experiences that run efficiently, privately, and locally on real devices.</p>+
<p>The October event built on the momentum of the <a href="https://pytorch.org/blog/building-the-future-of-on-device-ai-at-the-executorch-hackathon/">June ExecuTorch Hackathon</a>, where developers built real-time AI applications on Snapdragon-powered mobile devices. This time, the challenge expande…+
<h2>One Framework, Three Form Factors</h2>+
<p>This hackathon introduced three new hardware tracks: <a href="https://hackersquad.io/events/executorch-hackathon-compute-track">Compute</a>, <a href="https://hackersquad.io/events/executorch-hackathon-mobile-xr-track">Mobile + XR</a>, and <a href="https://hackersquad.io/events/executorch-hackatho…+
<p><em>Across the three tracks, there were <strong>199 registrations overall</strong>: <strong>75 for IoT</strong>, <strong>86 for Compute</strong>, and <strong>38 for Mobile + XR</strong>.</em></p>+
<p>ExecuTorch lets developers optimize and deploy PyTorch models across compute platforms, smartphones, XR headsets, and embedded systems. The tracks demonstrated this portability on Qualcomm-powered devices, with local execution supporting responsive, privacy-conscious AI experiences.</p>+
<h2><img fetchpriority="high" decoding="async" class="alignnone wp-image-216247 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/07-Hackathon-Floor.png" alt="" width="1332" height="887" srcset="https://pytorch.org/wp-content/uploads/2026/12/07-Hackathon-Floor.png 1332w, https://pytorch…+
<h2>A Partnership Built for On-Device AI</h2>+
<p>Meta’s ExecuTorch team, Qualcomm, and the PyTorch Foundation collaborated to support the hackathon, bringing together PyTorch’s open source ecosystem and Qualcomm’s hardware and acceleration.</p>+
<p>Through ExecuTorch and Qualcomm’s QNN backend, teams could deploy models across Snapdragon compute, mobile, XR, and IoT platforms and use dedicated acceleration such as the Qualcomm Hexagon NPU.</p>+
<h2>The Robot Dog That Stole the Show</h2>+
<p>A robot dog running ExecuTorch on the Arduino VENTUNO Q, built with the Qualcomm QCS8275 platform, made its public debut at the event. It became a crowd favorite when it led participants through stretches and pushups, turning a technical demo into a shared workout.</p>+
<h2><img decoding="async" class="alignnone wp-image-216246 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/04-Robot-Dog.png" alt="" width="1683" height="1121" srcset="https://pytorch.org/wp-content/uploads/2026/12/04-Robot-Dog.png 1683w, https://pytorch.org/wp-content/uploads/2026/12/…+
<h2>Meet the Winning Teams</h2>+
<h3>Compute Track: <a href="https://hackersquad.io/events/executorch-hackathon-compute-track/projects/cmvb4ej49002dpc23cys05nj0">MotionVitals AI</a></h3>+
<p><em><strong>MotionVitals AI</strong></em> won the Compute track with an on-device clinical mobility measurement tool, initially focused on detecting muscle loss associated with GLP-1 medications.</p>+
<p>Using a camera and Snapdragon device, it runs pose and movement-phase models through ExecuTorch on the Qualcomm Hexagon NPU. A rules engine converts the results into repetitions, timings, and movement-quality flags. All processing stays on-device; no video is stored or transmitted.</p>+
<h3><img decoding="async" class="alignnone wp-image-216242 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/01-MotionVitals-AI.png" alt="" width="1351" height="900" srcset="https://pytorch.org/wp-content/uploads/2026/12/01-MotionVitals-AI.png 1351w, https://pytorch.org/wp-content/uploa…+
<h3>Mobile + XR Track: <a href="https://hackersquad.io/events/executorch-hackathon-mobile-xr-track/projects/cmve65dlj00hhoy245ijehx2r">Second-Ear</a></h3>+
<p><em><strong>Second-Ear</strong></em> won the Mobile + XR track with an Android scam detector for the Samsung Galaxy S25 with Snapdragon 8 Elite. Using ExecuTorch and the Qualcomm Hexagon NPU, it analyzes live call audio and transcripts to produce a scam-risk score every second, without cloud proc…+
<p>The system can warn users, end high-risk calls, or require authorization before sensitive actions. The team reported a 0.995 AUROC, a 1.8% false-positive rate, and approximately 215–423 milliseconds of decision latency, demonstrating responsive scam detection while keeping conversations on-device…+
<h3><img decoding="async" class="alignnone wp-image-216234 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/02-Second-Ear.png" alt="" width="1509" height="1006" srcset="https://pytorch.org/wp-content/uploads/2026/12/02-Second-Ear.png 1509w, https://pytorch.org/wp-content/uploads/2026/1…+
<h3>IoT Track: <a href="https://www.hackersquad.io/events/executorch-hackathon-iot-track/projects/cmve5jo1l00h6oy24ah7w94b6">Venturo Home Mobility</a></h3>+
<p><em><strong>Venturo Home Mobility</strong></em> won the IoT track with an offline smart-home controller on the Arduino VENTUNO Q. Users control lighting, temperature, and television through voice commands and hand gestures, making everyday controls more accessible to people who struggle with swit…+
<p>ExecuTorch powers hand tracking and gesture recognition on the Qualcomm Hexagon NPU, while on-device Whisper speech recognition handles “Hey Ardy” commands. A browser dashboard shows the home’s live status, but the AI needs no cloud connection or internet access.</p>+
<h2> <img decoding="async" class="alignnone wp-image-216235 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/03-Venturo-Home-Mobility.png" alt="" width="1686" height="1123" srcset="https://pytorch.org/wp-content/uploads/2026/12/03-Venturo-Home-Mobility.png 1686w, https://pytorch.org/wp…+
<h2>What Developers Discovered</h2>+
<p>Across all three tracks, participants experienced the advantages of running AI locally:</p>+
<ul>+
<li><strong>Lower latency:</strong> Models can respond without waiting for a network round trip.</li>+
<li><strong>Greater privacy:</strong> Audio, video, and other sensitive data can remain on the device.</li>+
<li><strong>Efficient acceleration:</strong> Workloads can take advantage of specialized hardware such as the Hexagon NPU.</li>+
<li><strong>Portability:</strong> The same broader PyTorch and ExecuTorch workflow can extend across different device categories.</li>+
<li><strong>New product possibilities:</strong> Developers can build applications that work in environments where connectivity is limited or unavailable.</li>+
</ul>+
<h2>Building the Next Generation of Edge AI</h2>+
<p><img decoding="async" class="alignleft wp-image-216253 size-medium" src="https://pytorch.org/wp-content/uploads/2026/12/02-XR-Developers-200x300.png" alt="" width="200" height="300" srcset="https://pytorch.org/wp-content/uploads/2026/12/02-XR-Developers-200x300.png 200w, https://pytorch.org/wp-co…+
<p>The future of AI is not just larger models. It is AI that works where people live, work, move, and interact with intelligence that is fast, private, and close at hand.</p>+
<p><!-- IMAGE PLACEHOLDER 2: closing photo at the end of the post (image2 in the Doc). Download from the Doc and upload via the WP media library. --></p>+
<p><em>* Original photos can be found in the <a href="https://hackersquad.io/events/executorch-hackathon-iot-track#gallery">Hacker/Squad event gallery</a>.</em></p>+
<p>The post <a href="https://pytorch.org/blog/from-models-to-moments-what-developers-built-during-executorch-hackathon/">From Models to Moments: What Developers Built During ExecuTorch Hackathon</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>+
]]></content:encoded>+
+
+
+
</item>+
<item>+
<title>PyTorch Foundation Projects Featured in the Cloud Native AI Stack at KubeCon + CloudNativeCon North America 2026</title>+
<link>https://pytorch.org/blog/pytorch-foundation-projects-featured-in-the-cloud-native-ai-stack-at-kubecon-cloudnativecon-north-america-2026/</link>+
+
<dc:creator><![CDATA[PyTorch Foundation]]></dc:creator>+
<pubDate>Thu, 03 Dec 2026 17:00:20 +0000</pubDate>+
<category><![CDATA[Blog]]></category>+
<guid isPermaLink="false">https://pytorch.org/?p=216227</guid>+
+
<description><![CDATA[<p>TL;DR At KubeCon + CloudNativeCon North America 2026 in Salt Lake City, PyTorch Foundation projects showed up on the keynote stage again and again: PyTorch and DeepSpeed in Kubeflow’s graduation,...</p>+
<p>The post <a href="https://pytorch.org/blog/pytorch-foundation-projects-featured-in-the-cloud-native-ai-stack-at-kubecon-cloudnativecon-north-america-2026/">PyTorch Foundation Projects Featured in the Cloud Native AI Stack at KubeCon + CloudNativeCon North America 2026</a> appeared first on <a hre…+
]]></description>+
<content:encoded><![CDATA[<h2><b>TL;DR</b></h2>+
<p><span style="font-weight: 400;">At KubeCon + CloudNativeCon North America 2026 in Salt Lake City, PyTorch Foundation projects showed up on the keynote stage again and again: PyTorch and DeepSpeed in Kubeflow’s graduation, Ray through KubeRay’s move into the CNCF, and vLLM alongside ll…+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216282" src="https://pytorch.org/wp-content/uploads/2026/12/Jonathan-Bryce-KubeCon-1024x683.jpg" alt="Jonathan Bryce KubeCon" width="1024" height="683" srcset="https://pytorch.org/wp-content/uploads/2026/12…+
<p><span style="font-weight: 400;">This year’s KubeCon opened with a striking number: inference traffic across the industry has grown 4x in the last eight months and agents now make up more than 70% of all inference traffic. As CNCF Executive Director, Jonathan Bryce, put it, “inference …+
<h2><b>Kubeflow graduates from the CNCF, built together with PyTorch</b></h2>+
<p> </p>+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216241" src="https://pytorch.org/wp-content/uploads/2026/12/Kubeflow-1024x683.jpg" alt="Kubeflow" width="1024" height="683" srcset="https://pytorch.org/wp-content/uploads/2026/12/Kubeflow-1024x683.jpg 1024w…+
<p><span style="font-weight: 400;">The Kubeflow community announced on stage that the project has officially graduated from the CNCF, the foundation’s highest maturity level. Since launching in 2017, Kubeflow has passed 500 million downloads and grown to nearly 9,000 contributors. Kubeflow sub…+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216548" src="https://pytorch.org/wp-content/uploads/2026/12/KubeCon-Kubeflow-1024x768.jpg" alt="KubeCon Kubeflow" width="1024" height="768" srcset="https://pytorch.org/wp-content/uploads/2026/12/KubeCon-Kub…+
<p><span style="font-weight: 400;">Ron Kahn and Ekin Karabulut of NVIDIA, Andrey Velichkevich of Apple, and Vara Bonthu and Manabu McCloskey of AWS shared how they built it. The keynote credited PyTorch and DeepSpeed, highlighted two examples of cross-project collaboration demonstrating how Kubeflow…+
<ul>+
<li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Elastic PyTorch on Kubernetes: collaboration between the communities brought TorchElastic to Kubernetes, helping make elastic distributed training a first-class support in PyTorch. This capability later became part of </spa…+
<li style="font-weight: 400;" aria-level="1"><span style="font-weight: 400;">Gang scheduling for PyTorchJobs: NVIDIA’s Run:ai team built on Kubeflow Trainer alongside KAI Scheduler, a CNCF sandbox project, to gang-schedule PyTorchJobs and other distributed workloads with topology awareness, so…+
</ul>+
<p><span style="font-weight: 400;">The lesson for PyTorch developers is practical: you can run distributed PyTorch on a project that is now provided to last without becoming a Kubernetes specialist. Projects like Kubeflow Trainer are bridging that gap, bringing together the strengths of the Cloud Na…+
<h2><b>Ray and Kubernetes come together through KubeRay</b></h2>+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216258" src="https://pytorch.org/wp-content/uploads/2026/12/Robert-Nishihara-1024x683.jpg" alt="Robert Nishihara" width="1024" height="683" srcset="https://pytorch.org/wp-content/uploads/2026/12/Robert-Nish…+
<p><span style="font-weight: 400;">Robert Nishihara, co-founder of Anyscale and co-creator of Ray, announced that KubeRay is joining the CNCF as a sandbox project. KubeRay has been community driven from the start, with major contributions from Google, Microsoft, and many other companies.</span></p>+
<p><span style="font-weight: 400;">Ray is the distributed computing framework behind frontier-scale AI. Nishihara pointed to the GLM models, Cursor’s models, NVIDIA’s Nemotron models, and models from Reflection, Microsoft AI, Mistral, and Periodic Labs as examples built with Ray, noting …+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216549" src="https://pytorch.org/wp-content/uploads/2026/12/Ray-powers-frontier-AI-1024x768.jpeg" alt="Ray powers frontier AI" width="1024" height="768" srcset="https://pytorch.org/wp-content/uploads/2026/1…+
<p><span style="font-weight: 400;">Nishihara’s explanation of why Ray and Kubernetes fit together is worth reiterating. A single RL workload can involve training, inference, sandboxes, and rollout agents, tightly coupled by fast weight sync and constant data movement, each with its own failure…+
<h2><b>vLLM and production lessons</b></h2>+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216550" src="https://pytorch.org/wp-content/uploads/2026/12/CoreWeave-Open-Source-Project-Contributions-1024x768.jpeg" alt="CoreWeave Open Source Project Contributions" width="1024" height="768" srcset="htt…+
<p><span style="font-weight: 400;">Rita Zhang of CoreWeave, a long-time Kubernetes contributor and maintainer, described what it looks like to run open source AI in production. CoreWeave contributes production hardening and API correctness fixes into vLLM, learned from running inference and RL workl…+
<p><iframe title="Open Source Inference at Production Scale - Carlos Costa, Abdullah Gharaibeh & Stephen Watt Keynote" width="1080" height="608" src="https://www.youtube.com/embed/No1o1o3FWcE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyrosc…+
<p><span style="font-weight: 400;">For anyone running vLLM on Kubernetes, Jooho Lee of Red Hat and Vishwa Hiren Gandhi of Oracle presented on reducing vLLM pod cold starts with KServe kernel caching. Teams often blame slow cold starts on model loading, but a large share of the delay comes from GPU k…+
<h2><b>Supporting open source across foundations</b></h2>+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216551" src="https://pytorch.org/wp-content/uploads/2026/12/openess-at-all-layers-of-the-stack-1024x768.jpeg" alt="openess at all layers of the stack" width="1024" height="768" srcset="https://pytorch.org/w…+
<p><span style="font-weight: 400;">Kevin Cochrane of Vultr called for a return to openness in AI infrastructure. Vultr runs heterogeneous GPU and CPU infrastructure that supports open source frameworks including PyTorch for model training and Kubernetes for inference.</span></p>+
<p><span style="font-weight: 400;">That is the same idea the Kubeflow team closed on: no single project, vendor or foundation can solve everything required to build, train and serve AI at scale. When the cloud native infrastructure layer and the open source intelligence layer, which spans training a…+
<h2><b>Open results compound</b></h2>+
<p><span style="font-weight: 400;"><img decoding="async" class="alignnone size-large wp-image-216263" src="https://pytorch.org/wp-content/uploads/2026/12/some-problems-can-only-be-solved-in-the-open-1024x683.jpg" alt="Some problems can only be solved in the open" width="1024" height="683" srcset="ht…+
<p><span style="font-weight: 400;">We believe open results compound when projects share ideas, integrate cleanly and contribute back upstream. This year’s KubeCon + CloudNativeCon demonstrated this firsthand and throughout the week, PyTorch Foundation projects including PyTorch, DeepSpeed, Ray…+
<p>The post <a href="https://pytorch.org/blog/pytorch-foundation-projects-featured-in-the-cloud-native-ai-stack-at-kubecon-cloudnativecon-north-america-2026/">PyTorch Foundation Projects Featured in the Cloud Native AI Stack at KubeCon + CloudNativeCon North America 2026</a> appeared first on <a hre…+
]]></content:encoded>+
+
+
+
</item>+
<item> <title>TorchCodec 1.0: The Media Layer of PyTorch</title> <link>https://pytorch.org/blog/torchcodec-1-0-the-media-layer-of-pytorch/</link> @
@@ -39,7 +150,7 @@ <description><![CDATA[<p>TorchCodec 1.0 is here! TorchCodec started out as a video decoding library with a simple goal: efficiently turning encoded videos into RGB video frame tensors. Since then, it has grown...</p><p>The post <a href="https://pytorch.org/blog/torchcodec-1-0-the-media-layer-of-pytorch/">TorchCodec 1.0: The Media Layer of PyTorch</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>]]></description>-
<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-216245 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/TorchCodec.png" alt="" width="2048" height="683" srcset="https://pytorch.org/wp-content/uploads/2026/12/TorchCodec.png 2…+
<content:encoded><![CDATA[<p><img decoding="async" class="aligncenter wp-image-216245 size-full" src="https://pytorch.org/wp-content/uploads/2026/12/TorchCodec.png" alt="" width="2048" height="683" srcset="https://pytorch.org/wp-content/uploads/2026/12/TorchCodec.png 2048w, https://pytorch…<p><a href="https://meta-pytorch.org/torchcodec/stable/index.html"><b>TorchCodec</b><span style="font-weight: 400;"> 1.0</span></a><span style="font-weight: 400;"> is here! TorchCodec started out as a video decoding library with a simple goal: efficiently turning encoded videos into RGB video frame…<p><span style="font-weight: 400;">TorchCodec has been used in production for over two years, and it is a key part of many multimodal projects. </span><a href="https://huggingface.co/"><span style="font-weight: 400;">Hugging Face</span></a><span style="font-weight: 400;"> libraries like </span><a hr…<p><span style="font-weight: 400;">In this post, we’ll go over what TorchCodec does today. Then we’ll dive into the new low-level APIs available in 1.0, which unlock a whole set of new features and performance knobs, and show how a coding agent can auto-tune those knobs for your own work…@
@@ -1104,221 +1215,8 @@ void run_policy(Module& policy, cudaStream_t stream) { -
</item>-
<item>-
<title>Fast by Default: Compile-Time Heuristics for Helion Kernels</title>-
<link>https://pytorch.org/blog/fast-by-default-compile-time-heuristics-for-helion-kernels/</link>-
-
<dc:creator><![CDATA[Caleb Min Sup Kim, Ethan Che, Jongsok Choi, Jason Ansel]]></dc:creator>-
<pubDate>Thu, 12 Nov 2026 16:45:26 +0000</pubDate>-
<category><![CDATA[Blog]]></category>-
<guid isPermaLink="false">https://pytorch.org/?p=210652</guid>-
-
<description><![CDATA[<p>TL;DR Helion now uses compile-time heuristics that analyze a kernel’s IR and dataflow to pick fast settings without slow autotuning. It classifies the kernel as matmul, reduction, or pointwise and...</p>-
<p>The post <a href="https://pytorch.org/blog/fast-by-default-compile-time-heuristics-for-helion-kernels/">Fast by Default: Compile-Time Heuristics for Helion Kernels</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>-
]]></description>-
<content:encoded><![CDATA[<h3>TL;DR</h3>-
<p>Helion now uses compile-time heuristics that analyze a kernel’s IR and dataflow to pick fast settings without slow autotuning. It classifies the kernel as matmul, reduction, or pointwise and chooses block sizes, warps, and stages, giving near-autotuned speed for free.</p>-
<h2>Introduction</h2>-
<p>Helion, PyTorch’s domain-specific language (DSL) for performance portable machine learning kernels, relies heavily on autotuning for its performance. Autotuning time can be a major bottleneck: for example, a previous team tuning a single paged-attention kernel across 72 shapes spent 10 hour…-
<p>We classify kernels into broad families based on the operations they contain – matmul, reduction, or pointwise – and apply a family-specific heuristic to each. These families are intentionally general: the matmul heuristic, for example, looks for any kernel containing a matmul operati…-
<p>Highlights:</p>-
<ul>-
<li><strong>Autotuner Heuristics.</strong> Our heuristics cover a large set of kernels, including GEMM, reductions, and even linear attention.</li>-
<li><strong>Linear attention.</strong> Over 96 kernel-and-shape cells spanning nine linear-attention variants, the computed config beats the hand-written Triton in <a href="https://github.com/fla-org/flash-linear-attention">Flash Linear Attention</a> (FLA) by <strong>1.18x</strong> in the forward pa…-
<li><strong>vLLM reduction kernels.</strong> Over 153 kernel-and-shape cells across six production kernels on H100, the computed config is <strong>1.27x</strong> faster than vLLM’s own handwritten CUDA/C++ operators, and <strong>2.2x</strong> faster than Helion’s previous default.</li>-
<li><strong>The analysis itself is cheap.</strong> Compiling a kernel with the heuristics on versus off differs negligibly (tens of milliseconds), which is lost in the noise of Triton compilation.</li>-
</ul>-
<h2>Our Approach: Decide the Config at Compile Time</h2>-
<p>A single Helion kernel can lower into thousands of different Triton kernels. One definition covers block sizes, loop orders, indexing modes and pipelining strategies, but the autotuner has to choose which of those thousands to emit, by compiling and benchmarking many candidates. And this autotuni…-
<p>We compute the config at compile time instead of searching for it at tuning time. We read the device IR and record structural facts about it: which axes are tiled, which block sizes are tunable, which tiles are live at which part of the kernel, etc. A heuristic reads those facts and emits a confi…-
<p>The point here is not to come up with a better config than the autotuner, which has the benefit of benchmarking potentially thousands of configs before selecting one. It is to add a point in the tradeoff space between performance and wait time.</p>-
<p><!-- IMAGE PLACEHOLDER: Image 1 - performance vs. wait-time tradeoff diagram (after "...between performance and wait time."). Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<p><img decoding="async" class="alignnone wp-image-210659 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-02-image-01.png" alt="" width="1716" height="925" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-02-image-01.png 1716w, https://pytorch.org/wp-content/uploads/20…-
<p>Our heuristics serve two purposes. A primary heuristic emits the default config used when autotuning is disabled. When autotuning is enabled, helper heuristics generate roughly 5–20 related or alternative configs that seed the autotuner. The goals are different: the default config should perform …-
<h2>How the Heuristics Work</h2>-
<p>A heuristic sets the values for various config knobs, which must be tuned carefully to achieve high performance and are normally picked by the autotuner. These include block sizes for each tiled axis, num_warps, num_stages, the L2 grouping, load eviction policies, and more.</p>-
<p>We pick a heuristic by scanning the device IR for the operations a kernel contains. Any matmul routes to the matmul heuristic regardless of what else is in the kernel; a reduction with no matmul routes to the reduction heuristic; everything else receives the pointwise heuristic. If a kernel’…-
<p>Our heuristics all lean on the same underlying analysis, which estimates resource usage of the kernel. At any step of the kernel, the analysis determines: given a candidate set of block sizes, how many registers, shared memory, and — on Blackwell — how much tensor memory, one CTA need…-
<p>To do this, we run a liveness analysis on the compiler IR and walk each graph to find where every value is last used, and guess where it will be placed in memory. This is a hard problem: we are trying to predict what Triton will keep in registers, what it will stage through shared memory, what it…-
<p><!-- IMAGE PLACEHOLDER: Image 2 - liveness / resource-estimate diagram (after "...the estimate is approximate."). Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<p><img decoding="async" class="alignnone wp-image-210660 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-03-image-01.png" alt="" width="2048" height="843" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-03-image-01.png 2048w, https://pytorch.org/wp-content/uploads/20…-
<p>Using this we can estimate things that matter for performance, such as:</p>-
<ul>-
<li><strong>Occupancy</strong>: how many CTAs fit on an SM at once. Whichever space runs out first decides it, e.g., a CTA needing a tenth of the SM’s registers and a tenth of its shared memory, but six tenths of its tensor memory, gets one CTA per SM, since two CTAs would go over the tensor m…-
<li><strong>Register pressure:</strong> Peak live registers spread over the threads we intend to launch tells us whether the assembler will be forced to spill.</li>-
</ul>-
<p>These considerations inform the selection of different config knobs. We’ll illustrate this for the <strong>matmul heuristic</strong>:</p>-
<ul>-
<li><strong>block_size:</strong> If the launch produces fewer CTAs than the GPU has SMs, we shrink block size on a grid axis to produce more of them.</li>-
<li><strong>num_stages:</strong> More stages hide more load latency, so we want as many as shared memory allows. But stages can also accidentally lose occupancy: six of them might fit while eating the CTA’s entire shared-memory budget, leaving one CTA per SM, where three stages and two CTAs pe…-
<li><strong>num_warps.</strong> Two things pull on this:-
<ul>-
<li><em>Which instruction Triton emits.</em> Below four warps, or with an M block under 64, Triton uses the smaller synchronous MMA; otherwise it uses the big high-throughput one (wgmma on Hopper, tcgen05 on Blackwell). Usually we want the big one. But when there is little matmul work sometimes the …-
<li><em>Register pressure.</em> Warps divide the tile across more threads, so more warps means less pressure on each one. If the peak live state at the current count would spill, that argues for increasing warps.</li>-
</ul>-
</li>-
<li><strong>Feasibility Check.</strong> A final pessimistic pass over the whole kernel: add up tensor memory, shared memory and registers, and confirm the config can actually launch. The adjustments above already respect these budgets, so this is mostly defensive.</li>-
</ul>-
<p>In the case where there are <strong>multiple matmuls</strong> in one kernel (for example for attention and linear attention), we run the matmul heuristic on each hl.dot and use those as the starting point. They may disagree: two dots can share one block-size knob — one dot’s N is freq…-
<p>To resolve these tradeoffs, we rank each dot by estimated importance: priority goes to any dot with a loop-carried accumulator, since that accumulator stays resident for the whole loop and its tile sets the kernel’s footprint; then its dynamic matmul work; then its own output area. Wherever…-
<p>The <strong>reduction heuristic</strong> works through a similar set of knobs:</p>-
<ul>-
<li><strong>num_warps.</strong> Three pressures here, pulling in different directions:-
<ul>-
<li><em>Enough warps to do the reduction.</em> A wide reduction needs warps working on it, so a ladder off the largest selected reduction sets the starting point: 128 elements wants one or two warps, 16,384 wants many more.</li>-
<li><em>Residency.</em> More warps per CTA means fewer CTAs per SM (there is a per-SM CTA limit), so we also test fewer warps.</li>-
<li><em>Register pressure.</em> Adjust warps to not spill registers.</li>-
</ul>-
</li>-
<li><strong>block_size.</strong> Fitting more CTAs per SM means potentially <em>smaller</em> tiles, so we shrink blocks back down to buy residency. The constraint is that an axis with stride 1 is the one carrying the coalesced loads, and shrinking it too far loses load coalescing.</li>-
<li><strong>Persistence.</strong> A reduction can be kept resident and done in one pass, or walked in chunks. The case that matters is a row the kernel reads twice — RMSNorm reads it once to compute the scale and again to apply it — and when we can prove that, staying persistent is allow…-
</ul>-
<p>Because the warp count depends on the blocks and the blocks depend on the warp count, we iterate until both hold still for a full round (in practice this doesn’t take very long).</p>-
<h2>Result 1: Config Quality, with No Tuning Time</h2>-
<h3>Linear attention</h3>-
<p>We measured nine linear-attention variants in forward and forward-plus-backward, over six production shapes, on H100. The six shapes span batch 1 to 8, 8 to 96 heads, sequence 1024 to 16384 and head dimension 64 to 256. The baseline is <a href="https://github.com/fla-org/flash-linear-attention">F…-
<p><!-- IMAGE PLACEHOLDER: Image 3 - linear attention vs. FLA chart (H100). Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<p><img decoding="async" class="alignnone wp-image-210661 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-06-image-01.png" alt="" width="2048" height="1385" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-06-image-01.png 2048w, https://pytorch.org/wp-content/uploads/2…-
<p>Before this work the choice was binary: take Helion’s no-autotune default and run at <strong>0.52x</strong> of handwritten FLA Triton, or spend GPU-hours autotuning and reach <strong>1.26x</strong>. The heuristic adds a third option that did not exist before: <strong>1.18x</strong>, with no…-
<h3>vLLM’s reduction kernels</h3>-
<p><a href="https://github.com/vllm-project/vllm">vLLM</a> is a widely deployed open-source LLM inference engine, and it ships its own hand-written CUDA/C++ kernels for the operations on its serving hot path. There are six reduction kernels — two FP8 quantizers, RMSNorm and SiLU-and-multiply e…-
<p><!-- IMAGE PLACEHOLDER: Image 4 - vLLM reduction kernels vs. vLLM CUDA chart (H100). Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<p><img decoding="async" class="alignnone wp-image-210662 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-07-image-01.png" alt="" width="2048" height="968" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-07-image-01.png 2048w, https://pytorch.org/wp-content/uploads/20…-
<p>And we get a similar result, in a different codebase. Helion’s no-autotune default runs at <strong>0.58x</strong> of vLLM’s CUDA; the computed config reaches <strong>1.27x</strong>; full autotuning gets to <strong>1.31x</strong>. The interesting number is the last gap: on these kernel…-
<h3>The everyday kernels, against torch.compile</h3>-
<p>Both comparisons above are specialist libraries — linear-attention variants and FP8 quantizers. This one is deliberately the opposite: the kernels everybody writes. RMSNorm, LayerNorm, softmax, cross entropy and friends, similar to the suite the <a href="https://pytorch.org/blog/helion/">in…-
<p>The reference baseline here is torch.compile(mode=”max-autotune-no-cudagraphs”): we force torch.compile onto its Triton backend so we are not comparing against handwritten libraries (e.g.. cuBLAS) but instead against generated Triton from a widely-used compiler. There is no tuned-conf…-
<p>On a suite of ten reduction kernels and 80 (kernel, shape) combinations, the computed config comes out at <strong>1.09x</strong> of max-autotune torch.compile, with no tuning of its own. Helion’s unseeded default is <strong>0.27x</strong>.</p>-
<p><!-- IMAGE PLACEHOLDER: Image 5 - reduction kernels vs. torch.compile max-autotune chart. Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<p><img decoding="async" class="alignnone wp-image-210663 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-08-image-01.png" alt="" width="2048" height="980" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-08-image-01.png 2048w, https://pytorch.org/wp-content/uploads/20…-
<p>We also sweep across thirteen matmul kernel families over 70 shapes. The computed config comes out at <strong>1.88x</strong> of max-autotune torch.compile overall, against <strong>0.51x</strong> for Helion’s default. Two caveats on that 1.88x. The comparisons are not always apples-to-apples…-
<p><!-- IMAGE PLACEHOLDER: Image 6 - matmul kernel families vs. torch.compile max-autotune chart. Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<h2><img decoding="async" class="alignnone wp-image-210666 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-08-image-02.png" alt="" width="2048" height="730" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-08-image-02.png 2048w, https://pytorch.org/wp-content/uploads/2…-
<h2>Result 2: Does the Seed Make the Search Faster?</h2>-
<p>Everything above is about the config Helion emits when autotuning is <em>off</em>. But the same configs can be handed to the autotuner as its starting population, and in principle a good starting point should let the search finish sooner. In addition to this primary config, the helper heuristics …-
<p>To test it we took 38 matmul and multi-matmul kernels — linear attention, attention, Mamba, and other wild cards like squeeze-and-excitation — and one shape for each kernel. Then we ran the full autotune effort on every cell twice: once from random configs, once with the compiler̵…-
<p>The short answer from this run is that <strong>seeding buys a lot early but much less late</strong>. Here is one cell, chosen as a clear example of the pattern. The x-axis tracks the number of configs tried, while the y-axis tracks performance relative to the best config we found.</p>-
<p><!-- IMAGE PLACEHOLDER: Image 7 - seeded vs. unseeded autotuning search curve. Download from the Google Doc, upload to the WP media library, replace this comment with the image. --></p>-
<p><img decoding="async" class="alignnone wp-image-210667 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/page-09-image-01.png" alt="" width="1817" height="812" srcset="https://pytorch.org/wp-content/uploads/2026/11/page-09-image-01.png 1817w, https://pytorch.org/wp-content/uploads/20…-
<p>Seeded, the <em>first</em> config is far superior to the unseeded first config. But unseeded quickly catches up, and they end up sitting on the same answer while the search grinds through several hundred more configs. The early advantage is enormous while the final advantage is zero.</p>-
<p>That is the pattern across all 38 cells. Medians below; counts include configs that failed to compile or failed to produce a timing, since those consume budget too.</p>-
<table>-
<thead>-
<tr>-
<th>Search target</th>-
<th>Median configs (no seeds / seeded)</th>-
</tr>-
</thead>-
<tbody>-
<tr>-
<td>within 50% of the best found</td>-
<td>35.5 / <strong>1.0</strong></td>-
</tr>-
<tr>-
<td>within 25%</td>-
<td>103.5 / <strong>2.5</strong></td>-
</tr>-
<tr>-
<td>within 5%</td>-
<td>255.5 / <strong>175.0</strong></td>-
</tr>-
<tr>-
<td>complete search</td>-
<td>521.5 / <strong>420.5</strong></td>-
</tr>-
</tbody>-
</table>-
<p>The advantage is concentrated entirely at the start: 35x fewer configs to reach something merely decent, 41x to get within 25%, but only 1.5x to get within 5% and 1.2x to finish the search.</p>-
<p>One thing this result is not: seeding does not make the final config any better. Replaying both arms’ winners on one GPU, they land within a fraction of a percent of each other. This is about how long the search takes, not where it ends up.</p>-
<h2>Limitations and Future Work</h2>-
<p>A central limitation is that these heuristics predict what another compiler will do. Every budget depends on guessing where a value ends up — registers, shared memory, or tensor memory — and that is Triton’s decision, not ours. Some of it is safe to bet on: on B200 a matmul resu…-
<p><strong>Measure instead of predicting.</strong> The cleanest fix for the limitation above is to stop guessing: compile once, read the register and shared-memory usage the assembler reported, and correct the estimate from there.</p>-
<p><strong>Fire on more kernels.</strong> We currently decline whenever we lack the information to size anything — a loop tiled over a range only known at runtime, for instance. A less-educated guess would be easy: a default extent, a mean, something. Configs would be worse without that inform…-
<p><strong>Touch more knobs.</strong> We set block sizes, num_warps and num_stages, plus some L2 grouping and L2 eviction policy. That leaves a long list untouched — tensor descriptors versus pointer arithmetic, persistent versus flat launch, etc. Individually these are probably worth less tha…-
<p><strong>Specialize the heuristics.</strong> They are deliberately general: one multi-matmul heuristic has to do well on attention <em>and</em> linear attention, one reduction heuristic on RMSNorm <em>and</em> vLLM’s quantization kernels. An alternative is parent heuristics with children …-
<p><strong>Other backends.</strong> Everything here is evaluated on NVIDIA, and the heuristics ship enabled for H100 and B200 on the Triton backend. Nothing in the approach is NVIDIA-specific — the analysis is parameterized by hardware limits that should apply across backends — but the constants and…-
<h2>Conclusion</h2>-
<p>These heuristics are merged into Helion and enabled by default on H100 and B200 with the Triton backend. If you would like to learn more, please check out the <a href="https://github.com/pytorch/helion/tree/main/helion/_compiler/autotuner_heuristics">autotuner heuristics</a>.</p>-
<p>The point is not that static analysis beats search, but rather that the gap is now small enough that skipping the search is a reasonable thing to do for some kernels. Helion’s out-of-the-box behavior went from 0.52x handwritten FLA Triton to 1.18x, and from 0.58x vLLM’s handwritten CU…-
<p>The post <a href="https://pytorch.org/blog/fast-by-default-compile-time-heuristics-for-helion-kernels/">Fast by Default: Compile-Time Heuristics for Helion Kernels</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>-
]]></content:encoded>-
-
-
-
</item>-
<item>-
<title>Integrating SGLang into Spyre in Under a Week with AI</title>-
<link>https://pytorch.org/blog/integrating-sglang-into-spyre-in-under-a-week-with-ai/</link>-
-
<dc:creator><![CDATA[Gal Bloch (IBM), Itay Etelis (IBM), Raghu Ganti (IBM), Mudhakar Srivatsa (IBM), Alex Nails (RadixArk)]]></dc:creator>-
<pubDate>Thu, 12 Nov 2026 14:45:25 +0000</pubDate>-
<category><![CDATA[Blog]]></category>-
<guid isPermaLink="false">https://pytorch.org/?p=210676</guid>-
-
<description><![CDATA[<p>TL;DR With help from AI coding agents, our two-person team integrated SGLang with IBM Spyre in less than a week, building a plugin of roughly 1,500 lines. Existing Spyre support...</p>-
<p>The post <a href="https://pytorch.org/blog/integrating-sglang-into-spyre-in-under-a-week-with-ai/">Integrating SGLang into Spyre in Under a Week with AI</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>-
]]></description>-
<content:encoded><![CDATA[<h3>TL;DR</h3>-
<p>With help from AI coding agents, our two-person team integrated SGLang with IBM Spyre in less than a week, building a plugin of roughly 1,500 lines. Existing Spyre support in PyTorch and SGLang’s clear extension points made it straightforward to reuse the hardware code. SGLang delivered abo…-
<p>We work on <a href="https://research.ibm.com/blog/lifting-the-cover-on-the-ibm-spyre-accelerator">IBM’s Spyre accelerator</a> and wanted to make <a href="https://docs.sglang.io/">SGLang</a>‘s serving stack, including its built-in prefix sharing, available to Spyre users.</p>-
<p>In less than a week, the two of us used AI-assisted development to integrate SGLang into IBM Spyre with a plugin of just ~1,500 lines of code. A key factor was building on existing <a href="https://pytorch.org/">PyTorch</a> hardware support and SGLang’s well-defined extension points. This a…-
<h2>Spyre and the starting point</h2>-
<p>Spyre is IBM’s accelerator for enterprise AI inference. It integrates using <a href="https://github.com/torch-spyre/torch-spyre">torch-spyre</a>, which registers Spyre as a PyTorch device and connects it to <a href="https://docs.pytorch.org/docs/stable/generated/torch.compile.html">torch.co…-
<h2>The result</h2>-
<p>The initial SGLang integration took the two of us less than a week of work. The plugin was roughly 1,500 lines, building on the compiler and reusable hardware support from PyTorch. Four small patches extended SGLang’s backend support: two made existing execution paths available without CUDA…-
<p>SGLang on Spyre achieved approximately 3.6× the throughput of the reference PyTorch inference implementation using torch-spyre.</p>-
<p>We also compared SGLang and vLLM on Spyre using Granite 3.3 8B and Gemma 4 26B A4B. Across the workloads we measured for these two models, SGLang’s performance was on par with vLLM.</p>-
<p><!-- IMAGE PLACEHOLDER: media/image1.png - "Relative performance of SGLang and vLLM / spyre-inference on Granite 3.3 8B and Gemma 4 26B-A4B, normalized to vLLM = 1.0. Lower is better." - upload via WP Media Library and insert here --></p>-
<p><em><img decoding="async" class="alignnone wp-image-210679 size-full" src="https://pytorch.org/wp-content/uploads/2026/11/normalized_latency.png" alt="" width="1600" height="980" srcset="https://pytorch.org/wp-content/uploads/2026/11/normalized_latency.png 1600w, https://pytorch.org/wp-content/up…-
<p><em>Relative performance of SGLang and vLLM / spyre-inference on Granite 3.3 8B and Gemma 4 26B-A4B, normalized to vLLM = 1.0. Lower is better.</em></p>-
<h2>Why it worked</h2>-
<p>With a working compiler and an existing inference server in place, adding SGLang became a focused integration task. PyTorch and torch.compile supplied a shared implementation layer, expressing accelerator functionality through APIs that both serving frameworks could use.</p>-
<p>SGLang supplied clear places to connect that code. Its platform registration, attention backend, KV pool, and operator dispatch separated the integration into bounded tasks while preserving the existing scheduler, request handling, and serving loop. The reference code came from the existing <a hr…-
<p>The existing vLLM Spyre backend was about 3,500 lines, compared with roughly 1,500 for the SGLang plugin. In the initial integration, the attention base class supplied the surrounding logic, leaving the Spyre backend to override the inner scaled dot-product attention operation. Reusing that base …-
<h2>Reusing the vLLM Spyre implementation</h2>-
<p>We reused the attention code from the vLLM Spyre integration, including how it groups inputs into buckets and handles tensor shapes. We also reused its PyTorch-based approach to allocating the KV cache. For RMSNorm, SiLU, GeLU, rotary embeddings, and linear layers, we connected the existing Spyre…-
<p>Some features required no Spyre-specific work at all. RadixCache is a good example: prefix sharing is resolved entirely within SGLang’s scheduler before execution reaches the accelerator, so the existing scheduling logic worked unchanged.</p>-
<p>The plugin is available as open source alongside upstream SGLang.</p>-
<h2>Using SGLang with Spyre</h2>-
<p>The example assumes the Spyre runtime, torch-spyre, the SGLang plugin, and its compatibility patches are installed and configured.</p>-
<pre><code class="language-python">import sglang as sgl
-
-
models = [
-
"ibm-ai-platform/micro-g3.3-8b-instruct-1b",
-
"mistralai/Ministral-8B-Instruct-2410",
-
]
-
-
for model in models:
-
engine = sgl.Engine(
-
model_path=model,
-
device="spyre",
-
attention_backend="spyre_paged",
-
dtype="float16",
-
page_size=64,
-
max_running_requests=1,
-
disable_cuda_graph=True,
-
)
-
-
try:
-
output = engine.generate(
-
"Why is the sky blue?",
-
{"temperature": 0, "max_new_tokens": 64},
-
)
-
print(model, output["text"])
-
finally:
-
engine.shutdown()</code></pre>-
<h2>Looking ahead</h2>-
<p>The Spyre software stack continues to evolve rapidly.</p>-
<p>Over the coming months, we expect to add support for dynamic shapes, reducing much of the shape management required today. Later this year, we also expect to bring Triton support to Spyre and enable RadixAttention on top of it, opening the door to additional kernel optimizations.</p>-
<p>Keeping hardware support in PyTorch and integration code at SGLang’s extension points gives future compiler and runtime improvements a path into the serving stack. The next integration can start from the same shared foundation, with concrete implementations and interfaces that developers an…-
<p>The post <a href="https://pytorch.org/blog/integrating-sglang-into-spyre-in-under-a-week-with-ai/">Integrating SGLang into Spyre in Under a Week with AI</a> appeared first on <a href="https://pytorch.org">PyTorch</a>.</p>-
]]></content:encoded>-
-
-
</item> </channel></rss>-
<!-- plugin=object-cache-pro client=phpredis metric#hits=4807 metric#misses=63 metric#hit-ratio=98.7 metric#bytes=1507151 metric#prefetches=268 metric#store-reads=36 metric#store-writes=8 metric#store-hits=275 metric#store-misses=47 metric#sql-queries=20 metric#ms-total=708.43 metric#ms-cache=44.31 …+
<!-- plugin=object-cache-pro client=phpredis metric#hits=4893 metric#misses=65 metric#hit-ratio=98.7 metric#bytes=1529172 metric#prefetches=282 metric#store-reads=38 metric#store-writes=13 metric#store-hits=289 metric#store-misses=49 metric#sql-queries=25 metric#ms-total=543.56 metric#ms-cache=24.30…90 lines shown here cut at 300 characters. The raw artifact at this commit is linked above.