<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: InferenceKey</title>
    <description>The latest articles on DEV Community by InferenceKey (@inferencekeydev).</description>
    <link>https://dev.to/inferencekeydev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4185415%2F46ebdd39-7d2b-4576-bf84-3bab513a7f4b.png</url>
      <title>DEV Community: InferenceKey</title>
      <link>https://dev.to/inferencekeydev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/inferencekeydev"/>
    <language>en</language>
    <item>
      <title>Serving RelayVSR on a 24 GB GPU: the model took 10 seconds, the MP4 encode took the rest</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Tue, 24 Nov 2026 06:38:30 +0000</pubDate>
      <link>https://dev.to/inferencekey/serving-relayvsr-on-a-24-gb-gpu-the-model-took-10-seconds-the-mp4-encode-took-the-rest-20l5</link>
      <guid>https://dev.to/inferencekey/serving-relayvsr-on-a-24-gb-gpu-the-model-took-10-seconds-the-mp4-encode-took-the-rest-20l5</guid>
      <description>&lt;p&gt;With RelayVSR on one RTX 4090, GPU time was the easy part. Three seconds of 480p film came back at 3416 x 1920, four times wider and taller, after roughly 10 seconds of GPU work. From the client's side, each call lasted 26 to 41 seconds. The difference was the processor packing frames into an MP4.&lt;/p&gt;

&lt;p&gt;Below: one flag, one memory lever, one warm-up habit and one transport trap. Numbers and setup are in &lt;a href="https://inferencekey.com/research/relayvsr-video-upscale-one-gpu" rel="noopener noreferrer"&gt;our RelayVSR test on one 24 GB card&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two models, and why that shapes everything
&lt;/h2&gt;

&lt;p&gt;RelayVSR comes from Xijun Wang, Xin Li, Zirui Lang, Suhang Yao, Haoran Li and Zhibo Chen at the University of Science and Technology of China. They published the &lt;a href="https://arxiv.org/abs/2609.37850" rel="noopener noreferrer"&gt;paper&lt;/a&gt;, the &lt;a href="https://github.com/kopperx/RelayVSR" rel="noopener noreferrer"&gt;code&lt;/a&gt; and Apache-2.0 weights.&lt;/p&gt;

&lt;p&gt;Inside, two models share the job. The expensive one, 5 billion parameters adapted from Wan-AI's open Wan2.2 video model, only paints keyframes: a handful of frames redrawn in full detail. The cheap one, a 32-million-parameter network the authors designed, touches every frame. It reads the low-resolution input plus the keyframe before and after, and fills in the rest. Our 72-frame clip got 6 keyframes from the big model and 72 frames from the small one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The flag that is off by one
&lt;/h2&gt;

&lt;p&gt;The authors' &lt;code&gt;--window-size&lt;/code&gt; defaults to 16, and they describe it as "Reference interval + 1". Both endpoints of a window are keyframes, so 16 gives you a gap of 15 frames and 32 gives you a gap of 31.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"video_b64"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;base64 MP4&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"window_size"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"max_frames"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;72&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"seed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the 4090, going from 16 to 32 took the 480p clip from 7.33 to 9.10 frames per second, about 10 seconds of GPU time down to 8. Motion pays for it. At frame 47, mid head turn, window 16 had a keyframe 2 frames back and the face stayed sharp. Window 32 had the nearest one 15 frames away, and the face went soft. Frame 38, 7 frames from a keyframe under either setting, looked the same in both. One clip, so treat the rule (default for faces and fast motion, 32 for slow scenes) as a starting guess.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk9gmvav4y032ior1ap03.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk9gmvav4y032ior1ap03.jpg" alt="Frame 47 of a Tears of Steel clip upscaled from 854 x 480 to 3416 x 1920 on an RTX 4090: sharp face with a keyframe every 15 frames on the left, softer face with a keyframe every 31 frames on the right" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory: the only lever is the input size
&lt;/h2&gt;

&lt;p&gt;Some model code can park layers in system RAM on a small card, slower but working. RelayVSR's code cannot, so the only way to save memory is smaller input frames.&lt;/p&gt;

&lt;p&gt;At 480p in, peak memory was 20.4 GiB, so a 24 GB card is the floor, as the &lt;a href="https://inferencekey.com/research/relayvsr-video-upscale-one-gpu" rel="noopener noreferrer"&gt;memory ladder in our RelayVSR benchmark&lt;/a&gt; shows rung by rung. For smaller budgets, the backend capped the 4090 with &lt;code&gt;torch.cuda.set_per_process_memory_fraction&lt;/code&gt;. Under a 15.2 GiB cap (standing in for a 16 GB card), 480p and 360p input ran out of memory. A 270p input with 1080p output fit, and the file was byte-identical to the uncapped run. Under 11.2 GiB nothing fit: the generator weights alone take 9.62 GiB.&lt;/p&gt;

&lt;p&gt;Caveats: the cap only limits what PyTorch may allocate, while a physical 16 GB card also loses memory to the driver. And 1440p peaked at 15.5 GiB, above our cap but below 16 GB, so a real 16 GB card is an open question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Warm up at the size you serve
&lt;/h2&gt;

&lt;p&gt;The first time the model sees a new frame size, Triton and FlexAttention compile kernels for it: small GPU programs tuned to that exact shape. The first (cold) call is slow; warm calls reuse the compiled code. On the 4090 the first 1920p call ran at 4.71 frames per second against 7.33 warm, and the first 1080p call at 8.88 against 23.85. If you accept several resolutions, warm each one at startup, or your first caller pays for the compile, and log cold and warm calls apart.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: the answer is a video
&lt;/h2&gt;

