<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[ANORAK]]></title><description><![CDATA[Watch is eating play. Video got frictionless; it never got interactive. We're building the medium that closes the gap: gamified generative video.]]></description><link>https://blog.anorak.tech</link><image><url>https://blog.anorak.tech/img/substack.png</url><title>ANORAK</title><link>https://blog.anorak.tech</link></image><generator>Substack</generator><lastBuildDate>Sat, 03 Oct 2026 00:52:04 GMT</lastBuildDate><atom:link href="https://blog.anorak.tech/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Anorak]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[anorak3@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[anorak3@substack.com]]></itunes:email><itunes:name><![CDATA[Anorak]]></itunes:name></itunes:owner><itunes:author><![CDATA[Anorak]]></itunes:author><googleplay:owner><![CDATA[anorak3@substack.com]]></googleplay:owner><googleplay:email><![CDATA[anorak3@substack.com]]></googleplay:email><googleplay:author><![CDATA[Anorak]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Building the future of Interactive Video : Inference Optimisation at Anorak.]]></title><description><![CDATA[Scaling Real-Time Generative Video via anorak-inference and LookStar]]></description><link>https://blog.anorak.tech/p/building-the-future-of-interactive</link><guid isPermaLink="false">https://blog.anorak.tech/p/building-the-future-of-interactive</guid><dc:creator><![CDATA[Anorak]]></dc:creator><pubDate>Wed, 26 Aug 2026 07:05:16 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/66ced9e9-c410-4e4f-8d5d-b37bfc78d417_2912x2162.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3><span>Introduction</span></h3><p><span>Watch is eating play. MIDiAS research shows gamers watch 8.5 hours over 7.4 hours per week playing.  At Anorak we think that&#8217;s not a content problem but a format one. Video got frictionless; it never got interactive. We&#8217;re building the medium that closes the gap: gamified generative video - content as easy to consume as the feed it lives in, and as engaging as the games it borrows from.</span></p><p><span>In this post, we want to share some of the architectural choices and technical breakthroughs behind optimizing our generative pipelines. By bringing high-quality generative models down to sub-second and low-latency thresholds, we are turning heavy offline generation into real-time, interactive game-time experiences.</span></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.anorak.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p><span>Over the last few years, generative models built around Diffusion Transformers (DiT) have made breakthroughs in image and video generation. Yet, that power comes with a price - a heavy inference cost. The combination of multi-step iterative denoising and massive Transformer calculations means a single generation often takes dozens of seconds, or more. Solving how to drastically cut inference latency and VRAM usage without sacrificing quality is the key to shipping these models in real-world products.</span></p><p><span>This article is divided into three parts: First, we break down the basics of DiT structures and mainstream acceleration methods. Next, we introduce anorak-inference, our proprietary inference framework. Finally, we&#8217;ll use our app called LookStar (currently in closed testing) to show how we used this framework to accelerate a complete &#8220;multi-image reference-to-image + image-to-video&#8221; workflow and deploy it on a single GPU.</span></p><h1><span>I. DiT Models and Acceleration Methods</span></h1><h2><span>1.1 The Basic Structure of DiT</span></h2><p><span>A typical DiT generation workflow consists of three components:</span></p><ul><li><p><strong><span>Encoder:</span></strong><span> Encodes input (text prompts, reference images) into conditional representations. Text usually goes through a large encoder (like T5 or Gemma), while images are encoded into the latent space via VAE.</span></p></li><li><p><strong><span>Transformer (Backbone):</span></strong><span> DiT replaces the U-Net of earlier diffusion models with a Transformer to predict denoising in the latent space. Compared to U-Net, Transformers scale significantly better, allowing for model sizes with billions of parameters.</span></p></li><li><p><strong><span>Diffusion (Denoising Process):</span></strong><span> Starting from pure noise, the model iteratively denoises over multiple steps, eventually decoding back into an image or video.</span></p></li></ul><h2><span>1.2 Where are the Bottlenecks?</span></h2><p><span>DiT inference overhead generally concentrates in two areas:</span></p><ol><li><p><strong><span>Multi-step Denoising:</span></strong><span> Every sample generated requires many denoising steps, and every step requires a full forward pass of the Transformer. The more steps, the longer the wait.</span></p></li><li><p><strong><span>Transformer Computation:</span></strong><span> As sequence lengths grow (especially in video) and model sizes increase, the computational and memory overhead for attention and feed-forward (FFN) layers skyrockets.</span></p></li></ol><p><span>Therefore, the core strategy for accelerating DiT is two-fold: reduce the number of denoising steps and lower the computation/memory cost of each individual Transformer step.</span></p><h2><span>1.3 Mainstream Acceleration Methods</span></h2><p><span>Based on those two pillars, the industry has developed several primary acceleration techniques:</span></p><ul><li><p><strong><span>Distillation:</span></strong><span> Methods like DMD or Consistency models compress a denoising process that originally took dozens of steps down to just a few&#8212;or even one. This is the most direct and effective way to reduce step counts.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UVpq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UVpq!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 424w, https://substackcdn.com/image/fetch/$s_!UVpq!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 848w, https://substackcdn.com/image/fetch/$s_!UVpq!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 1272w, https://substackcdn.com/image/fetch/$s_!UVpq!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UVpq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png" width="606" height="306" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:306,&quot;width&quot;:606,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UVpq!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 424w, https://substackcdn.com/image/fetch/$s_!UVpq!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 848w, https://substackcdn.com/image/fetch/$s_!UVpq!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 1272w, https://substackcdn.com/image/fetch/$s_!UVpq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F04f50079-cfdd-4401-a222-a4af839d3cc7_606x306.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong><span>Caching:</span></strong><span> By leveraging the similarity of features between adjacent denoising steps (e.g., temporal redundancy in attention/features), we can cache and reuse intermediate results, skipping repetitive calculations.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!L6Li!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!L6Li!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 424w, https://substackcdn.com/image/fetch/$s_!L6Li!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 848w, https://substackcdn.com/image/fetch/$s_!L6Li!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 1272w, https://substackcdn.com/image/fetch/$s_!L6Li!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!L6Li!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png" width="576" height="358" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:358,&quot;width&quot;:576,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!L6Li!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 424w, https://substackcdn.com/image/fetch/$s_!L6Li!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 848w, https://substackcdn.com/image/fetch/$s_!L6Li!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 1272w, https://substackcdn.com/image/fetch/$s_!L6Li!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a4c9397-5d8d-4270-a0e3-3c19280a8085_576x358.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong><span>Quantization:</span></strong><span> Reducing weights and activations from FP16/BF16 to FP8, INT8, or even NVFP4. This slashes VRAM usage and leverages the low-precision compute power of new hardware (like the FP8/NVFP4 on Blackwell).</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NjcI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NjcI!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 424w, https://substackcdn.com/image/fetch/$s_!NjcI!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 848w, https://substackcdn.com/image/fetch/$s_!NjcI!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 1272w, https://substackcdn.com/image/fetch/$s_!NjcI!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NjcI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png" width="606" height="342" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:342,&quot;width&quot;:606,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NjcI!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 424w, https://substackcdn.com/image/fetch/$s_!NjcI!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 848w, https://substackcdn.com/image/fetch/$s_!NjcI!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 1272w, https://substackcdn.com/image/fetch/$s_!NjcI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a55f98c-5348-44a4-b971-8d18837469a6_606x342.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong><span>Multi-resolution / Cascaded Inference:</span></strong><span> Perform the bulk of the denoising at low resolution, then upscale and refine at high resolution. This puts the heaviest math where the resolution is smallest.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ksId!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ksId!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 424w, https://substackcdn.com/image/fetch/$s_!ksId!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 848w, https://substackcdn.com/image/fetch/$s_!ksId!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 1272w, https://substackcdn.com/image/fetch/$s_!ksId!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ksId!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png" width="490" height="482" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:482,&quot;width&quot;:490,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ksId!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 424w, https://substackcdn.com/image/fetch/$s_!ksId!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 848w, https://substackcdn.com/image/fetch/$s_!ksId!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 1272w, https://substackcdn.com/image/fetch/$s_!ksId!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1a8bc9c-1f6d-4fdb-bc9b-d4c47e1d6df5_490x482.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ul><li><p><strong><span>Efficient Attention (Sparse / Linear Attention):</span></strong><span> Standard attention computation grows quadratically with sequence length, which is painfully expensive for long video sequences. Sparse Attention skips redundant calculations by only computing a subset of token pairs, while Linear Attention reduces complexity from quadratic to linear.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CSzs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CSzs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 424w, https://substackcdn.com/image/fetch/$s_!CSzs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 848w, https://substackcdn.com/image/fetch/$s_!CSzs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 1272w, https://substackcdn.com/image/fetch/$s_!CSzs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CSzs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png" width="664" height="352" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:352,&quot;width&quot;:664,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CSzs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 424w, https://substackcdn.com/image/fetch/$s_!CSzs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 848w, https://substackcdn.com/image/fetch/$s_!CSzs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 1272w, https://substackcdn.com/image/fetch/$s_!CSzs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3136ad08-7bdb-4f41-baea-e388b89beea4_664x352.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><span>These methods aren&#8217;t mutually exclusive. In practice, you often need to combine them, making trade-offs based on the model and hardware&#8212;which is precisely the problem anorak-inference is built to solve.</span></p><h1><span>II. anorak-inference: Anorak&#8217;s Proprietary DiT Inference and Orchestration Framework</span></h1><p><span>anorak-inference isn&#8217;t just about serving one model efficiently&#8212;that&#8217;s a solved problem with tools like LightX2V or sglang. Instead, we&#8217;re tackling the gaps those tools haven&#8217;t covered:</span></p><ol><li><p><strong><span>Workflow Orchestration:</span></strong><span> How do you chain multiple disparate models (image-to-image, video generation, super-resolution, frame interpolation, face-swapping) into a single, production-ready workflow?</span></p></li><li><p><strong><span>Single-GPU Multi-Model Deployment:</span></strong><span> How do you run that entire complex workflow on a single card?</span></p></li></ol><p><span>We designed this as a model-agnostic, workflow-agnostic foundation where acceleration techniques can be plugged in. Its core design features:</span></p><ul><li><p><strong><span>Unified Service Abstraction:</span></strong><span> Single-model pipelines and multi-model workflows use the same interface. To the service layer, they are identical&#8212;serving a &#8220;naked&#8221; model is just a one-step workflow. Adding new models or workflows follows the same path.</span></p></li><li><p><strong><span>Model-Agnostic and Extensible:</span></strong><span> Need a new model? Just implement a pipeline. Building a new workflow? Write a declarative spec that chains pipelines and transformation operators together. The framework isn&#8217;t tied to any specific model. Whether it&#8217;s open-source or trained/distilled via our anorak-dflow (which supports RL, SFT, and distillation), everything integrates seamlessly.</span></p></li><li><p><strong><span>Single-GPU Multi-Model VRAM Management:</span></strong><span> This is the key to running multi-model workflows. Take LookStar: Flux.2-klein and LTX-2 cannot fit on a single 80GB card simultaneously. The framework follows the declared step sequence, swaps unused models to pinned host memory, and fetches them back when needed&#8212;maintaining near-&#8221;GPU resident&#8221; latency. This mechanism allows the workflow to run on an H100 or squeeze into a 32GB RTX 5090.</span></p></li><li><p><strong><span>Plug-and-Play Acceleration:</span></strong><span> Distillation, quantization (built-in FP8 toolchain), multi-resolution inference, and various pre/post-processing ops are all composable components. The framework doesn&#8217;t force one acceleration method; it provides a unified base to host all of them.</span></p></li></ul><p><strong><span>In short:</span></strong><span> anorak-inference focuses on bridging the gap in &#8220;multi-model orchestration + single-card VRAM scheduling + pluggable acceleration,&#8221; while anorak-dflow handles the training and distillation. Together, they cover the entire chain from training to deployment.</span></p><h1><span>III. Case Study: Accelerating LookStar</span></h1><p><span>LookStar is the perfect example of using anorak-inference to accelerate a full-stack DiT workflow. Lookstar is an app where you can use the power of Generative Image and Video to dress yourself in a number of virtual clothing and see yourself swoon around in different environments looking fab. You take a selfie and choose your items and wait for your resulting video to bve generated. The generation process is split into two parts: Multi-image Reference-to-Image (i2i) and Image-to-Video (i2v).</span></p><h2><span>3.1 Multi-image Reference-to-Image (i2i)</span></h2><p><span>The goal: Synthesize an image of a person wearing a full set of items, given an Identity photo and multiple reference photos.</span></p><ul><li><p><strong><span>4-step Flux-Klein Model:</span></strong><span> Compresses the denoising process significantly.</span></p></li><li><p><strong><span>Multi-image Support:</span></strong><span> Through two rounds of inference, we support up to 9 reference images by combining the Selfie Photo with item references.</span></p></li><li><p><strong><span>Resolution Downscaling:</span></strong><span> Since reference items don&#8217;t need the same resolution as the final image, we scale them down, drastically reducing compute without affecting visual quality.</span></p></li></ul><p><strong><span>Item Reference Image Resolution Time (2-Step Flow) seconds</span></strong></p><p><span>Full resolution 15.35</span></p><p><span>Short side 512px (Production) 7.19</span></p><ul><li><p><strong><span>FaceFusion for Consistency:</span></strong><span> Since reference-based generation sometimes drifts on facial consistency, we added FaceFusion post-generation to align the output with the Identify photo.</span></p></li></ul><div><hr></div><p><strong><span>Face Change Method: ArcFace Distance (smaller the better)</span></strong></p><p><span>No face change: </span><em><span>0.800</span></em></p><p><span>hyperswap, weight 0.5: </span><em><span>0.264</span></em></p><p><span>inswapper, weight 1.0: </span><em><span>0.195</span></em></p><p><span>inswapper, weight 0.5&#65288;Production): </span><em><span>0.162</span></em></p><div><hr></div><p><span>Here are two of our developers using this method and as you can see with the above improvements both speed, item consistency and face likeness is beating out NanoBanana2:</span></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!TITL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!TITL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 424w, https://substackcdn.com/image/fetch/$s_!TITL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 848w, https://substackcdn.com/image/fetch/$s_!TITL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 1272w, https://substackcdn.com/image/fetch/$s_!TITL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!TITL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png" width="1456" height="363" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:363,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!TITL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 424w, https://substackcdn.com/image/fetch/$s_!TITL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 848w, https://substackcdn.com/image/fetch/$s_!TITL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 1272w, https://substackcdn.com/image/fetch/$s_!TITL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7acda760-bdbd-4f99-a401-057a57f5495c_1470x366.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!yeTX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!yeTX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 424w, https://substackcdn.com/image/fetch/$s_!yeTX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 848w, https://substackcdn.com/image/fetch/$s_!yeTX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 1272w, https://substackcdn.com/image/fetch/$s_!yeTX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!yeTX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png" width="728" height="682.5" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:1365,&quot;width&quot;:1456,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:&quot;center&quot;,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!yeTX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 424w, https://substackcdn.com/image/fetch/$s_!yeTX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 848w, https://substackcdn.com/image/fetch/$s_!yeTX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 1272w, https://substackcdn.com/image/fetch/$s_!yeTX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ab58942-b8f1-469e-b874-9cc79a7953ee_1728x1620.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"></figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!90A4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!90A4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 424w, https://substackcdn.com/image/fetch/$s_!90A4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 848w, https://substackcdn.com/image/fetch/$s_!90A4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 1272w, https://substackcdn.com/image/fetch/$s_!90A4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!90A4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png" width="1094" height="362" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:362,&quot;width&quot;:1094,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!90A4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 424w, https://substackcdn.com/image/fetch/$s_!90A4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 848w, https://substackcdn.com/image/fetch/$s_!90A4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 1272w, https://substackcdn.com/image/fetch/$s_!90A4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F992a95c9-2e91-4266-92fb-9d55d54d1aee_1094x362.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9KoM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9KoM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 424w, https://substackcdn.com/image/fetch/$s_!9KoM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 848w, https://substackcdn.com/image/fetch/$s_!9KoM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 1272w, https://substackcdn.com/image/fetch/$s_!9KoM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9KoM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png" width="1456" height="1364" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1364,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9KoM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 424w, https://substackcdn.com/image/fetch/$s_!9KoM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 848w, https://substackcdn.com/image/fetch/$s_!9KoM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 1272w, https://substackcdn.com/image/fetch/$s_!9KoM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2dbaaea-ffe2-42c8-ac69-80e0a9738914_1734x1624.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><span>3.2 Image-to-Video (i2v)</span></h2><p><span>We currently use Lightricks LTX2.5 Video model to generate our videos.</span></p><ul><li><p><strong><span>8-step LTX-Video:</span></strong><span> Uses variable resolution (low-res denoising first, then upsample) to keep heavy lifting in the low-res stage.</span></p></li><li><p><strong><span>1-Step High-Res Denoising:</span></strong><span> In the high-res stage, we cut denoising from 3 steps to 1. Testing shows no perceptible difference in output, but significant compute savings.</span></p></li><li><p><strong><span>Optimization:</span></strong><span> Using torch.compile() and FP8 scaled-matmul to accelerate the denoising graph.</span></p></li></ul><h2><span>3.3 System Level: Getting the Workflow on One Card</span></h2><p><span>The biggest constraint is VRAM. We did two critical things:</span></p><ol><li><p><strong><span>FP8 Quantization for Gemma3:</span></strong><span> The text encoder consumes significant VRAM, so we quantized it to FP8.</span></p></li><li><p><strong><span>Pinned Memory Management:</span></strong><span> Using anorak-inference ops, we offload inactive models to pinned memory and swap them in only when needed.</span></p></li></ol><p><span>Thanks to these optimizations, the entire LookStar workflow runs not just on an H100, but on a 32GB RTX 5090 too! Although this is a great start - we&#8217;ve found LTX2.5 is still a relatively weak model compared to the newer Minimax-H3, and we are currently hard at work making optimisations for that to be production ready.</span></p><h1><span>We Are Just Getting Started</span></h1><p><span>LookStar is just the first application of anorak-inference. By combining distillation to reduce steps, quantization and multi-resolution to reduce per-step costs, and clever VRAM scheduling to fit on one card, we turned a heavy generation workflow into one that is deployable on a single GPU with controlled latency. More importantly, these capabilities are framework-level and reusable. As our optimisation framework evolves, we can replicate these acceleration wins across more models and business scenarios. This is just the beginning.</span></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://blog.anorak.tech/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>