&lt;p&gt;One 1920p request, step by step: 2.1 seconds decoding, 15.0 seconds in the streaming loop (the pass that runs both models frame by frame; 9.8 of those seconds were GPU, the rest CPU H.264 encoding), then 22.0 seconds re-encoding. The second pass happened because the backend returns the video as base64 inside a single 8 MB message, and the first encode at CRF 18 (the encoder's quality setting) came out too large. It retried at CRF 22 and the clip came back at about 4.9 MB.&lt;/p&gt;

&lt;p&gt;Drop the output to 1080p and one encode is enough: request to response took 6.4 to 7.2 seconds. Handing back a link to a stored file instead of the bytes would skip the retry. That is still open; meanwhile the example's README suggests splitting long footage into pieces of 2 to 3 seconds.&lt;/p&gt;

&lt;p&gt;What to log per request:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;model time and frames per second&lt;/li&gt;
&lt;li&gt;encode time and how many encode passes it took&lt;/li&gt;
&lt;li&gt;peak GPU memory&lt;/li&gt;
&lt;li&gt;whether this frame size was the first one seen&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it does not prove
&lt;/h2&gt;

&lt;p&gt;Quality was judged by eye, on one clip, against bicubic only. RelayVSR invents detail that looks right instead of recovering what the camera saw, so verify it where accuracy counts. We fed it a pristine film shrunk on purpose, which says nothing about old or damaged footage. All timings come from a single request on a card doing nothing else. The output has no audio track.&lt;/p&gt;

&lt;p&gt;Credit where it is due: the RelayVSR authors, Wan-AI for Wan2.2, the FlashVSR project at OpenImagingLab, a baseline the authors acknowledge, Hugging Face Diffusers, the Blender Foundation for &lt;em&gt;Tears of Steel&lt;/em&gt; (CC BY 3.0), and the AI Search channel, where we first saw the model. Our part was the serving backend, the timings and the memory tests.&lt;/p&gt;

&lt;p&gt;Timing tables, backend settings and the SDK example for your own card are in &lt;a href="https://inferencekey.com/research/relayvsr-video-upscale-one-gpu" rel="noopener noreferrer"&gt;the complete RelayVSR write-up on inferencekey.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>gpu</category>
    </item>
    <item>
      <title>Mellum2.1's MTP head on vLLM: 87% of guesses accepted, 1.11x faster. What to tune and measure</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:39:47 +0000</pubDate>
      <link>https://dev.to/inferencekey/mellum21s-mtp-head-on-vllm-87-of-guesses-accepted-111x-faster-what-to-tune-and-measure-5hbh</link>
      <guid>https://dev.to/inferencekey/mellum21s-mtp-head-on-vllm-87-of-guesses-accepted-111x-faster-what-to-tune-and-measure-5hbh</guid>
      <description>&lt;p&gt;If you watch only one number when you turn on speculative decoding, you will probably watch the wrong one.&lt;/p&gt;

&lt;p&gt;A model writes text one token (a piece of a word) at a time, and each token costs one full pass through the network. Speculative decoding adds a cheap guesser that proposes the next token, and the full model then checks the guess. When the guess is right, you get two tokens for roughly the price of one pass.&lt;/p&gt;

&lt;p&gt;JetBrains ships Mellum2.1, its open coding model, with a guesser of this kind built in, which it calls the MTP head. We enabled it in vLLM 0.33, an open-source inference server, on a 48 GB RTX A6000 on our cloud. vLLM counted 87.2% of guesses accepted, near JetBrains' roughly 90%. A single request moved from 106.8 to 118.9 tokens per second. That is 1.11x, below the 1.4 to 1.8x JetBrains' model page promises.&lt;/p&gt;

&lt;p&gt;The guesser worked. The checking took the gain back. The &lt;a href="https://inferencekey.com/research/mellum-2-1-mtp-speculative-decoding" rel="noopener noreferrer"&gt;full Mellum2.1 MTP benchmark with every table and command&lt;/a&gt; has the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Acceptance rate is not throughput
&lt;/h2&gt;

&lt;p&gt;Mellum2.1 is a mixture of experts (MoE): only 2.5B of its 12B parameters work on each token. Plain decoding is already quick, so a verify pass can cost nearly what it saves. Another likely factor, not measured: vLLM 0.33 runs Mellum through the generic Transformers modeling backend, not code written for this model, and logs that it uses a default MoE config.&lt;/p&gt;

&lt;p&gt;Benchmark tokens per second with the head off and on, on your own prompts. The acceptance counter says the guesser works, not that you got faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setting worth changing: draft depth
&lt;/h2&gt;

&lt;p&gt;One flag enables the head, and the number of tokens it guesses per step sits inside it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;--speculative-config &lt;span class="s1"&gt;'{"method": "mtp", "num_speculative_tokens": 1}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;JetBrains and the vLLM docs both say start at 1. For a single request, 2 was faster:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Draft tokens&lt;/th&gt;
&lt;th&gt;Accepted&lt;/th&gt;
&lt;th&gt;1 request (tok/s)&lt;/th&gt;
&lt;th&gt;8 at once (tok/s)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;106.8&lt;/td&gt;
&lt;td&gt;418.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;87.2%&lt;/td&gt;
&lt;td&gt;118.9 (1.11x)&lt;/td&gt;
&lt;td&gt;607.3 (1.45x)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;66.6%&lt;/td&gt;
&lt;td&gt;140.2 (1.31x)&lt;/td&gt;
&lt;td&gt;581.8 (1.39x)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;48.6%&lt;/td&gt;
&lt;td&gt;124.8 (1.17x)&lt;/td&gt;
&lt;td&gt;663.5 (1.59x)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At depth 2 fewer guesses survived, but each success skipped two passes. At depth 3 the misses outweighed the hits. Each setting ran once on short answers, so small differences are noise. Benchmark depths 1 and 2 against your real requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concurrency changed the picture
&lt;/h2&gt;

&lt;p&gt;With eight requests at once, measured straight against vLLM, depth 1 reached 1.45x, which is inside JetBrains' range. Over depths 1 to 3 the gain ranged from 1.39x to 1.66x, with no consistent winner between 2 and 3. Speculative decoding normally helps less as load grows. This is one run, the article has no explanation for it, and nothing above eight was tested.&lt;/p&gt;

&lt;p&gt;A caveat from our side: the InferenceKey platform currently hands each model one request at a time, so our endpoint today gives the single-request 1.11x. Still open.&lt;/p&gt;

&lt;h2&gt;
  
  
  On a small GPU the head is paid in KV cache
&lt;/h2&gt;

&lt;p&gt;The KV cache is where the server keeps the state of each conversation in progress, so it does not reread the text at every token. The head adds under a gigabyte of weights (0.80 GiB in BF16, the published full size). vLLM holds total GPU memory at a fixed share set by &lt;code&gt;--gpu-memory-utilization&lt;/code&gt;, so the head shrinks the KV cache instead of raising peak memory.&lt;/p&gt;

&lt;p&gt;On the A6000 that barely matters: the cache dropped from 1,122,580 tokens to 1,027,634, about 8.5%. On a real 16 GB RTX 5080, running vLLM's online FP8 (weights converted to 8 bits at load, half the size) with a 16,384-token context, it dropped from 52,400 to 29,019 tokens. Space for three full 16K conversations became space for one. The &lt;a href="https://inferencekey.com/research/mellum-2-1-mtp-speculative-decoding" rel="noopener noreferrer"&gt;VRAM ladder for Mellum2.1 from 48 GB down to 16 GB&lt;/a&gt; has the full memory accounting.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk34tukz9502q7p5jvn1b.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk34tukz9502q7p5jvn1b.jpg" alt="Tokens per second for one request with the MTP head on: RTX A6000 48 GB 119, 32 GB emulated cap 141, 24 GB cap at full size does not start, 24 GB cap in 8-bit 211, real RTX 5080 16 GB in 8-bit 289" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The RTX 5080 still beat the A6000: 217.2 tokens per second plain and 288.7 with one draft token (1.33x), peaking at 97% of its memory, with correct answers. A 24 GB cap at full size never started: the weights alone are 23.47 GiB. The 24 GB and 32 GB rows are caps on the A6000, not real cards. FP8 on a real 16 GB Ampere card is untested and may fail at load.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do not diff outputs byte for byte
&lt;/h2&gt;

&lt;p&gt;JetBrains' card says the output is unchanged. In quality it was: the bug was found on every run, the interval-merging function passed its checks in all 13 outputs, the math answer was 400 each time. In exact text it was not. With greedy decoding (always taking the most likely token), two runs of one prompt produced 369 and 810 tokens with the head, and 380 and 829 without it. The vLLM docs say hardware numerics and batch size can shift the exact words. Tests that assert on raw model text will be flaky either way. Assert on what the answer does.&lt;/p&gt;

&lt;p&gt;Tool calls varied too (one city per turn with MTP on the A6000, two parallel calls without), so your client needs a real agent loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credit
&lt;/h2&gt;

&lt;p&gt;JetBrains built the model and its head and released them under Apache-2.0 on the &lt;a href="https://huggingface.co/JetBrains/Mellum2.1-12B-A2.5B-Thinking-MTP" rel="noopener noreferrer"&gt;Mellum2.1 MTP model card&lt;/a&gt;. The vLLM project provides the MTP speculative decoding, the spec-decode metrics and online FP8, and Hugging Face Transformers provides the modeling code vLLM runs. We found the release through a &lt;a href="https://www.reddit.com/r/LocalLLaMA/comments/1xln8f2/jetbrainsmellum2112ba25bthinkingmtp_hugging_face/" rel="noopener noreferrer"&gt;post by pmttyji on r/LocalLLaMA&lt;/a&gt;. Our part was the deployment, the sweeps and the memory accounting.&lt;/p&gt;

&lt;p&gt;Before you pick your draft depth, read the &lt;a href="https://inferencekey.com/research/mellum-2-1-mtp-speculative-decoding" rel="noopener noreferrer"&gt;Mellum2.1 MTP speculative decoding research post&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>machinelearning</category>
      <category>gpu</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Serving NitroFusion2 on one GPU: the text encoder, the memory mode and the step count</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Sun, 22 Nov 2026 06:38:45 +0000</pubDate>
      <link>https://dev.to/inferencekey/serving-nitrofusion2-on-one-gpu-the-text-encoder-the-memory-mode-and-the-step-count-2fom</link>
      <guid>https://dev.to/inferencekey/serving-nitrofusion2-on-one-gpu-the-text-encoder-the-memory-mode-and-the-step-count-2fom</guid>
      <description>&lt;p&gt;Image models like this start from noise and clean it up in passes, called steps. Tongyi-MAI's Z-Image-Turbo needs eight. NitroFusion2 is distilled from it: a student network trained to land on the teacher's result in one or two. Dar-Yen Chen and Yi-Zhe Song (SketchX, University of Surrey) built it and released it under Apache-2.0. We served it as an API on one RTX 4090 on our cloud. At 1024 x 1024, one step took 0.78 to 0.82 seconds of GPU time, two steps 1.32 to 1.33.&lt;/p&gt;

&lt;p&gt;Speed came for free. A few settings and one testing habit did not. Every table, the memory ladder and the setup commands are in the &lt;a href="https://inferencekey.com/research/nitrofusion-2-one-step-images" rel="noopener noreferrer"&gt;full NitroFusion2 write-up on inferencekey.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Budget memory for the text encoder, not the model file
&lt;/h2&gt;

&lt;p&gt;The transformer (the main network that draws) ships as a 12.3 GB file, which seems to suit a 16 GB card. It does not. The text encoder, the Z-Image-Turbo component that turns your prompt into numbers, takes about 8 GB by itself. With the full file, peak use was about 23 GB. All on the GPU means a 24 GB card.&lt;/p&gt;

&lt;p&gt;The authors also publish GGUF files from 2.0 GB to 7.2 GB: quantized copies that store each weight in fewer bits. Under a 16 GB cap, the 7.2 GB file died with out of memory on its first image. The 5 GB file fits beside the text encoder. On a physical 16 GB card, an RTX 2000 Ada that draws 70 watts, it stayed fully on the card at about 4.0 seconds per image at one step, 7.3 at two. At 8 GB the text encoder alone fills the budget. We did not test a smaller text encoder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick the memory mode yourself on a 16 GB card
&lt;/h2&gt;

&lt;p&gt;The example's memory mode defaults to &lt;code&gt;auto&lt;/code&gt;, which keeps the pipeline on the GPU only when at least 23 GiB are free. Below that it switches to offloading: parts of the model wait in system RAM and move to the GPU when needed (the authors' script does the same). With the full file under a 16 GB cap, that cost 14 to 19 seconds per image. On a 16 GB card, &lt;code&gt;auto&lt;/code&gt; never takes the 4-second path, so name it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;NF2_TRANSFORMER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;nf2-Q4_K_M.gguf
&lt;span class="nv"&gt;NF2_MEMORY_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;gpu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The offloaded images came out the same, only slower, so only your timings show it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps 1 to 4, guidance 0, or you get an error
&lt;/h2&gt;

&lt;p&gt;NitroFusion2 takes 1 to 4 steps. Guidance (how hard sampling pulls toward the prompt) stays at 0. Our dashboard's image tester opens at 20 steps and guidance 4.5, and gets a 400. With 1 or 2 steps and guidance 0, the one-step poster arrived in about 1.1 seconds. The SDK example's README says so; the tester's defaults have not changed.&lt;/p&gt;

&lt;p&gt;For two steps the authors suggest a 0.38 GB add-on. It makes the first step half Z-Image-Turbo; the student finishes alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure GPU time and round trip separately
&lt;/h2&gt;

&lt;p&gt;GPU time is only the drawing. The round trip adds the request, PNG encoding and the network, and at one step it nearly doubles the time.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Steps&lt;/th&gt;
&lt;th&gt;GPU time&lt;/th&gt;
&lt;th&gt;Round trip through the API&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0.78 to 0.82 s&lt;/td&gt;
&lt;td&gt;1.45 to 1.50 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1.32 to 1.33 s&lt;/td&gt;
&lt;td&gt;1.95 to 2.00 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;2.42 s&lt;/td&gt;
&lt;td&gt;3.08 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Through the API, that is about 40 images a minute at one step and about 30 at two. Log both numbers while you tune. Requests ran one at a time: no batching (several prompts in one GPU pass), no concurrency, no eight-step baseline. Our 4090 was a 48 GB card, capped to act like the usual 24 GB one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do not trust one seed across GPUs
&lt;/h2&gt;

&lt;p&gt;The seed is the random starting point of an image. With the authors' cat-and-sign prompt and seed 42, the 4090 wrote "HELLO WORd" at one step and "Hello World" at two.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftzuvfxdzvzmatyw8vcx2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftzuvfxdzvzmatyw8vcx2.jpg" alt="The authors' sign prompt with seed 42 on an RTX 4090: one step in 0.78 seconds misspells it as HELLO WORd, two steps with the authors' add-on spell Hello World correctly" width="800" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the 16 GB card, that seed at one step spelled "HELLO WORLD" correctly. A fixed seed does not reproduce a picture on another card, so one seed per prompt is a smoke test, not a quality score.&lt;/p&gt;

&lt;p&gt;Short, big lettering usually survived one step: the Lisbon tram poster spelled "LISBOA" and "Tram 28 - every 12 minutes" correctly at one and two steps and on the 16 GB card. Small lettering did not: the cafe menu wanted "SOURDOUGH 4.50", and at one, two and four steps the 4090 wrote "SOURDOAGH". The paper admits "a substantial gap" on text rendering. In its long-text test, one step scores 43 out of 100, two steps 76, and eight-step Z-Image-Turbo 92. Those are the authors' figures; we did not reproduce them.&lt;/p&gt;

&lt;p&gt;So text, not speed, decides. One step for previews, two for short headlines you check by eye. For menus, labels and prices, overlay real text afterwards, or switch to eight-step Z-Image-Turbo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits and where to go next
&lt;/h2&gt;

&lt;p&gt;NitroFusion2, its paper and code are by Dar-Yen Chen and Yi-Zhe Song (&lt;a href="https://arxiv.org/abs/2611.05648" rel="noopener noreferrer"&gt;paper on arXiv&lt;/a&gt;, &lt;a href="https://github.com/ChenDarYen/NitroFusion2" rel="noopener noreferrer"&gt;code on GitHub&lt;/a&gt;, &lt;a href="https://huggingface.co/ChenDY/NitroFusion2" rel="noopener noreferrer"&gt;weights and GGUF copies on Hugging Face&lt;/a&gt;). It builds on NitroFusion by Dar-Yen Chen, Hmrishav Bandyopadhyay, Kai Zou and Yi-Zhe Song. The base model and text encoder are Tongyi-MAI's &lt;a href="https://huggingface.co/Tongyi-MAI/Z-Image-Turbo" rel="noopener noreferrer"&gt;Z-Image-Turbo&lt;/a&gt;. The diffusers maintainers wrote &lt;code&gt;ZImagePipeline&lt;/code&gt;. PedroMarinhoDev made community ComfyUI builds (untested by us), and AI Search's news video is where we found the model. We wrote the custom backend, deployed it, and ran the timings and memory tests. The &lt;a href="https://inferencekey.com/research/nitrofusion-2-one-step-images" rel="noopener noreferrer"&gt;NitroFusion2 deployment notes with the memory ladder and per-request measurements&lt;/a&gt; also cover the request fields and startup time.&lt;/p&gt;

&lt;p&gt;To run it on your own card, start from the &lt;a href="https://inferencekey.com/research/nitrofusion-2-one-step-images" rel="noopener noreferrer"&gt;NitroFusion2 article on inferencekey.com&lt;/a&gt; and its SDK example.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>gpu</category>
      <category>python</category>
    </item>
    <item>
      <title>Running a video-by-code agent on one RTX 4090: the context budget is the real limit</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Sat, 21 Nov 2026 06:37:16 +0000</pubDate>
      <link>https://dev.to/inferencekey/running-a-video-by-code-agent-on-one-rtx-4090-the-context-budget-is-the-real-limit-3m4i</link>
      <guid>https://dev.to/inferencekey/running-a-video-by-code-agent-on-one-rtx-4090-the-context-budget-is-the-real-limit-3m4i</guid>
      <description>&lt;p&gt;Run an open model as a long agent (a model that calls tools in a loop on its own) on one card and the weights are rarely what stops you. The budget around them is: how much the agent can keep in view, and how long one answer may be.&lt;/p&gt;

&lt;p&gt;We learned that with SenseNova 6.8 Code2Video, SenseTime's open 27B model that makes video by writing code. We drove it with Claude Code on one 24 GB RTX 4090 on our cloud. Ten minutes in, it had a full 12-second clip. Forty minutes in, it had no finished film. The logs and frames are in the &lt;a href="https://inferencekey.com/research/sensenova-code2video-clip-one-gpu" rel="noopener noreferrer"&gt;full research write-up on running Code2Video on one RTX 4090&lt;/a&gt;. Here I focus on the settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your settings are not the authors' settings
&lt;/h2&gt;

&lt;p&gt;The SenseNova team publishes a Claude Code skill called &lt;code&gt;code-video&lt;/code&gt; and six complete production runs. They serve the full-size model across four GPUs. Their context window (the text the model can see at once, counted in tokens, which are word pieces) is 512K tokens, and one answer may run to 64K. Their films needed between 261 and 876 turns each.&lt;/p&gt;

&lt;p&gt;We used bartowski's 4-bit GGUF, a compressed copy of the weights (17.2 GB) for the llama.cpp server, plus a 0.93 GB vision part so the model can see images. Three Claude Code variables encode the gap:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CLAUDE_CODE_MAX_CONTEXT_TOKENS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;98304   &lt;span class="c"&gt;# authors: 524288&lt;/span&gt;
&lt;span class="nv"&gt;CLAUDE_AUTOCOMPACT_PCT_OVERRIDE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;80     &lt;span class="c"&gt;# same as the authors&lt;/span&gt;
&lt;span class="nv"&gt;CLAUDE_CODE_MAX_OUTPUT_TOKENS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;16384    &lt;span class="c"&gt;# authors: 64000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without the first one, Claude Code assumes 200K for a model it does not recognize.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: compaction needs room to write
&lt;/h2&gt;

&lt;p&gt;Compaction is how Claude Code survives a full context. Once the window passes 80%, it has the model write a recap, throws the old history away and continues from the recap alone. The recap is a normal reply, so the output cap applies to it too.&lt;/p&gt;

&lt;p&gt;Our 98,304-token window was full after about 19 minutes. Three recap requests followed. All three ran into the 16,384-token ceiling, none produced a usable summary, and together they ate 21 minutes until our 40-minute limit killed the run with no final film.&lt;/p&gt;

&lt;p&gt;Compaction can work: four of the authors' six runs cleared contexts of 167K to 492K tokens, under a 64K cap. On our side two settings are under suspicion. One is the 16,384-token cap. The other is hidden reasoning, the thinking the model writes before its visible answer, which we left on and which draws from the same cap. The logs cannot tell them apart, though in a separate single request the same 4-bit file burned all 8,192 output tokens thinking and wrote no page. A bigger window, a bigger cap or reasoning off might fix it; we tried none of them.&lt;/p&gt;

&lt;p&gt;So when you size a single-card agent, measure two things before you trust it: when the context will hit the compaction threshold, and whether one summary fits under your output cap with reasoning on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The file check passed a wrong picture
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz7aba0ez3iyyunaw3ug4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz7aba0ez3iyyunaw3ug4.jpg" alt="The model's own 12-second render, frame at 7.2 seconds: blue and orange dot staircases meant to close into a 5 by 6 rectangle" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Self-review did its job. The model opened 21 of its own stills as images, spotted two bugs and fixed both. All on-screen text matched the brief word for word.&lt;/p&gt;

&lt;p&gt;The one fact that mattered was still wrong. The brief asked for 30 dots in a 5 by 6 rectangle. We located each dot centre in the 7.2-second frame with numpy and scipy and got 5 rows of 7 columns, one cell empty per row. The skill's file check still said yes. It only looks at resolution, frame rate and duration, never at what is drawn.&lt;/p&gt;

&lt;p&gt;Add a check that knows what the clip should show.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two pieces of plumbing to verify first
&lt;/h2&gt;

&lt;p&gt;Claude Code speaks Anthropic's Messages API format, so whatever sits in front of the model has to translate it. Ours lost the frames: each image either vanished or arrived as a block of text, and the model reviewed its work blind. Fixed in our test build, not yet on the hosted service. With any gateway, send one PNG first and check the model describes it.&lt;/p&gt;

&lt;p&gt;Second, time. Our first call waited for the full answer instead of streaming it piece by piece. The worker, the process on the GPU machine that forwards requests to the server, gives up after 120 seconds, and the model was still thinking. Raising that to 30 minutes fixed the run, and the example now streams.&lt;/p&gt;

&lt;h2&gt;
  
  
  What fits on smaller cards
&lt;/h2&gt;

&lt;p&gt;The 4-bit run peaked at 20.9 GiB. Smaller copies, one short request each:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Budget&lt;/th&gt;
&lt;th&gt;Copy&lt;/th&gt;
&lt;th&gt;Peak&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;3-bit, 32K&lt;/td&gt;
&lt;td&gt;13.7 GiB&lt;/td&gt;
&lt;td&gt;page renders, one dot visible at a time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12 GB&lt;/td&gt;
&lt;td&gt;2-bit, 16K&lt;/td&gt;
&lt;td&gt;10.0 GiB&lt;/td&gt;
&lt;td&gt;page cut off at 8,192 tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These ran on the 4090, not real 16 or 12 GB cards, with one sample each. The &lt;a href="https://inferencekey.com/research/sensenova-code2video-clip-one-gpu" rel="noopener noreferrer"&gt;memory ladder, launch command and step-by-step setup for the Code2Video test&lt;/a&gt; have the rest. See also our earlier test of another SenseTime model, &lt;a href="https://inferencekey.com/research/sensenova-loop-9b-looped-one-gpu" rel="noopener noreferrer"&gt;SenseNova-Loop-9B&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits and the honest limit
&lt;/h2&gt;

&lt;p&gt;The SenseNova team at SenseTime built the model, the skill, the prompt template and the production runs, starting from the Qwen team's base model (&lt;a href="https://huggingface.co/sensenova/SenseNova-6.8-Code2Video" rel="noopener noreferrer"&gt;model card&lt;/a&gt;, &lt;a href="https://github.com/OpenSenseNova/SenseNova-6.8-Code2Video" rel="noopener noreferrer"&gt;skill repository&lt;/a&gt;). bartowski made the &lt;a href="https://huggingface.co/bartowski/sensenova_SenseNova-6.8-Code2Video-GGUF" rel="noopener noreferrer"&gt;GGUF quants&lt;/a&gt; and the llama.cpp maintainers made the server. Anthropic made Claude Code and Claude Opus 5.5, which drafted the brief from the authors' template. We first saw the model in an AI Search news video. We handled the deployment, fixed the image path, ran the sandboxed agent and counted the pixels.&lt;/p&gt;

&lt;p&gt;This was one attempt at one brief under tight limits we chose. Logs, timings, the full VRAM table and the SDK example are in the &lt;a href="https://inferencekey.com/research/sensenova-code2video-clip-one-gpu" rel="noopener noreferrer"&gt;complete Code2Video research post on inferencekey.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gpu</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Serving Qwen3.5-0.8B with a 0.016% weight edit: measure the loops, pin the sampling on the server</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Fri, 20 Nov 2026 06:38:46 +0000</pubDate>
      <link>https://dev.to/inferencekey/serving-qwen35-08b-with-a-0016-weight-edit-measure-the-loops-pin-the-sampling-on-the-server-41nm</link>
      <guid>https://dev.to/inferencekey/serving-qwen35-08b-with-a-0016-weight-edit-measure-the-loops-pin-the-sampling-on-the-server-41nm</guid>
      <description>&lt;p&gt;A model that never stops talking is a capacity problem first. Each answer that runs to the token limit (tokens are the word pieces a model reads and writes) holds a slot on your GPU until the limit cuts it off, and leaves nothing to parse.&lt;/p&gt;

&lt;p&gt;Qwen3.5-0.8B, a small open model from the Qwen team, writes a long reasoning scratchpad before it answers, and its model card warns that this size is "more prone to entering thinking loops". Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab at MIT CSAIL published a fix with no training. A large model they call GPT-6 Astra read the small model's internals and changed 64 columns of weights (the learned numbers) in each of two layers: 131,072 weights, 0.016% of the model. The Hugging Face user akhaliq, working with ML Intern on HF Jobs, rebuilt and verified the file and reran MATH-500, a standard set of 500 competition math problems.&lt;/p&gt;

&lt;p&gt;We put both files on one RTX 4090 on our cloud, each served by vLLM (an open-source engine that turns a model file into an HTTP API), on the first 50 MATH-500 problems. The tables are in &lt;a href="https://inferencekey.com/research/qwen3-5-weight-edit-stops-loops" rel="noopener noreferrer"&gt;our side-by-side test of the edited and base Qwen3.5-0.8B&lt;/a&gt;. Here is what to get right to repeat it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Track how many answers hit the limit, not only accuracy
&lt;/h2&gt;

&lt;p&gt;A score hides where the GPU time went. For a model that loops, watch the share of answers the limit had to cut.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;50 MATH-500 problems, 32,768-token limit&lt;/th&gt;
&lt;th&gt;Edited&lt;/th&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Right answers&lt;/td&gt;
&lt;td&gt;62%&lt;/td&gt;
&lt;td&gt;8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cut at the limit&lt;/td&gt;
&lt;td&gt;20%&lt;/td&gt;
&lt;td&gt;96%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Average tokens per answer&lt;/td&gt;
&lt;td&gt;20,444&lt;/td&gt;
&lt;td&gt;31,832&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the same 50 problems, the edited model wrote 1.02 million tokens and the base 1.59 million. Per right answer, about 33,000 against 398,000, a rough ratio since only 4 base answers were right. Our 62% also beats the published runs (48.1% from the authors over all 500, 51.0% from akhaliq). On our 50 problems akhaliq's run scored 54%, so we read the margin as sample size.&lt;/p&gt;

&lt;p&gt;The edit takes away an obstacle, not a gap in knowledge. On Gemma 3 270M, where only 8.5% of answers hit the limit, the same method left MATH-500 between 6.8% and 7.7%.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: sampling settings your API does not forward
&lt;/h2&gt;

&lt;p&gt;Sampling settings decide how the model picks each next token. The authors' figures assume thinking on, temperature 0.6, top-p 0.95, top-k 20 and a presence penalty of 1.5 (it discourages repeating tokens already used). Change one and you measure something else.&lt;/p&gt;

&lt;p&gt;Per request, our platform's API passes on temperature, top-p and presence penalty. It drops top-k and the chat template switch that enables thinking. So we set them all on the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;--default-chat-template-kwargs &lt;span class="s1"&gt;'{"enable_thinking": true}'&lt;/span&gt; \
--override-generation-config &lt;span class="s1"&gt;'{"temperature": 0.6, "top_p": 0.95, "top_k": 20, "presence_penalty": 1.5}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;vLLM prints the override at startup. Check that line before trusting a benchmark. A parameter your gateway silently drops looks exactly like a weaker model. The complete serve command and the reason each flag sits on the server are in &lt;a href="https://inferencekey.com/research/qwen3-5-weight-edit-stops-loops" rel="noopener noreferrer"&gt;the engineering appendix of the Qwen3.5-0.8B weight edit write-up&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two engines on one card do not split it evenly
&lt;/h2&gt;

&lt;p&gt;Each engine got 0.45 of the 24 GB card, which peaked at 16.9 GiB. But engines that boot together check free memory at the same instant. From that identical setting, the base engine ended up with 6.48 GiB of KV cache (the memory that holds each running conversation) and the edited one with 3.32 GiB. The edited one queued requests sooner, so its throughput is not comparable. Boot the engines one after another.&lt;/p&gt;

&lt;h2&gt;
  
  
  A streamed answer can end without telling you
&lt;/h2&gt;

&lt;p&gt;Through our endpoint, one base answer simply stopped at 152 seconds. The client got no error and no end marker. We suspect the platform's two-minute silence timeout, whose error chunk our example script never reads. It is not confirmed, and the issue is open. Whatever stack you use, discard any streamed answer that never sends a &lt;code&gt;finish_reason&lt;/code&gt; (the field that says why generation ended), and check each chunk for an &lt;code&gt;error&lt;/code&gt; key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sizing: caps on a big card, not small cards
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0q9d68idi8m873c7otgi.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0q9d68idi8m873c7otgi.jpg" alt="Memory caps on the RTX 4090 for the edited model alone with a 34,816-token context: 8 GB and 6 GB caps answer 5 of 5 right, 5 GB passes only with 32 slots, 4 GB will not start" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We capped the 4090's memory and reran five solved problems on the edited model alone. A 6 GB cap returned the same five right answers as 8 GB. At 5 GB, vLLM refused to boot until we lowered &lt;code&gt;--max-num-seqs&lt;/code&gt; (how many requests it serves at once) from 256 to 32. At 4 GB it never started. No real small card was tested, and real ones have slower memory, so expect slower runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not cover
&lt;/h2&gt;

&lt;p&gt;We tested math with thinking on. Chat, instruction following, thinking off and images are untested. We also skipped the cheaper base-model fix Qwen's card suggests: a lower limit, or stopping a loop from the stream. The AI Search video mentions about 44% for the unedited model with other settings, with no source named. We have not checked it.&lt;/p&gt;

&lt;p&gt;Credit goes to the Qwen team for the model, and to the MIT CSAIL authors for the method, the diff and the &lt;a href="https://github.com/RikiyaT/lm_understand-logs" rel="noopener noreferrer"&gt;script that rebuilds and hash-verifies the edit&lt;/a&gt;. akhaliq built the &lt;a href="https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming" rel="noopener noreferrer"&gt;checkpoint&lt;/a&gt; and ran the independent rerun. The vLLM project wrote the engine, and the AI Search channel is where we spotted the story. We served both models on one card, ran the 50-problem comparison and tested the memory caps.&lt;/p&gt;

&lt;p&gt;The setup, the full memory ladder, the timings and an SDK example that runs both models and deletes them on exit are in &lt;a href="https://inferencekey.com/research/qwen3-5-weight-edit-stops-loops" rel="noopener noreferrer"&gt;Qwen3.5-0.8B: an AI edited 0.016% of its weights, and thinking loops fell from 93% to about 32%&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Sizing a looped LLM: SenseNova-Loop-9B stores 32 layers, runs 56, and fits a 20 GB card</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:25:33 +0000</pubDate>
      <link>https://dev.to/inferencekey/sizing-a-looped-llm-sensenova-loop-9b-stores-32-layers-runs-56-and-fits-a-20-gb-card-4eje</link>
      <guid>https://dev.to/inferencekey/sizing-a-looped-llm-sensenova-loop-9b-stores-32-layers-runs-56-and-fits-a-20-gb-card-4eje</guid>
      <description>&lt;p&gt;The parameter count is the number most of us use to size a self-hosted model. SenseNova-Loop-9B-Preview, which SenseTime released with open weights under Apache 2.0, makes that shortcut misleading twice. It takes the memory of a 9B, and its authors count the work per token like a 14.6B.&lt;/p&gt;

&lt;p&gt;The file holds 32 layers, the processing steps a model stacks up. Each token it writes (a token is a word or a piece of one) goes through 56 layer passes, because the middle layers, numbers 4 to 27, are executed twice and no weight is duplicated. The model page says "~9B total parameters; ~14.6B inference parameters". The 14.6B is SenseTime's count, unverified by us.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fent70v2xndtt00lh73gw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fent70v2xndtt00lh73gw.jpg" alt="SenseTime's architecture figure: 32 layers stored, 56 run, with a looped middle block" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We loaded it with no compression on a 48 GB A40 on our cloud and on a real RTX 4000 Ada with 20 GB. Both answered the same three requests correctly: a word problem, a question about a chart image, and a tool call (the model asking your program to run a function). Each request ran once, alone on the card: proof that it runs, not a quality score. Figures and method are in &lt;a href="https://inferencekey.com/research/sensenova-loop-9b-looped-one-gpu" rel="noopener noreferrer"&gt;our SenseNova-Loop-9B test on two real cards&lt;/a&gt;. Three things to check before building on it follow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your usual engine will not load it
&lt;/h2&gt;

&lt;p&gt;A serving engine is the program that loads the weights and answers requests: llama.cpp on a laptop, vLLM or SGLang on a server. None of them had code for a block that repeats. Status on 9 November:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;llama.cpp: upstream does not load the model, and a &lt;a href="https://github.com/ggml-org/llama.cpp/issues/31571" rel="noopener noreferrer"&gt;feature request&lt;/a&gt; is still open. AtomicChat's converted files need a patched llama.cpp and handle text only.&lt;/li&gt;
&lt;li&gt;vLLM: sufubao has an open &lt;a href="https://github.com/vllm-project/vllm/pull/64832" rel="noopener noreferrer"&gt;pull request&lt;/a&gt;, a proposed change that is not in a release. Text only so far.&lt;/li&gt;
&lt;li&gt;SGLang: WANDY666 has an open &lt;a href="https://github.com/sgl-project/sglang/pull/47281" rel="noopener noreferrer"&gt;pull request&lt;/a&gt; that covers text and images.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Short of building an unmerged branch, one route handles text and images on a single card: the Transformers code SenseTime ships next to the weights. Transformers is the Python library most models ship with, and its &lt;code&gt;trust_remote_code&lt;/code&gt; flag lets it run that code. We wrapped it in a few hundred lines of Python behind a chat API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure the CPU core, not just the GPU
&lt;/h2&gt;

&lt;p&gt;Through Transformers the model produced 2.2 to 3.0 tokens per second. With thinking on (the model writes out its reasoning before the answer), the chart question needed 157 seconds on the A40 and 204 on the RTX 4000 Ada. That suits a job queue, not a chat.&lt;/p&gt;

&lt;p&gt;The card is probably not the limit. While the A40 was generating, its GPU was in use 38 to 53 % of the time, and one CPU core was pinned at 100 %. Python feeds the GPU a long series of small jobs, and 56 layer passes per token multiply that overhead.&lt;/p&gt;

&lt;p&gt;WANDY666's SGLang pull request points at software. Built on the same A40, it gave 9.1 to 9.2 tokens per second. The word problem fell from 101 seconds to 33.6, and the text it wrote was the same. It is unmerged, and we never ran an ordinary 9B without a loop on that card, so we cannot say how much of the slowness is the loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: one pass looks like a free 2x
&lt;/h2&gt;

&lt;p&gt;A single trip through the looped block would bring 56 layer passes down to 32. Our loading code has a per-request switch for that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# loop_passes=2 is the trained setting; 1 runs the middle layers once&lt;/span&gt;
&lt;span class="nf"&gt;ask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_tokens&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1024&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;enable_thinking&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loop_passes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It wrote faster, about 4.7 tokens per second against 2.3, and the output fell apart. The word problem went wrong in the first sentence, slid into Chinese and looped on a single word up to the 1,024-token cap. On the chart question it turned 3,350 into 3,530, and both of its results were wrong. Training assumed two passes, so treat &lt;code&gt;loop_passes&lt;/code&gt; as a diagnostic and not as a tuning knob.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prompt length picks the card, not the weights
&lt;/h2&gt;

&lt;p&gt;After loading, the model occupies 17.5 GiB. Looping reuses the weights, but each pass keeps its own per-prompt state, which grows with the prompt. The 20 GB RTX 4000 Ada exposes 19.55 GiB.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Prompt&lt;/th&gt;
&lt;th&gt;On the real 20 GB card&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;3,046 tokens&lt;/td&gt;
&lt;td&gt;correct answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;about 6,000 tokens&lt;/td&gt;
&lt;td&gt;out-of-memory error, and the next request was served&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12,046 tokens&lt;/td&gt;
&lt;td&gt;cannot fit: on the A40 it reached 19.9 GiB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With the A40 capped at 22.5 GiB to stand in for a 24 GB card, the 12K-token prompt passed with the same answers. No real 24 GB card was tested.&lt;/p&gt;

&lt;p&gt;MTP, a built-in part that guesses the next few tokens, is listed as available on the model page. It did not run on one GPU with any engine we tried. The attempts, the full memory ladder and the engine status table are in &lt;a href="https://inferencekey.com/research/sensenova-loop-9b-looped-one-gpu" rel="noopener noreferrer"&gt;the engineering appendix of the write-up&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do with it today
&lt;/h2&gt;

&lt;p&gt;Give it short-prompt jobs that can wait and need images or tool calls, on a 20 to 24 GB card. Budget 24 GB or more when prompts get long. Promise no speed until the SGLang or vLLM pull request lands. Keep the loop at two passes.&lt;/p&gt;

&lt;p&gt;SenseTime built the model and its modeling code, on the Qwen team's text backbone and vision tower. WANDY666 and sufubao wrote the SGLang and vLLM support, and ModelTC added the model to LightLLM. AtomicChat and GuideboardLabs published the llama.cpp conversions. The flash-linear-attention project supplies kernels the Transformers path uses. We spotted the model in an AI Search video and an r/LocalLLaMA thread. Our part was the deployment, the loop switch and the measurements.&lt;/p&gt;

&lt;p&gt;Setup steps, the SDK example and every timing are in &lt;a href="https://inferencekey.com/research/sensenova-loop-9b-looped-one-gpu" rel="noopener noreferrer"&gt;SenseNova-Loop-9B: a looped 9B fits a 20 GB card, and pays in speed&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gpu</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Running a dense 65B coder on one GPU: what memory bandwidth and 2-bit files cost you</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Tue, 17 Nov 2026 06:37:30 +0000</pubDate>
      <link>https://dev.to/inferencekey/running-a-dense-65b-coder-on-one-gpu-what-memory-bandwidth-and-2-bit-files-cost-you-3e5</link>
      <guid>https://dev.to/inferencekey/running-a-dense-65b-coder-on-one-gpu-what-memory-bandwidth-and-2-bit-files-cost-you-3e5</guid>
      <description>&lt;p&gt;If you self-host Ripple-65B, the first decision is not about benchmarks. It is which file you download, because the model reads that file from GPU memory for every token it writes. A token is a chunk of text, roughly a word.&lt;/p&gt;

&lt;p&gt;We ran Ricursive's open coder on our own cloud, on one RTX A6000 (48 GB) and on a real RTX 3090 (24 GB), through llama.cpp, a free program for running models on your own card. The tables and commands live in the &lt;a href="https://inferencekey.com/research/ripple-65b-dense-coder-one-card" rel="noopener noreferrer"&gt;full Ripple-65B test on one 48 GB card&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl1ec5ggc35l280m7m3fo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl1ec5ggc35l280m7m3fo.jpg" alt="Same coding prompt on two cards: RTX A6000 with the 4-bit file, 14 to 16 tokens per second, 4 of 4 coding answers right; RTX 3090 with the 2-bit file, 23 to 31 tokens per second, 2 of 3 right" width="800" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Dense means your ceiling is memory bandwidth, not compute
&lt;/h2&gt;

&lt;p&gt;The models Ricursive compares against are all mixtures of experts. That design wakes only part of the network per token, 23B to 55B parameters. Ripple is dense: all 65B parameters take part in every token.&lt;/p&gt;

&lt;p&gt;The file sizes come from quantization, storing each weight in fewer bits: about 130 GB at full precision, 38.8 GB at 4 bits. The card streams most of that file per token. On the A6000 that gave 14.3 to 16.3 tokens per second. The limit is how fast the card moves bytes out of its memory (its bandwidth), not how fast it does math.&lt;/p&gt;

&lt;p&gt;What that feels like: a 400-token reply takes close to half a minute, while a short question starts answering in under a second. Fine for one developer steering an agent, not fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  Long prompts are cheap because of the layer layout
&lt;/h2&gt;

&lt;p&gt;While reading your prompt, a model saves per-token results so it need not redo them. That store, the KV cache, usually grows fast with the prompt. Ripple keeps it small. Of its 80 layers, 64 only look back over a window of 1,024 tokens. Just 16 track the full prompt, costing 64 KiB per token at 16-bit precision, plus the window.&lt;/p&gt;

&lt;p&gt;So a 256K-token prompt fit on the same 48 GB card once we also quantized the cache. In llama.cpp, &lt;code&gt;-c&lt;/code&gt; sets the context length and &lt;code&gt;-ctk&lt;/code&gt;/&lt;code&gt;-ctv&lt;/code&gt; set the cache precision:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;-c 131072 -ctk q8_0 -ctv q8_0   &lt;span class="c"&gt;# 128K, 44.4 GB peak&lt;/span&gt;
-c 262144 -ctk q4_0 -ctv q4_0   &lt;span class="c"&gt;# 256K, 45.6 GB peak&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We hid a passphrase at token 237,532, and the model returned it. Reading that prompt took about 13 minutes. One test per length proves retrieval of a fact, not reasoning across a codebase. The full million-token window does not fit on one 48 GB card.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: your llama.cpp build has to know the architecture
&lt;/h2&gt;

&lt;p&gt;Ripple landed in llama.cpp through &lt;a href="https://github.com/ggml-org/llama.cpp/pull/31692" rel="noopener noreferrer"&gt;PR #31692&lt;/a&gt;, merged on 5 November. Nik Bogatyrev submitted it, and AtomicChat's model card says AtomicChat wrote it. AtomicChat also published GGUF files, the single-file format llama.cpp loads, from 129.6 GB down to 18.5 GB. Older builds cannot read the &lt;code&gt;ricursive&lt;/code&gt; architecture, so pin a release that can. We used &lt;a href="https://github.com/ggml-org/llama.cpp/releases/tag/b12167" rel="noopener noreferrer"&gt;release b12167&lt;/a&gt;, which also comes with prebuilt CUDA tarballs.&lt;/p&gt;

&lt;p&gt;That matters for automated deployments. Our worker, the small program on the GPU machine that takes orders from our platform, compiles llama.cpp from source on NVIDIA by default, 5 to 20 minutes in earlier tests. With the prebuilt CUDA asset pinned instead, the model was serving 19.0 seconds after the request on the A6000 and 19.3 on the 3090, with the file already downloaded. Changing that default is still open on our side; the SDK example pins the asset for you.&lt;/p&gt;

&lt;p&gt;Agents need tool calls: the model asks your code to run something, such as a shell command. With &lt;code&gt;--jinja&lt;/code&gt; and &lt;code&gt;--reasoning-format deepseek&lt;/code&gt;, the server turned the chat template's tool calls into the standard OpenAI &lt;code&gt;tool_calls&lt;/code&gt; field. All of ours were valid.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a small quant breaks, and why your tests may miss it
&lt;/h2&gt;

&lt;p&gt;On the 3090 we used the 2-bit file (20.0 GB). Fewer bytes per token meant more speed: 23 to 31 tokens per second. Our sandboxed agent job, a toy repo with a planted off-by-one bug, passed with every file size.&lt;/p&gt;

&lt;p&gt;That pass hides the problem: the fix was one changed comparison, with no fresh tests to write. Fresh code is where the smaller files went wrong. On the 3090, one of three coding answers had a correct function but a test expecting the wrong result. In a run on the A6000 capped to a 24 GB budget, both tests passed, yet one function never sorted its input. AtomicChat's own measurements agree:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;th&gt;Disagrees with full model on next token&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;4-bit (Q4_K_M)&lt;/td&gt;
&lt;td&gt;38.8 GB&lt;/td&gt;
&lt;td&gt;about 7 in 100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3-bit&lt;/td&gt;
&lt;td&gt;28.0 GB&lt;/td&gt;
&lt;td&gt;about 9 in 100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2-bit&lt;/td&gt;
&lt;td&gt;20.0 GB&lt;/td&gt;
&lt;td&gt;almost 20 in 100&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When you evaluate a quant, make it write new code and new tests, not just turn one red test green. The &lt;a href="https://inferencekey.com/research/ripple-65b-dense-coder-one-card" rel="noopener noreferrer"&gt;memory ladder and per-file results for Ripple-65B&lt;/a&gt; list each run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not show
&lt;/h2&gt;

&lt;p&gt;Every request ran alone, a handful of times at most, on prompts we wrote. We did not reproduce Ricursive's benchmarks, their SGLang serving setup or their DFlash2 drafter. Ricursive labels the release a Preview and describes its posttraining as "relatively light". For comparison, our test of &lt;a href="https://inferencekey.com/research/nanbeige-33b-dense-agent-24gb" rel="noopener noreferrer"&gt;Nanbeige4.3-33B, a dense agent model on 24 GB&lt;/a&gt;, half the size, wrote about 42 tokens per second on an RTX 4090.&lt;/p&gt;

&lt;p&gt;Credit where it belongs: Ricursive Intelligence trained the model and released it under Apache 2.0. Nik Bogatyrev submitted the llama.cpp port. AtomicChat published the GGUF files and their quality table. The llama.cpp maintainers shipped the CUDA builds and the tool-call parsing. AI Search's news video is where we spotted it. Our part: the deployment, the measurements on two cards and the SDK example.&lt;/p&gt;

&lt;p&gt;The launch command, timings and step-by-step setup are in the &lt;a href="https://inferencekey.com/research/ripple-65b-dense-coder-one-card" rel="noopener noreferrer"&gt;complete Ripple-65B write-up on inferencekey.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gpu</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Building on LFM3-Omni-2B: a silent-video trap, a text-only fast server and what to measure</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Mon, 16 Nov 2026 06:37:33 +0000</pubDate>
      <link>https://dev.to/inferencekey/building-on-lfm3-omni-2b-a-silent-video-trap-a-text-only-fast-server-and-what-to-measure-9an</link>
      <guid>https://dev.to/inferencekey/building-on-lfm3-omni-2b-a-silent-video-trap-a-text-only-fast-server-and-what-to-measure-9an</guid>
      <description>&lt;p&gt;The usual voice assistant is four models in a trench coat: speech recognition, a vision model, a language model and a speech synthesizer, so four servers to babysit. Liquid AI's &lt;a href="https://huggingface.co/LiquidAI/LFM3-Omni-2B" rel="noopener noreferrer"&gt;LFM3-Omni-2B&lt;/a&gt; is one set of weights, about 4.5 GB, that takes text, images, video with sound and recorded speech, and answers in text, speech or both at once.&lt;/p&gt;

&lt;p&gt;We deployed it on two small cards on our cloud, an RTX A5000 with 24 GB and an RTX 2000 Ada with 16 GB, and wrote up every measurement in the &lt;a href="https://inferencekey.com/research/lfm3-omni-voice-vision-one-model" rel="noopener noreferrer"&gt;LFM3-Omni-2B voice and vision test on inferencekey.com&lt;/a&gt;. Here is where it bites.&lt;/p&gt;

&lt;h2&gt;
  
  
  The video trap: forget one flag and the model says the clip is silent
&lt;/h2&gt;

&lt;p&gt;We sent a 9.7 second clip of a toddler reading, plus a typed question. With the soundtrack, the model reported that the child is speaking. With frames only, it claimed there was no audible speech or music in the clip. Confidently wrong.&lt;/p&gt;

&lt;p&gt;In the checkpoint's Transformers code (the reference Python implementation the model ships with), video with sound needs two settings. Leave out either one and the audio never reaches the model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Video with its soundtrack, Transformers code path: both, or frames only&lt;/span&gt;
&lt;span class="n"&gt;load_audio_from_video&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;
&lt;span class="n"&gt;use_audio_in_video&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the hand-built SGLang branch, the flag only worked as a top-level &lt;code&gt;use_audio_in_video: true&lt;/code&gt;. Inside &lt;code&gt;mm_processor_kwargs&lt;/code&gt; it was silently dropped.&lt;/p&gt;

&lt;p&gt;Caveat: the run with sound also had a one-line system prompt asking the model to use what it sees and hears, so two things changed. Even so, the model only noticed sound when it got the sound. If your app takes video, write a test that proves the audio arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  The serving split: the fast server is about four times quicker and writes only text
&lt;/h2&gt;

&lt;p&gt;SGLang is an open-source inference server: it keeps a model loaded on the GPU and answers requests. The current release, 0.5.23, does not support this model and crashed at start-up on our card, despite the one-line launch in Liquid AI's docs. Support lives in an open pull request, &lt;a href="https://github.com/sgl-project/sglang/pull/46858" rel="noopener noreferrer"&gt;sgl-project/sglang#46858&lt;/a&gt; by tugot17. We built it by hand. With greedy decoding (always picking the most likely next token, so runs are repeatable) it gave the same answers as the Transformers path, at 158 tokens per second against 38 to 40. (A token is a word piece.) That build has no voice.&lt;/p&gt;

&lt;p&gt;So anything spoken goes through the model's own code, loaded by the Hugging Face Transformers library with &lt;code&gt;trust_remote_code&lt;/code&gt;. For a single caller the slow route was good enough; we did not test concurrent ones. For heavy text traffic, hold off until SGLang ships a release with support.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F18mxeab3s80nagy4k58y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F18mxeab3s80nagy4k58y.jpg" alt="Three tiles summarising the LFM3-Omni-2B test: about 5 GB of GPU memory, a 10-second spoken answer in about 7 seconds of GPU time, and a 16 GB card as fast as a 24 GB one" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What to measure: first speech frame, round trip, and two kinds of memory
&lt;/h2&gt;

&lt;p&gt;The GPU finished a 10-second spoken answer in roughly 6 to 7.5 seconds; the caller got it after 8 to 10, because our backend sends one WAV at the end. Inside the server, the first slice of audio appeared within 0.2 to 0.5 seconds. Streaming means sending audio as it is produced, and we neither built nor tested it. Log both numbers anyway: the gap is what streaming would buy you.&lt;/p&gt;

&lt;p&gt;Memory splits too. PyTorch, the library holding the weights on the GPU, reported a peak of 4,285 to 4,434 MiB per request. &lt;code&gt;nvidia-smi&lt;/code&gt;, NVIDIA's own monitor, put the whole process at 4,772 to 4,832 MiB. PyTorch never counts the extra 400 MiB or so. To find the floor, we limited PyTorch on the A5000 with &lt;code&gt;torch.cuda.set_per_process_memory_fraction&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cap&lt;/th&gt;
&lt;th&gt;Voice, photo, transcription, speech, 10 s video&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;RTX 2000 Ada 16 GB, real card&lt;/td&gt;
&lt;td&gt;all pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4.45 GiB (simulated)&lt;/td&gt;
&lt;td&gt;all pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4.35 GiB (simulated)&lt;/td&gt;
&lt;td&gt;the 10 s video runs out of memory&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Those rungs are a software limit on a large card, not a real small one. A one-minute video wants about 6 GB. Each rung is in the &lt;a href="https://inferencekey.com/research/lfm3-omni-voice-vision-one-model" rel="noopener noreferrer"&gt;GPU memory ladder for LFM3-Omni-2B&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Numbers read aloud need a check
&lt;/h2&gt;

&lt;p&gt;We asked "how tall is Kilimanjaro" out loud ten times. Nine answers had the meters right, and most got the feet wrong. Speech is generated with sampling, meaning a controlled dose of randomness (&lt;code&gt;audio_temperature&lt;/code&gt; 0.4 in our runs), and the written words follow the voice, so two runs rarely match. Give a number-reading assistant a tool or a check for conversions. Tool calling behaved: a spoken "set the volume to 30" became &lt;code&gt;set_volume({"volume": 30})&lt;/code&gt; in about half a second.&lt;/p&gt;

&lt;p&gt;Distrust quotes from muddy audio too: the model gave the toddler a sentence that matched neither Whisper's transcript nor its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  The license is a gate, not a footnote
&lt;/h2&gt;

&lt;p&gt;The weights ship under the &lt;a href="https://huggingface.co/LiquidAI/LFM3-Omni-2B/blob/main/LICENSE" rel="noopener noreferrer"&gt;LFM Open License v1.0&lt;/a&gt;. Your organization may use it commercially only below 10 million US dollars of yearly revenue. Above that, agree terms with Liquid AI before production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we did not prove
&lt;/h2&gt;

&lt;p&gt;One request at a time, our own short inputs, no human rating of the voice (Whisper large-v3 via faster-whisper read the audio back), no GGUF builds (the compressed files llama.cpp runs), no llama.cpp realtime server. No four-model pipeline on the same card either, so this cannot say one model beats it.&lt;/p&gt;

&lt;p&gt;Credit where it belongs: Liquid AI built the model, its audio codec, the benchmarks and the sample clips; tugot17 wrote the SGLang port; the Transformers maintainers made the code path we ran; the llama.cpp maintainers added GGUF and realtime support; OpenAI's Whisper gave the independent read-back; LibriSpeech supplied the transcription clip; Kyutai's Pocket TTS voiced our test questions; AI Search's video is where we spotted it. Our part: the custom backend, the two-card deployment and the measurements.&lt;/p&gt;

&lt;p&gt;The backend, request options, timings and SDK example are in the &lt;a href="https://inferencekey.com/research/lfm3-omni-voice-vision-one-model" rel="noopener noreferrer"&gt;full LFM3-Omni-2B deployment write-up&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>gpu</category>
    </item>
    <item>
      <title>Running a dense 33B agent model on one 24 GB GPU: the offload trap and the empty reply</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Sun, 15 Nov 2026 06:38:34 +0000</pubDate>
      <link>https://dev.to/inferencekey/running-a-dense-33b-agent-model-on-one-24-gb-gpu-the-offload-trap-and-the-empty-reply-4dda</link>
      <guid>https://dev.to/inferencekey/running-a-dense-33b-agent-model-on-one-24-gb-gpu-the-offload-trap-and-the-empty-reply-4dda</guid>
      <description>&lt;p&gt;To self-host Nanbeige4.3-33B, the Apache-2.0 agent coding model the Nanbeige team (BOSS Zhipin) released on 24 October, two decisions matter most. First, which compressed copy of the weights you load for your card. Second, how you handle thinking mode, where the model reasons before replying: with the defaults, your agent can get an empty answer back.&lt;/p&gt;

&lt;p&gt;We ran it on one RTX 4090 on our cloud with llama.cpp, the open-source server for single-file GGUF models, using bartowski's files. The 4-bit file gave 42 to 44 tokens per second for one request (a token is a word or part of one). Every tool call, where the model asks your code to run a function, came back valid in the OpenAI format. The &lt;a href="https://inferencekey.com/research/nanbeige-33b-dense-agent-24gb" rel="noopener noreferrer"&gt;full Nanbeige4.3-33B test on 24 GB and 16 GB cards&lt;/a&gt; has every command and table. Here are the parts that bite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dense means every parameter is read for every token
&lt;/h2&gt;

&lt;p&gt;Many agent models that fit one card are mixtures of experts: each token goes through a small slice of the network, so 35 billion parameters may mean 3 billion working per token. &lt;a href="https://inferencekey.com/research/groot-19b-agent-moe-one-card" rel="noopener noreferrer"&gt;Groot-19B on a single card&lt;/a&gt; was one. Nanbeige4.3-33B is dense: all 33 billion take part in every token.&lt;/p&gt;

&lt;p&gt;So the GPU streams the entire 20.8 GB of the 4-bit file out of VRAM, its onboard memory, for every token. Read speed of that memory is your limit: smaller file, quicker model. Any weight parked in slower system RAM drags every token down.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: partial offload on a 16 GB card
&lt;/h2&gt;

&lt;p&gt;The reflex on a smaller card is offload: keep the 4-bit file and run some of the model's layers on the CPU. With a dense model, that is the wrong move. On the 4090 we stayed under 16 GB by moving 16 of the 52 layers to the CPU. Answers stayed correct, at 1.6 tokens per second.&lt;/p&gt;

&lt;p&gt;The fix is a smaller file that fits entirely on the GPU. bartowski's 3-bit file (IQ3_XXS) peaked at 14,730 MiB, and on the 4090 it ran at 56.5 tokens per second. On a real 16 GB card, an RTX 2000 Ada at 70 watts, the same file ran at 13.6 to 14.4 tokens per second and passed the same checks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnsx4e2v9qislnq2a6m5o.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnsx4e2v9qislnq2a6m5o.jpg" alt="Three tiles: 42 tokens per second on one RTX 4090, 64K context in 24 GB, a real 16 GB card with the 3-bit file at 14 tokens per second" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two bits is too far. That file stayed under 12 GB with right answers, yet claimed the 8 in 9.8 is "in the hundredths place". For code, one wrong explanation in four checks rules it out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Context costs you speed, not just memory
&lt;/h2&gt;

&lt;p&gt;Context is how much text the model takes in at once. On the 4090 a 64K-token prompt worked, and the model located a secret word planted at token 61,428. That meant squeezing the KV cache, the model's working notes on the prompt. At 16-bit it fits up to 16K, at 8-bit up to 32K and at 4-bit up to 64K, with under 1 GB left on the card.&lt;/p&gt;

&lt;p&gt;Benchmark generation speed with long prompts. At 64K it dropped to 16 tokens per second, since each new token looks back over roughly 61,000 tokens of notes. The secret word turned up at all three sizes, the only quality check we ran on the 4-bit cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug you will hit: the answer lands in the thinking field
&lt;/h2&gt;

&lt;p&gt;With thinking on, the default, some replies come back with &lt;code&gt;content&lt;/code&gt; empty and the whole answer in &lt;code&gt;reasoning_content&lt;/code&gt;. It hit all three 400-word essays we requested, and on the agent's final answer after the tool results in two of three runs, once on each card. Brief answers and the tool calls were fine every time.&lt;/p&gt;

&lt;p&gt;The cause is in the chat template, the wrapper that turns your messages into the model's prompt. It ends the prompt by opening a thinking block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;|im_start|&amp;gt;assistant
&amp;lt;think&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sometimes the model answers without closing the block, so llama.cpp's &lt;code&gt;--reasoning-format deepseek&lt;/code&gt; files everything as reasoning. With &lt;code&gt;enable_thinking=false&lt;/code&gt; sent straight to llama.cpp, the essay arrived in &lt;code&gt;content&lt;/code&gt;, all 3,151 characters. Server-wide, &lt;code&gt;--chat-template-kwargs '{"enable_thinking":false}'&lt;/code&gt; is the expected fix, but we never launched that flag, so its effect on the agent's answer is untested. The trade-off: the published scores were taken at maximum thinking, and the authors advise leaving it on for agents.&lt;/p&gt;

&lt;p&gt;Two gaps on our side are open: our endpoint drops the per-request &lt;code&gt;chat_template_kwargs&lt;/code&gt;, and the worker builds llama.cpp from source on first start (about five minutes on the 4090 host, nearly 20 on a throttled one). Meanwhile, check for an empty &lt;code&gt;content&lt;/code&gt; in your client and fall back to the reasoning field, as the SDK example does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other things worth checking before you trust it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Send your own system prompt, or the template adds a Chinese one naming the model and BOSS Zhipin.&lt;/li&gt;
&lt;li&gt;We parsed tool calls with llama.cpp's &lt;code&gt;--jinja&lt;/code&gt; support, not the &lt;code&gt;qwen3_coder&lt;/code&gt; parser the model page suggests for vLLM and SGLang.&lt;/li&gt;
&lt;li&gt;Our scope was narrow: one request at a time, single tool calls and one agent turn, never a real repository.&lt;/li&gt;
&lt;li&gt;The authors' own figures, not rerun by us: ahead of Qwen3.8-27B on Terminal-Bench 2.1 (80.9 vs 73.0) and DeepSWE (65.5 vs 42.5), behind on SWE-Bench Pro (60.3 vs 61.7).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Launch commands for 8K, 32K and 64K and timings for both cards are in the &lt;a href="https://inferencekey.com/research/nanbeige-33b-dense-agent-24gb" rel="noopener noreferrer"&gt;Nanbeige4.3-33B deployment write-up with the full VRAM ladder&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Credit to the Nanbeige team for the model, the card and the benchmarks, bartowski for the GGUF quants, axteam for an NVFP4A16 build for vLLM (untested by us), the llama.cpp maintainers for the server and its template support, and AI Search, whose news video put the model on our radar. Our part: the deployment, tests on two real cards, tracing the empty reply and the SDK example. To run the same checks on your own 24 GB NVIDIA card, start from the &lt;a href="https://inferencekey.com/research/nanbeige-33b-dense-agent-24gb" rel="noopener noreferrer"&gt;Nanbeige4.3-33B article on inferencekey.com&lt;/a&gt; and its SDK example.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gpu</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Clover-35B-A3B on llama.cpp: what "AR mode only" means, and a GGUF that answers in Gs</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Sat, 14 Nov 2026 06:38:19 +0000</pubDate>
      <link>https://dev.to/inferencekey/clover-35b-a3b-on-llamacpp-what-ar-mode-only-means-and-a-gguf-that-answers-in-gs-3lia</link>
      <guid>https://dev.to/inferencekey/clover-35b-a3b-on-llamacpp-what-ar-mode-only-means-and-a-gguf-that-answers-in-gs-3lia</guid>
      <description>&lt;p&gt;Four words in a pull request decide how fast DiffuSpace's Clover-35B-A3B-Preview runs on your card: "in AR mode only." It added Clover to llama.cpp, the free program many people use to run models locally. AR (autoregressive) means the model emits one token, a word piece, then starts the next. Clover was built to work differently.&lt;/p&gt;

&lt;p&gt;We loaded the official Q4_0 GGUF on one RTX 4090 on our cloud, with stock llama.cpp v0.9.0. GGUF is the single-file format llama.cpp reads; Q4_0 is a compressed build. After a small file fix, one request got 202 to 211 tokens per second, with the first token back in 0.13 to 0.31 seconds. The full 128K context window (prompt plus answer in memory) peaked at 21,924 MiB. Every timing is in the &lt;a href="https://inferencekey.com/research/clover-diffusion-llm-one-gpu" rel="noopener noreferrer"&gt;full Clover-35B-A3B test on one RTX 4090&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Supported" can mean the slow path
&lt;/h2&gt;

&lt;p&gt;Clover is a diffusion language model. A normal model is a typist: token, token, token. Clover drafts a block of 32 slots, commits in one pass every slot where its confidence reaches 95%, and revisits the others. That parallel filling is the speed story, and the engine has to implement it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ggml-org/llama.cpp/pull/31306" rel="noopener noreferrer"&gt;PR #31306&lt;/a&gt; by Maphist0 landed on 2 November, and the v0.9.0 release carried it on 4 November. It runs Clover one token per step. A faster self-speculative mode (draft a block in parallel, then verify it the normal way) was left for a later pull request, and we found none open. So 208 tokens per second measures the typist, not the diffusion trick.&lt;/p&gt;

&lt;p&gt;DiffuSpace quotes 515 tokens per second on one H200 and 680 on a GB300, uncompressed, naming neither engine nor mode. The parallel modes live elsewhere. DiffuSpace's own Python code wants about 69 GB for the weights alone. &lt;a href="https://github.com/sgl-project/sglang/pull/46927" rel="noopener noreferrer"&gt;SGLang PR #46927&lt;/a&gt; from Zirui Wu brings draft-and-verify to SGLang, another open serving engine. It awaits review, and its own test logged 453.59 tokens per second on a single H200, one request at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: a file that loads is not a file that works
&lt;/h2&gt;

&lt;p&gt;Out of the box, v0.9.0 rejects the official file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;key not found in model: clover_moe.expert_shared_count
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tempting fix is to add that key. We did. It loaded, we asked for Australia's capital in one word, and got the letter G 600 times.&lt;/p&gt;

&lt;p&gt;A load error stops you. Garbage from a model that loads can slip into a pipeline. The root cause: DiffuSpace exported its files from its own llama.cpp build, which drifted from upstream in three places. One key is absent. There are 120 extra tensors (the named arrays of numbers that make up a model) only the diffusion mode reads. And 30 layers each keep a short vector of values written in another mathematical form.&lt;/p&gt;

&lt;p&gt;Our &lt;code&gt;patch_gguf.py&lt;/code&gt; handles all three and leaves the other weights untouched, so nothing gets compressed twice. On the 19.6 GB file it took 17 seconds, and Clover then answered Canberra. The &lt;a href="https://inferencekey.com/research/clover-diffusion-llm-one-gpu" rel="noopener noreferrer"&gt;notes on what patch_gguf.py changes&lt;/a&gt; name each group of tensors it touches. Status: fixed in our SDK example, open upstream in both DiffuSpace's files and llama.cpp. We checked the patched file only on v0.9.0.&lt;/p&gt;

&lt;p&gt;The habit: before benchmarking a new architecture, ask it one question whose answer you know. A model that replies in Gs still produces a tokens-per-second figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to measure on your own card
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmkw172z97f2lgxph877.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqmkw172z97f2lgxph877.jpg" alt="Result tiles: 208 tokens per second on one RTX 4090, all 128K of context inside 24 GB, and a 16 GB memory budget at about 102 tokens per second" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clover has 35 billion parameters, yet each token uses about 3 billion. It is a mixture of experts: 256 specialists, and each token consults 8 plus one generalist. All sit on the GPU unless llama.cpp's &lt;code&gt;--n-cpu-moe&lt;/code&gt; moves some layers of experts to system RAM, trading speed for card memory. With the 4090's memory capped:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Memory budget&lt;/th&gt;
&lt;th&gt;Experts in RAM&lt;/th&gt;
&lt;th&gt;Peak on the card&lt;/th&gt;
&lt;th&gt;Speed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;10 layers&lt;/td&gt;
&lt;td&gt;15,456 MiB&lt;/td&gt;
&lt;td&gt;about 102 tokens/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12 GB&lt;/td&gt;
&lt;td&gt;22 layers&lt;/td&gt;
&lt;td&gt;10,270 MiB&lt;/td&gt;
&lt;td&gt;about 65 tokens/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8 GB&lt;/td&gt;
&lt;td&gt;all&lt;/td&gt;
&lt;td&gt;2,494 MiB&lt;/td&gt;
&lt;td&gt;about 43 tokens/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All three budgets gave correct answers. Read the table for memory, not speed: a real 16 GB desktop runs at whatever its processor and RAM allow. Our real 16 GB attempt hit a broken host, so that number is missing.&lt;/p&gt;

&lt;p&gt;Three more checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A long prompt with a needle.&lt;/strong&gt; We buried a code in an 89,367-token prompt with the 128K window. Clover returned it in 13.45 seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thinking tokens.&lt;/strong&gt; Clover reasons before every answer. A 400-word essay cost 4,665 tokens and 22.7 seconds, mostly reasoning. Our gateway drops &lt;code&gt;chat_template_kwargs&lt;/code&gt;, the field that carries the off switch. That gap is ours, still open.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The base model.&lt;/strong&gt; Clover comes from Qwen3.6-35B-A3B by Alibaba's Qwen team. That base never ran on our 4090, so there is no head-to-head. Run both on your own workload.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pin the version, not the latest
&lt;/h2&gt;

&lt;p&gt;On InferenceKey, the worker is the agent process on your GPU machine; it takes instructions from the platform and builds llama.cpp itself. Its default tag, &lt;code&gt;b9748&lt;/code&gt;, predates Clover. Pinning this one workload (a model deployment) to v0.9.0 solved it. The first compile for the GPU took 4 min 50 s. From then on, the endpoint (the URL your code calls) was ready in 11.7 seconds. The worker also needed three CUDA build variables it does not set yet; the example lists them.&lt;/p&gt;

&lt;p&gt;Credit: DiffuSpace built Clover and published the files, Alibaba's Qwen team made the base, Maphist0 wrote the llama.cpp support the maintainers released in v0.9.0, and Zirui Wu is building the SGLang path. We first saw the model on the AI Search channel. Our part was the patch and the measurements.&lt;/p&gt;

&lt;p&gt;The patch, the exact &lt;code&gt;llama-server&lt;/code&gt; command, the timings and the full memory ladder are in the &lt;a href="https://inferencekey.com/research/clover-diffusion-llm-one-gpu" rel="noopener noreferrer"&gt;Clover-35B-A3B write-up on inferencekey.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gpu</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Serving Hy-SimulMT live on one 48 GB GPU: the startup spike, the FP8 trap, what to measure</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Fri, 13 Nov 2026 06:36:34 +0000</pubDate>
      <link>https://dev.to/inferencekey/serving-hy-simulmt-live-on-one-48-gb-gpu-the-startup-spike-the-fp8-trap-what-to-measure-3j64</link>
      <guid>https://dev.to/inferencekey/serving-hy-simulmt-live-on-one-48-gb-gpu-the-startup-spike-the-fp8-trap-what-to-measure-3j64</guid>
      <description>&lt;p&gt;Hy-SimulMT is Tencent Hunyuan's open model for live Chinese and English interpreting, licensed Apache-2.0. One model both hears and translates, so output can begin while the speaker is mid-sentence. SimulInfer, a small service from the authors, cuts incoming audio into 1.6-second blocks and assembles the partial outputs. Behind it, vLLM (the open-source server that loads the weights onto the GPU and answers requests) runs the model through the authors' &lt;code&gt;simulst&lt;/code&gt; plugin.&lt;/p&gt;

&lt;p&gt;We ran the FP8 Interleave build on one RTX 6000 Ada 48 GB on our cloud. FP8 means the weights are stored as 8-bit numbers, which brings the files down to 32 GB. Interleave means the output also carries a transcript of the original speech. Four read clips went in at speaking speed, and first words came back 2.3 to 5.5 seconds in. The &lt;a href="https://inferencekey.com/research/hy-simulmt-live-speech-translation" rel="noopener noreferrer"&gt;full Hy-SimulMT test on one 48 GB card&lt;/a&gt; holds every table and command. Below is what you hit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Startup needs the whole card, whatever cap you set
&lt;/h2&gt;

&lt;p&gt;Once serving, the translator sat at 38 GB of the 48, hinting that a 32 GB card might do. Startup says otherwise.&lt;/p&gt;

&lt;p&gt;Before it accepts requests, vLLM pushes dummy audio through the audio encoder (the part of the model that turns sound into something the language part can read) to see how much room is left. That check filled the card, 48,510 MiB, in every run, before usage dropped back. With the authors' 16,384 batched tokens (the input vLLM may process in one step), it profiled 3,276 dummy audio items and printed thousands of out-of-memory warnings before recovering. Dropping &lt;code&gt;--max-num-batched-tokens&lt;/code&gt; to 4,096 did not remove the peak.&lt;/p&gt;

&lt;p&gt;Next we capped the server at 32 GB with &lt;code&gt;--gpu-memory-utilization 0.66&lt;/code&gt;, a shorter context (how much text the model keeps in view) and a single session. Translation kept its live pace, but startup still hit 47.4 GiB. The cap does not cover that peak, so a real 32 GB card such as an RTX 5090 could fail before serving anything. Size for 48 GB. Adding the voice clone, Qwen3-TTS-0.6B from Alibaba's Qwen team, puts usage at 48 GB instead of 38.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnwo9wfg1yx7gye45tlzf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnwo9wfg1yx7gye45tlzf.jpg" alt="Three tiles: sentences done 0 to 2 s after the speaker in the first Chinese clip, 37.4 GiB on one 48 GB RTX 6000 Ada (47.2 GiB with the voice clone), 20.5 GiB for the 4-bit build, not servable yet" width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SimulInfer rejects the FP8 build until it finds a manifest
&lt;/h2&gt;

&lt;p&gt;Point SimulInfer at the FP8 repo and the first error is in Chinese: it cannot identify the model's output format.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ValueError: 无法识别所选模型的输出格式...
# raised in model_discovery.py: no export_manifest.json,
# and the repo name is not in PROVIDED_CHECKPOINTS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SimulInfer only knows the full builds by repo name. Our custom backend (the code that installs and starts the services on the GPU) writes the missing &lt;code&gt;export_manifest.json&lt;/code&gt;, and then it starts. Upstream, this was still open at commit &lt;code&gt;7efcb18c&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The voice needs its own pin. vLLM-Omni 0.32.0 and 0.32.0rc1 both stop on an import error for &lt;code&gt;Qwen3TTSSpeakerEncoder&lt;/code&gt;. 0.31.0rc1 on vLLM 0.31.0 works, so the voice runs in its own environment beside the translator on vLLM 0.32.0.&lt;/p&gt;

&lt;p&gt;Check the language pair first. The model page tags 40 languages, yet SimulInfer throws a &lt;code&gt;ValueError&lt;/code&gt; for any direction except &lt;code&gt;zh-en&lt;/code&gt; and &lt;code&gt;en-zh&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Log every arrival, and read the complete flag
&lt;/h2&gt;

&lt;p&gt;"Latency" blurs two numbers. Time to first words depends on when the model judges it has heard enough. Block delay is how long the output for each 1.6-second block takes to arrive after that block's audio ends. Median block delay ran between 0.4 and 0.8 seconds across the four clips. At the 90th percentile it passed 1.5 seconds, and the worst block took 2.9. Timestamp each arrival, or the final text hides this.&lt;/p&gt;

&lt;p&gt;Quality depends on direction. We compared the output wording with human reference translations using chrF, a 0 to 100 score that counts shared character sequences. Into English, the two Chinese clips got 60.6 and 51.7. Into Chinese, the two English clips got 42.2 and 23.4.&lt;/p&gt;

&lt;p&gt;The clip at 23.4 is the warning. Two of its six sentences went missing, and a third reversed its meaning: "couldn't have included" came out as "could include". SimulInfer flagged that run with &lt;code&gt;complete=false&lt;/code&gt;, so have your client check that field. Missing output is easy to spot. A reversed negation reads as normal Chinese. Test English to Chinese on your own recordings first. The &lt;a href="https://inferencekey.com/research/hy-simulmt-live-speech-translation" rel="noopener noreferrer"&gt;per-clip timings and chrF scores for Hy-SimulMT&lt;/a&gt; also list the block delay percentiles and the whole-file runs.&lt;/p&gt;

&lt;p&gt;The authors report about 3 seconds of lag on long talks, using their StreamLAAL measure. Our lag figure is a rough approximation, not comparable. We did not reproduce their benchmarks or their comparison with human interpreters, and our sample was four read FLEURS clips, one session at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Send whole files unless someone is listening live
&lt;/h2&gt;

&lt;p&gt;Sent as one file, a clip of 50 to 56 seconds came back fully translated in about 26 seconds. For live use, stream PCM audio (raw, uncompressed samples) in short packets at real-time pace to SimulInfer's WebSocket.&lt;/p&gt;

&lt;p&gt;Our own API has a gap here. It takes a recorded file of up to about a minute, replays it at speaking speed and returns the arrival timeline at the end. A live mic has to talk to SimulInfer on the GPU directly for now. If you only need recorded speech turned into text, see our &lt;a href="https://inferencekey.com/research/nemotron-transcribe-instructable-asr-one-gpu" rel="noopener noreferrer"&gt;Nemotron 3.5 Transcribe test&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Tencent Hunyuan built the model, the &lt;code&gt;simulst&lt;/code&gt; plugin, SimulInfer, the TTS integration and the llama.cpp support for the 4-bit build. The Qwen team made Qwen3-TTS, served here through vLLM-Omni. Thanks also to the vLLM and llama.cpp projects, the SGLang-Omni team for their cookbook, Google for the FLEURS clips, and AI Search, whose news video pointed us to the model. Our part was the custom backend, the deployment and the measurements. Setup steps, the full memory ladder and all eight problems with their status are in the &lt;a href="https://inferencekey.com/research/hy-simulmt-live-speech-translation" rel="noopener noreferrer"&gt;Hy-SimulMT live speech translation write-up on inferencekey.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>gpu</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Serving Groot-19B-A3B at 256K on one RTX 5090: the memory budget and the thinking trap</title>
      <dc:creator>InferenceKey</dc:creator>
      <pubDate>Thu, 12 Nov 2026 06:37:15 +0000</pubDate>
      <link>https://dev.to/inferencekey/serving-groot-19b-a3b-at-256k-on-one-rtx-5090-the-memory-budget-and-the-thinking-trap-4b2</link>
      <guid>https://dev.to/inferencekey/serving-groot-19b-a3b-at-256k-on-one-rtx-5090-the-memory-budget-and-the-thinking-trap-4b2</guid>
      <description>&lt;p&gt;GrootTeam says its Groot-19B-A3B holds a 256K-token context on one RTX 5090, and labels that figure an estimate from memory sizes. A token is a word piece, and the context is how much text the model can see at once. We wanted a measurement, so we deployed the 20.9 GB FP8 build (weights stored in 8 bits to halve their size) with vLLM 0.32.0, the open-source server that runs the model, on one RTX 5090 on our cloud, using the authors' own settings.&lt;/p&gt;

&lt;p&gt;The estimate held: all 262,144 tokens of context started, and a 205,525-token prompt came back right. The lesson is how thin the margin is. The &lt;a href="https://inferencekey.com/research/groot-19b-agent-moe-one-card" rel="noopener noreferrer"&gt;full Groot-19B-A3B test on one RTX 5090&lt;/a&gt; has every number; below is what matters when you pick the card.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two lines in the budget: weights, then the notepad
&lt;/h2&gt;

&lt;p&gt;GPU memory pays for two things. The weights are a fixed cost. The KV cache is the model's notepad for the conversation so far, and it grows with every token of context you allow.&lt;/p&gt;

&lt;p&gt;Groot is a mixture of experts (MoE) cut down from the Qwen team's Qwen3.6-35B-A3B: about 3 billion of its 19 billion parameters work on each token, so it writes fast, yet the card must still hold all 19 billion. It inherits Qwen3.6's hybrid layout, where only 10 of its 40 layers write full notes for every token and the other 30 keep a short running summary. So the room for 256K comes from the weights dropping from 35B to 19B.&lt;/p&gt;

&lt;p&gt;On the 5090 the weights took 19.7 GiB. With &lt;code&gt;--gpu-memory-utilization 0.92&lt;/code&gt;, vLLM had 6.8 GiB left for the cache: room for 307,024 tokens, the full window plus about 45,000 spare. vLLM reports that as a maximum concurrency of 1.17x, meaning 1.17 full-length requests at once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0gaczmenoseolx4synxq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0gaczmenoseolx4synxq.jpg" alt="Same Groot-19B-A3B FP8 weights and vLLM command on one RTX 5090: at 32 GB the full 262,144-token context starts and a 205,525-token prompt is answered right; capped at 24 GB, vLLM refuses to start with 0.48 GiB free for context and a maximum of 9,648 tokens" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Trust the line vLLM prints, not the spec sheet
&lt;/h2&gt;

&lt;p&gt;No smaller cards were available, so we capped how much of the 5090's memory vLLM could use. That emulates a smaller budget. It is not a real smaller card.&lt;/p&gt;

&lt;p&gt;With a 24 GB budget and 65,536 tokens requested, the weights took 86% of the budget and vLLM refused to start:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ValueError: ... (1.66 GiB KV cache is needed, which is larger than the
available KV cache memory (0.48 GiB). Based on the available memory,
the estimated maximum model length is 9648.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That error answers "will it fit" with one figure: 9,648 tokens, against the 128K minimum the authors recommend. For this build, budget 32 GB. On a 24 GB card the authors suggest their 11.7 GB GGUF build (a format for llama.cpp), which we did not test.&lt;/p&gt;

&lt;p&gt;The 13.5 GB NVFP4 build (mostly 4-bit weights) at a 16 GB budget failed too, for another reason: a GPU kernel failed to compile at startup, a software fault and not a memory limit. Whether that build fits remains an open question.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap at runtime: it thinks before every answer
&lt;/h2&gt;

&lt;p&gt;Groot reasons before every reply, and the reasoning counts as output tokens. "The capital of Australia, in one word" cost 111 to 131 tokens before "Canberra" appeared. A 300-word essay produced 2,383 to 7,156 tokens over four runs; in the two runs we counted, 2,043 and 6,785 of them were thinking. If your &lt;code&gt;max_tokens&lt;/code&gt; is tight, replies get cut off before the answer starts.&lt;/p&gt;

&lt;p&gt;Per request, the authors switch thinking off with &lt;code&gt;chat_template_kwargs&lt;/code&gt;. Our API drops that field today, so thinking stays on. That gap is on our side and still open. Until it closes, start the server with thinking off by default; the article and the SDK example's README give the one-line flag.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to measure on your own card
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cache tokens available&lt;/strong&gt; once weights load (vLLM's startup log).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Peak memory on your longest prompt.&lt;/strong&gt; Ours reached 32,016 of 32,607 MiB on the 205K prompt. Run nothing else on that GPU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time to first token on a long prompt.&lt;/strong&gt; 34.6 seconds for 205,525 tokens, complete answer at 40.3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writing speed with and without the speed-up layer.&lt;/strong&gt; The authors ship a small extra layer that drafts two tokens ahead for the main model to check. With it: 262 to 304 tokens per second. Without: 170 to 211. The two measurements took different request paths, so read the roughly 25% gain as approximate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tool call shape.&lt;/strong&gt; Asked whether Lisbon or Oslo was warmer, it issued two parallel &lt;code&gt;get_weather&lt;/code&gt; calls in a single turn, then answered, 1.81 seconds end to end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A cold start took 611.5 seconds, mostly vLLM warming up the engine; a restart with that work cached on disk warmed up in 87 seconds. Our API showed no measurable overhead in the earlier &lt;a href="https://inferencekey.com/research/sage-a1-5-agent-one-gpu" rel="noopener noreferrer"&gt;Sage-A1.5 single-GPU test&lt;/a&gt;; it was not re-measured here.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not prove
&lt;/h2&gt;

&lt;p&gt;One GPU, one request at a time, our own prompts, a few runs each. A single correct answer from a hidden sentence shows the window works, not that the model reasons well over long documents. The agent scores are the authors' (52.1 on Terminal-Bench 2.1 against 43.8 for Qwen3.6-35B-A3B); apart from the two-call tool test, we ran no multi-step agent session. The &lt;a href="https://inferencekey.com/research/groot-19b-agent-moe-one-card" rel="noopener noreferrer"&gt;Groot-19B-A3B memory ladder and serve command&lt;/a&gt; in the appendix lists every rung we skipped.&lt;/p&gt;

&lt;p&gt;Credit to GrootTeam for the model, its four builds, the speed-up layer and the vLLM recipe, to the Qwen team for the base model, to the vLLM and FlashInfer projects for the server, and to AI Search, whose news video is where we found the model. We did the deployment, the tests and the measurements. The commands, tables and an SDK example that runs it on your own GPU are in the &lt;a href="https://inferencekey.com/research/groot-19b-agent-moe-one-card" rel="noopener noreferrer"&gt;full write-up of Groot-19B-A3B on one RTX 5090&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gpu</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
