# ai-muninn — Full Site Content # https://ai-muninn.com # Generated: 2026-11-27 # Articles: 221 This file contains the full text of all articles on ai-muninn.com. It is intended for AI tools that need complete site context. For the article index only, see /llms.txt. # Local Model Picker URL: https://ai-muninn.com/en/tools/local-models Traditional Chinese: https://ai-muninn.com/zh-TW/tools/local-models Updated: 2026-11-27 Choose coding, quick questions and vision, images, narration, transcription or video. Timings and outputs come from real runs; intermediate generation is illustrated. No model is called by the page. Text playback: 1 token ≈ 0.75 English words, approximate. Chinese uses roughly one character per token. Reading seconds = 10000 / prefill tok/s. Estimates do not establish complete task turnaround. Missing measurements remain unknown. ## DeepSeek V4.1 Flash Configuration: DeepSeek-V4.1-Flash-1017 / MiaAI EXL3 2.9bpw + ABLIT Engine: TensorFold TP=2 Job: Extended coding tasks and careful review Hardware: 2× ASUS Ascent GX10 / GB10 Generation: Code 111.5; Chinese 59.2 tok/s Prefill: 1590.55 tok/s (roughly 2K smoke test) Typical turnaround: Small-task median 26.9 s; one long task remained unfinished at 45 min. Historical related-family director runs: 5.4–10.7 min / 7–15 min; not finished films. Date: Published 2026-10-28; test day unrecorded Conditions: One request, temperature 0, up to 400 output tokens; three requests × three rounds, median. Prefill was a separate roughly 2K smoke test, not the same prompt. ## Qwen3.8 Flash-Next · 1 GPU Configuration: Qwen3.8-Flash-Next IQ3_S / resident single-GPU settings Engine: Strata 61b3fb5d (historical test; retained version 0.2.10) Job: Backup for code and diagnosis Hardware: 1× RTX 2080 Ti 22GB + 128GB RAM Generation: Code 89.2; Chinese 57.8 tok/s Prefill: not measured Typical turnaround: not measured Date: Published 2026-10-14; October test Conditions: Historical Strata build 61b3fb5d. One stream; 128K limit, 32768 resident KV; three coding runs, median; up to 650 tokens, thinking off. Prefill not measured. ## Qwen3.8 Flash-Next · 2 GPU Configuration: Qwen3.8-Flash-Next IQ3_S / historical dual-GPU settings Engine: Strata 61b3fb5d / layer split Job: Historical two-GPU configuration Hardware: 2× RTX 2080 Ti 22GB + 128GB RAM Generation: Code 98.7; Chinese 64.9 tok/s Prefill: 1544.74 tok/s (16K prompt) Typical turnaround: not measured Date: Published 2026-10-14; October test Conditions: Historical Strata build 61b3fb5d. 32K context, int8 KV, spec4; three-run median, up to 650 output tokens; 16K prefill. Settings differ from the single-GPU run. ## MiniCPM-V 4.7 Configuration: MiniCPM-V-4.7-35B-A3B / mix_q3gud_im Engine: llama.cpp b11588 Job: Quick questions, screenshots and routine review Hardware: 1× RTX 2080 Ti 22GB Generation: 111.5 tok/s (llama-bench); 96.0 at 32K depth Prefill: 1938 / 1896 / 1597 tok/s (512 / 8192 / 32768 tokens) Typical turnaround: not measured Date: 2026-10-14; published 10-16 Conditions: Initial llama.cpp b11588 text benchmark: 128 generated tokens, two runs. Generation 111.5 tok/s; 32K-depth result 96.0. Prefill 1938 / 1896 / 1597 tok/s at 512 / 8192 / 32768 tokens. The demonstration uses the 8K prefill rate. Later vision/KV settings were not retested. ## Swift 1.5 27B · NVFP4 Configuration: Swift 1.5 27B / locally converted NVFP4 (former) Engine: fastllm TP=2 + DFlash Job: Former daily assistant Hardware: 2× RTX 2080 Ti 22GB Generation: 153.95 tok/s Prefill: not measured Typical turnaround: not measured Date: 2026-10-08 Conditions: October 8: fastllm TP=2 + DFlash, three-run median for a 512-token coding output. Prompt length unrecorded; no prefill rate. ## Qwen3.6-27B · Q4_K Configuration: Qwen3.6-27B Q4_K (former; suffix unspecified) Engine: llama.cpp + MTP Job: Earlier single-GPU assistant Hardware: 1× RTX 2080 Ti 22GB / Ryzen 5 3500X / 16GB RAM Generation: About 30–40 tok/s (warm observation) Prefill: not measured Typical turnaround: not measured Date: Published 2026-06-22; test day unrecorded Conditions: Warm daily-agent observation, about 30–40 tok/s; context and exact task unrecorded. CPU load could reduce speed. Excluded from the simulation. ## Qwen-Image 2.1 Turbo Configuration: Qwen-Image 2.1 Turbo / 8 steps / qwen3vl_8b_int8_convrot TE Engine: ComfyUI / Turbo workflow Job: Illustrations, covers and starting frames Hardware: 1× RTX 2080 Ti 22GB Generation: 14.28 s/image (warm end-to-end median) Prefill: not applicable Typical turnaround: 14.28 s/image; warm end-to-end median, 12 prompts, 1024×1024 Date: 2026-11-23 Conditions: ComfyUI, eight steps, qwen3vl_8b_int8_convrot text encoder; narration resident. Twelve prompts, one image each, seed 20261123. Includes encoding, scheduling and polling. ## VoxCPM2 · Q8_0 Configuration: VoxCPM2 BaseLM Q8_0 Engine: llama.cpp-omni / GGUF Job: Narration Hardware: 1× RTX 2080 Ti 22GB Generation: 1.54 s/line (mean) Prefill: not applicable Typical turnaround: 1.54 s/line; mean of six lines, not one minute of narration Date: 2026-10-18 Conditions: llama.cpp-omni / GGUF. October 18 paired six-line test; variable line lengths. No one-minute real-time factor. ## Whisper large-v3-turbo Configuration: Whisper large-v3-turbo Engine: MLX Job: Transcription and subtitle alignment Hardware: Apple M4 / MLX Generation: One-minute audio time not measured Prefill: not applicable Typical turnaround: not measured Date: 2026-11-17 (accuracy) Conditions: November 17 accuracy test: 45 Chinese + 17 English utterances, 59 distinct scripts. No traceable time for one minute of audio; no extrapolation. ## Pika-H3 Turbo Configuration: Pika-H3 Turbo LoRA / MiniMax-H3 Engine: ComfyUI / Pika-H3 Turbo Job: Short shot previews Hardware: 1× RTX 5090 32GB Generation: 16.3 s/5 s clip (warm) Prefill: not applicable Typical turnaround: 16.3 s/5 s clip; warm single example, 864×480 Date: 2026-11-04 Conditions: ComfyUI, same starting frame and seed, one warm run per configuration. No estimate of variance or general quality. ## LTX-2.5 Configuration: LTX-2.5 / 8+3 steps Engine: ComfyUI Job: Short clips with Chinese dialogue Hardware: 1× RTX 5090 32GB Generation: 28.67 s/about 5 s clip (full workflow) Prefill: not applicable Typical turnaround: 28.67 s/about 5 s clip; one full run, 1280×704, 121 frames Date: 2026-09-11 Conditions: ComfyUI, 8+3 steps, single-speaker Chinese dialogue. Different output size from Pika; no direct speed ratio. Image output: eight illustrative denoising steps, 14.28-second warm end-to-end median across twelve 1024×1024 prompts. The 1.5-second preparation phase is illustrative. Video output: a real five-second 864×480 greybox-assisted silent clip. The 16.3-second timing is a different-image first-frame-only warm single run; this clip was not timed separately. Narration: playback is Chinese. The 1.54-second mean covers six lines; the playback line was not timed separately. Synthesis and waveform reveal are illustrative. Why these assignments: https://ai-muninn.com/en/blog/local-ai-model-guide --- # [Claude Code] Claude Picked an OEIS Sequence Stuck Since 2017 and Added Two Terms: 8×8 in 8.5 Hours URL: https://ai-muninn.com/en/blog/oeis-a285765-queens-graph-new-terms Date: 2026-11-28 Series: AI Workflow (Part 34) import YouTubeEmbed from "@/components/YouTubeEmbed"; Claude Opus 5.5, running in Claude Code, picked an OEIS sequence nobody had extended since 2017 and computed two new terms. A285765 counts the ways to place queens on an n×n board so that they all connect. On one 24-core CPU, a(7) = 562,919,128,262,041 took about 7 seconds and **a(8) = 18,446,595,092,102,706,804 took 8.5 hours**, where checking all 2^64 placements one by one would take about 2,700 years. The method: count the placements that don't connect instead, enumerate only the first group of queens, and add up everything after it with 2^k − 1. Both terms are now in OEIS. --- ## Asking Claude to find an open problem on OEIS I could be using Claude to discover something new. Instead I kept having it make weird images and weird characters. So I asked it: what could you do that I'd find interesting but would never think to ask for? One answer: find a math problem whose answer isn't published yet, and compute it. The place to look is OEIS, the On-Line Encyclopedia of Integer Sequences, a database of number sequences and the terms found so far. Entries tagged with the keyword `more` need more terms. You can search for them directly: https://oeis.org/search?q=keyword:more&fmt=json Claude skipped the famous ones, like Dedekind numbers (A000372) and Wieferich primes (A001220), and looked for entries that were obscure, short and untouched for years. It came back with five: A285765, A287071, A165143, A030446 and A400997, the last one added on 2026-11-14. It chose A285765, connected subgraphs of the queens graph. It had 6 known terms, 1, 15, 495, 64815, 33478163, 68694593248, and nobody had extended it since 2017. Its siblings went much further: the king version, A286139, is listed to 16 terms, and the rook version, A286189, to 50. The program attached to the entry checks every subset one at a time. Before it started, I stopped it: had anyone done this already, and what would we get out of it? The entry was last revised on 2025-02-16 and still had 6 terms, and I found no a(7) anywhere else. The payoff is one line in OEIS, with no money and no theorem attached. What I wanted was the process. ## What A285765 asks: how many queen placements connect A chess queen moves along rows, columns and diagonals, in eight directions, as far as it likes. Pick some cells on an n×n board and put a queen on each. Two queens reach each other if they share a row, a column or a diagonal. A queen sitting between two others doesn't block them here. A placement is connected when the queens form one piece: you can get from any queen to any other by hopping between queens that reach each other. One queen alone counts, and so does a full board. Anything that splits into separate pieces is disconnected. The question is how many connected placements an n×n board has. Formally, it's the number of connected induced subgraphs of the n×n queen graph. ![A 7×7 board with one queen; the cells it reaches along its row, column and diagonals are yellow, and a second queen on a yellow cell is connected to it](/blog-images/oeis-a285765-queens-graph-new-terms/queen-reach.jpg) Start with 2×2. Each of the four cells has a queen or doesn't, so there are 2^4 = 16 placements. Drop the empty board and 15 are left. On a 2×2 board every cell reaches every other cell, so all 15 are connected. a(2) = 15. On 3×3 there are 2^9 = 512 placements, or 511 without the empty one. Only 16 of them are disconnected: 8 with two queens and 8 with three. 511 − 16 = 495. ![All 511 queen placements on a 3×3 board laid out in a grid, with the 16 disconnected ones in red](/blog-images/oeis-a285765-queens-graph-new-terms/three-by-three-red.jpg) 4×4 has 65,535 placements, 720 of them disconnected, so the answer is 64,815. 5×5 gives 33,478,163 and 6×6 gives 68,694,593,248. ## Why brute force can't reach 8×8 The obvious method is to check every placement. An 8×8 board has 64 cells, so there are 2^64 = 18,446,744,073,709,551,616 placements. Checking all 2^36 placements of 6×6 took 317.9 seconds on 24 threads. Scale that rate up and 7×7, with 2^49 or about 5.6×10^14 placements, takes about 30 days. 8×8 takes about 2,700 years. Both are constant-rate estimates, not actual runs. ## How three ideas cut 2,700 years to 8.5 hours ### Idea one: count the placements that don't connect Queens reach far, so almost every placement connects. The known terms showed it. On 6×6, only 2^36 − 1 − a(6) = 24,883,487 placements fail to connect (the −1 is the empty board). On 5×5 it's 2^25 − 1 − a(5) = 76,268. On 8×8 the count turned out to be 148,981,606,844,811, about 1 in every 123,819 placements. So the program counts the disconnected placements and subtracts them from 2^(n²) − 1. That still means finding 149 trillion placements, each one exactly once. ### Idea two: follow only the first group Take three queens on a 3×3 board: top-left, middle-right and bottom-middle. The top-left queen reaches neither of the other two, so this placement is disconnected. It has two groups: the top-left queen alone, and the other two, which share a diagonal. ![Four steps on a 3×3 board. Step 1: queens at top-left, middle-right and bottom-middle don't connect. Step 2: the first queen in reading order, top-left, is boxed in gold; its group is the first group. Step 3: every cell it reaches is crossed out, leaving two green cells. Step 4: any mix of the green cells with at least one queen gives 2 × 2 − 1 = 3 placements](/blog-images/oeis-a285765-queens-graph-new-terms/first-group-steps-en.jpg) Every disconnected placement splits into groups like that. Read the board like a page: the top row left to right, then the next row down. The first queen you meet belongs to one group, the first group. Every disconnected placement has exactly one first group, so sorting by it never counts anything twice. Once the first group is fixed, two kinds of cells are off limits: cells it reaches, because a queen there would join it, and cells before the first queen, because a queen there would become the first queen. The cells left over can still take queens. The figures and the video color them green. ![A board with the first group of queens fixed; cells it reaches and cells before its first queen are excluded, and the remaining green cells may still hold queens](/blog-images/oeis-a285765-queens-graph-new-terms/green-cells.jpg) In the 3×3 example, with top-left as the first group, only middle-right and bottom-middle stay green. Any non-empty set of green cells gives a disconnected placement with that first group. Two green cells give 2^2 − 1 = 3 placements: one cell, the other, or both. With k green cells that's 2^k − 1 placements, and none of them has to be listed. With 18 green cells, 2^18 − 1 = 262,143 placements go into the total in one step. ### Idea three: stop when the green runs out As the first group grows, the green shrinks. Once it's gone, no second group can fit, however many queens join the first, so the program drops that whole branch. Queens cover so much ground that the green runs out after only a few of them. ## The whole method on a 3×3 board, in ten steps Cells are named by position: top-left, top-middle, top-right, middle-left, center, middle-right, bottom-left, bottom-middle, bottom-right. Ten first groups have green cells left: 1. Top-left alone. Green: middle-right and bottom-middle, so 2^2 − 1 = 3. Running total 3. 2. Top-left and top-right. Green: bottom-middle, so 1. Total 4. 3. Top-left and bottom-left. Green: middle-right, so 1. Total 5. 4. Top-middle alone. Green: bottom-left and bottom-right, so 3. Total 8. 5. Top-middle and middle-left. Green: bottom-right, so 1. Total 9. 6. Top-middle and middle-right. Green: bottom-left, so 1. Total 10. 7. Top-right alone. Green: middle-left and bottom-middle, so 3. Total 13. 8. Top-right and bottom-right. Green: middle-left, so 1. Total 14. 9. Middle-left alone. It can't reach top-right, but top-right comes before it, so that cell is out too. Green: bottom-right only, so 1. Total 15. 10. Middle-right alone. Green: bottom-left only, so 1. Total 16. The center reaches every cell, and a queen in the bottom row reaches every cell after it, so neither leaves any green. The ten steps add 3, 1, 1, 3, 1, 1, 3, 1, 1, 1 = 16, and 511 − 16 = 495, the known answer. ![The ten first groups on a 3×3 board, each with its green cells and its contribution, adding up to 16](/blog-images/oeis-a285765-queens-graph-new-terms/ten-steps.jpg) ## Results: a(7) in 7 seconds, a(8) in 8.5 hours Everything ran on one AMD EPYC 7402 (24 cores), with 24 threads and no GPU. The program is C with OpenMP. Each set of cells is a single 64-bit integer, one bit per cell, so an 8×8 board uses all 64 bits. The second column is the real work: how many first groups the program visited. | Board | First groups walked | Time | Answer | |---|---|---|---| | 3×3 | 10 | — | 495 | | 4×4 | 340 | — | 64,815 | | 5×5 | 43,296 | — | 33,478,163 | | 6×6 | 16,964,861 | 0.01–0.02 s | 68,694,593,248 | | 7×7 | 22,675,282,126 | 6.79 s | 562,919,128,262,041 (new) | | 8×8 | 112,872,055,914,761 | 30,460 s (8.5 h) | 18,446,595,092,102,706,804 (new) | On 8×8 it visited about 3.7 billion first groups per second. 148,981,606,844,811 placements are disconnected, so a(8) = 2^64 − 1 − 148,981,606,844,811. On 7×7 the disconnected count is 30,825,159,270. ## How to check an answer with nothing to compare against These numbers weren't published anywhere, so there was nothing to compare against. Claude checked them four ways. - **Brute force on small boards.** Up to 6×6, checking every placement agrees with the new method on all six terms. - **A second program that searches in a different order.** It renumbers the cells at random, follows the group of the last queen instead of the first, branches in a different order and uses an explicit stack. Its partial sums look nothing like the first program's, and the totals match to the last digit. 7×7 also matched with a second random numbering and a different split of the work. On 8×8 the second program took 74,617 seconds, 20.7 hours. - **Known sequences as regression tests.** Switched to the rook graph (rows and columns only), the same code reproduces A286189: 1, 13, 397, 55933, 31450861, 67253507293. Switched to the king graph (one step in any direction), it reproduces A286139: 1, 15, 388, 37196, 14765089. - **A rough sanity check.** Nearly every disconnected placement has one queen sitting isolated. An estimate from that case alone lands about 0.18% off the real count on 8×8, 0.7% on 7×7 and 2.0% on 6×6. The weak spot: both programs rest on the same idea, so if it has a hole, both are wrong the same way. The idea itself is only fully checked up to 6×6. 7×7 never got a brute-force run (about 30 days by my estimate), and there's no third, mathematically different method. ## Submitting AI-assisted results to OEIS Work started on 2026-11-25, and a(7) came out that day. The first 8×8 program finished on the 25th and the second on the 26th. On 2026-11-26 I submitted a(7) and a(8) to OEIS under my name, and after editor review they went live the same day: https://oeis.org/A285765 The code and run logs are public: https://github.com/coolthor/queen-graph-connected-subgraphs Claude picked the problem, came up with the method, wrote the programs and designed the checks. I made it check whether anyone had done this first, learned the method well enough to explain it myself, and submitted it under my name, so I'm responsible for it. I read the OEIS rules on AI before submitting. The gist: you have to understand the work and take responsibility for it; replies to editors must be written by you, not pasted from an AI; an AI is never listed as an author; and mass submissions need permission first. ## How to try this yourself in five steps 1. Search OEIS for `keyword:more`. Pick something obscure, short and untouched for years; skip the famous ones. 2. Before any code, check when the entry was last revised, whether someone has published new terms elsewhere, and what you'd get out of it. 3. Have the AI reproduce the known terms with the dumbest possible method before it proposes a clever one. 4. Implement the new method twice with different traversal orders, compare the totals, and write down which assumptions the two programs share. 5. Read the platform's AI policy in full before submitting, and make sure you can explain the method yourself. ## Deep dive: the formula, reproduction commands and raw output You can skip this section; nothing above depends on it. It has what you need to rerun the numbers, or to hand this page to a model and ask it questions. ### The counting formula ``` D = Σ_C (2^|F(C)| − 1) a(n) = 2^(n²) − 1 − D ``` D is the number of disconnected placements. C runs over every first group whose green set is not empty. F(C) is the green set: the cells numbered after the smallest cell in C that are neither in C nor reached by C. |F(C)| is the number of cells in it. ### One more pruning rule If a cell reaches every cell in F, adding it to the first group is certain to leave no green cells, so that branch is ruled out before it starts. On 7×7 this made the run 18% faster, with the same result. ### First groups visited versus disconnected placements The number of first groups walked comes to about 0.74–0.76 times D: 0.736 on 7×7 and 0.758 on 8×8. ### Reproducing the runs You need gcc and OpenMP. ```bash make OMP_NUM_THREADS=24 ./anchor 7 OMP_NUM_THREADS=24 ./maxbin 7 2024 OMP_NUM_THREADS=24 ./brute 6 ``` `anchor` is the main program, `maxbin` is the second program (its second argument, 2024 here, is the seed for the random cell numbering), and `brute` checks every placement. ### Raw output The main program's lines for 7×7 and 8×8: ``` method=A n=7 disconnected=30825159270 a=562919128262041 nodes=22675282126 seconds=6.79 method=A graph=queen n=8 disconnected=148981606844811 a=18446595092102706804 nodes=112872055914761 seconds=30459.83 threads=24 ``` `nodes` is the number of first groups visited. ### Checkpoints and resume The 8×8 runs can stop and resume from a checkpoint file. The second program's checkpoint holds partial sums for 2,931,426 tasks. Adding them up again from the file gives 148,981,606,844,811. ### The run-time estimate that went wrong The first time estimate sampled one task in every 2,000, and a few very large tasks threw it off. The programs now keep a live count of progress instead. --- # [Guide] Which Local AI Model for Which Job: What We Actually Run (Updated as We Switch) URL: https://ai-muninn.com/en/blog/local-ai-model-guide Date: 2026-11-27 Series: AI Workflow (Part 33) For a model recommendation, open the [Local Model Picker](/en/tools/local-models). Choose a task to see the hardware, measured speed, typical wait and sample outputs. ## [Local Model Picker →](/en/tools/local-models) This guide explains the choices behind that tool: what each model has done in our workflow, what replaced it, and which comparisons remain incomplete. ## Multi-step jobs vs. single questions A coding task can require opening files, editing code, running checks and responding to failures. DeepSeek handles those extended runs and careful reviews; Qwen Flash-Next is the backup. The surrounding software gives the model file and program access. I still inspect the checks and the final report before accepting the work. For a screenshot, a brief explanation or routine review, I use MiniCPM. Combining text and vision on one older GPU leaves another card free. A fast stream of tokens tells me how quickly text appears. Whether an assistant follows through on a job requires a separate test.
### How our text and vision lineup changed The GB10 systems moved from [Qwen3.5-35B](/en/blog/dgx-spark-vllm-qwen35-setup) to [DeepSeek-V4-Flash](/en/blog/dgx-spark-deepseek-v4-flash-context-memory-engineering), then to [DeepSeek V4.1 on two systems](/en/blog/deepseek-v41-flash-dual-dgx-spark-tensorfold). A faster engine ran out of memory on large requests along the way; I [reverted that deployment](/en/blog/hikari-ds4-oom-rollback). On the older GPUs, the sequence was [single-card Qwen3.6](/en/blog/modded-2080ti-22gb-local-agent), [two-card fastllm with locally converted NVFP4 weights](/en/blog/fastllm-dual-2080ti-nvfp4-self-quant), and [single-card MiniCPM](/en/blog/minicpm-v47-35b-a3b-one-2080ti). The final daily two-card model was Swift. MiniCPM took over routine questions and screenshots, freeing a card for the backup. Later memory changes allowed vision and long text to fit together. Model details are on the [MiniCPM model page](https://huggingface.co/openbmb/MiniCPM-V-4.7-35B-A3B); Qwen runs through [Strata](https://github.com/Niko1221/Strata); the [single- and dual-card deployment record](/en/blog/strata-flashnext-dual-2080ti) keeps the earlier configurations and diagnosis test together. ### Images: inspect the output before choosing the faster workflow Qwen-Image Turbo makes our news illustrations. MOSS-Image remains an alternative. Mage was quicker in the same batch but scored lower, so I removed it. A later MOSS acceleration test covered fewer prompts; its old quality score cannot be attached to the new timing. I inspect important Traditional Chinese lettering and typeset exact captions afterward. ![Original image workflow comparison, with the smaller MOSS follow-up separate](/blog-images/local-ai-model-guide/images-en.png) Measurement note: November 23, twelve prompts, one 1024×1024 image per prompt, one blinded MiniCPM-V judge. Qwen scored 96.75/100 at a 14.28-second warm median; Mage scored 79.33/100 at 5.83 seconds; the original MOSS workflow scored 91.50/100 at 37.04 seconds. The accelerated MOSS follow-up took 12.04 seconds across only three fixed prompts. These scores do not measure lettering accuracy. The [earlier MOSS lettering experiment](/en/blog/moss-image-traditional-chinese-comic-cards) records a different test. ### Video: preview the shot, then check dialogue separately Pika-H3 Turbo is my first choice for a quick shot preview. I try LTX when Chinese dialogue matters, then listen to the full clip for missing words and speaker changes. For a prescribed camera move, I supply frames from a simple 3D scene; the [greybox camera experiment](/en/blog/pika-h3-flex-rtx5090-whitebox-orbit) shows the method. ![Matched preview timing and historical dialogue examples](/blog-images/local-ai-model-guide/video-en.png) Measurement note: November 4, identical first frame, seed and five-second 864×480 output. One warm run each took 38.0 seconds for H3, 20.8 for Flex and 16.3 for Turbo. In September 11 dialogue examples, single-speaker CER was zero for both LTX and H3; two-speaker CER was 9.52% and zero. Those dialogue outputs had different sizes and one example per setting, preventing an overall quality ranking or direct speed ratio. ### Speech: synthesis and checking have different jobs VoxCPM2 Q8 generates narration. Whisper on M4 through MLX transcribes it and helps align subtitles. I listen to every line and compare subtitle timing with the original audio. Giving the recognizer the intended script could hide a spoken mistake, so the check runs without that hint. Vox Q4 was quicker in the paired test, but later occasionally garbled entire lines. I returned to Q8 without claiming a measured failure rate. Whisper made fewer transcription errors in our test. I kept it without treating a comparison across hardware as a pure model speed ranking. CPU transcription uses Qwen3-ASR GGUF separately; earlier FP32 scores do not describe that setup. ![Vox precision choices and unprompted transcription results](/blog-images/local-ai-model-guide/speech-en.png) Measurement note: October 18, six paired lines, mean synthesis time 1.38 seconds for Q4 and 1.54 for Q8. November 17, 45 Chinese and 17 English utterances including repeated closings: Whisper reached 8.08% CER and 8.67% WER; Ming BF16 reached 10.27% and 18.97%. The utterances were not 62 independent scripts. There is no traceable timing for a one-minute recording. See the [narration implementation](/en/blog/voxcpm2-news-shorts-narration-2080ti) and [Whisper repository](https://github.com/openai/whisper). ## Deep dive: replacement candidates and measurement limits You can use the picker without this section. It records why promising candidates did not replace the daily assistants and how the demonstrations estimate time. ### A question score does not establish follow-through Bonsai did better on hard questions but often spent its output allowance thinking when diagnosing real failures. Answers remained unfinished; disabling thinking led to repeated lookups. Inkling improved when allowed extra computation, but the question test did not establish that it would complete daily work better. ![Historical repository repair results](/blog-images/local-ai-model-guide/coding-en.png) Measurement note: April 17–20, GB10, the same scaffold and all 300 [SWE-bench Lite](https://www.swebench.com/) issues per model. Qwen solved 145, Gemma 26B solved 116 and E4B solved 50. The [repair experiment](/en/blog/swe-bench-scaffold-transfers-three-models) records historical results, not the current assignment order. ![Bonsai diagnostics and Inkling repeated computation](/blog-images/local-ai-model-guide/reasoning-en.png) Measurement note: November 26, Bonsai answered 82/110 hard questions versus an earlier MiniCPM Q8 baseline of 75/110. Incident diagnostics scored 2/21 against 9/21 rubric points, seven tasks worth three points each. November 22–23, [Inkling](/en/blog/inkling-varloop-5090-2080ti) answered 39, 46 and 46 of the same sixty questions with one, three and five passes. The [older Bonsai GPU timing](/en/blog/ternary-bonsai-2-27b-one-2080ti) is a separate measurement from the later capability test on another GPU. ### What the time estimates mean Generation measures output tokens per second. Prefill measures processing of the supplied prompt before generation. The picker uses the approximation “1 token ≈ 0.75 English words, approximate” for its English passages. The Chinese demonstration uses roughly one character per token. Neither animation calls a model. Image, video and narration outputs are real; intermediate generation is illustrated. Calculation: reading seconds = 10000 / measured prefill tok/s; generation seconds = estimated passage tokens / generation tok/s. Read and generation measurements may come from separate tests. Single- and dual-GPU settings also differ. These calculations cannot establish a complete coding task's turnaround. That field uses recorded work durations and stays “not measured” when no record exists. Image timing is a warm end-to-end median, speech timing a six-line mean, and video timing a single example with its output size and input conditions retained. We do not extrapolate a one-minute transcription time. ## Update log - **2026-11-27:** Moved the quick reference into the standalone Local Model Picker; this guide now explains the workflow assignments. - **2026-11-27:** Added turnaround records, token rates and demonstrations, later moved to the picker. - **2026-11-27:** First edition, recording daily assignments, replacement evidence and test limits. --- # [Benchmark] Antigravity Orchestrator and /swarm on my coding tickets: same score, 1.2 to 7.7 quota points URL: https://ai-muninn.com/en/blog/antigravity-orchestrator-swarm-real-work Date: 2026-11-23 Series: AI Workflow (Part 32) Antigravity is Google's AI coding tool. I compared three modes on two jobs: build an inventory ledger and fix a parcel app with planted bugs. All scored 100%. Below are the parcel results; quota is a share of my plan's five-hour limit: - **One model, working alone:** handles the whole job. Fastest and cheapest: 163 seconds, 1.2%. - **Orchestrator:** one model plans, another edits. 475 seconds, 4.2%. The saving was about a third when the baseline was Neon at its highest thinking level. - **/swarm:** agents work in parallel; one checks. Average: 460 seconds, 7.7%. Each setup ran 1–3 times. These results compare time and quota, not coding ability. --- ## Antigravity turns a text request into code changes Antigravity is Google's AI coding tool: I give it a request, and it reads files, edits code, and runs tests. Its updates offer two ways to divide that work among models. I wanted to know how much of my allowance they consumed on actual engineering tasks, beyond what a demo could show. The model lineup starts with Hydrogen, the fast, economical daily option. Neon sits in the middle. Google positions Carbon for the hardest long-running work; my plan did not include it. ## Orchestrator passes work between two models in one conversation ![Orchestrator alternates between a planner and an executor in one conversation.](/images/antigravity-orchestrator-swarm-real-work/orchestrator-en.png) [Orchestrator](https://antigravity.google/docs/models#orchestrator) keeps one conversation and assigns different jobs to a planner and an executor. The planner explores the problem, makes a plan, and reviews the work. The executor searches files, changes code, builds, and tests. When the executor gets stuck, control returns to the planner. Only one is active at a time. ## /swarm runs separate worker conversations in parallel ![Swarm coordinates parallel workers and a verifier through a shared board.](/images/antigravity-orchestrator-swarm-real-work/swarm-en.png) With [Swarm](https://antigravity.google/docs/swarm/), my request goes to a coordinator. It splits independent work among named workers, each with its own conversation. A verifier reads their changes, runs tests, and returns problems to the worker who made the change. All assignments, questions, and results go through a shared board. A monitor prompts members to resume if the whole team falls silent before finishing. Each conversation consumes quota when it works; waiting while idle uses no tokens. ## What I asked the agents to build and repair The first assignment was to build a small shop’s inventory ledger from scratch. The shop’s purchases and sales arrive in three kinds of files: a table exported from a spreadsheet, a file with one record per line, and an old-style text file with fixed-width columns. The agent got a specification and a few empty files. It had to write a program that reads all three formats into one ledger, counts repeated copies of a record once, and rejects records that share an ID but disagree about what happened. Here is the purchase-and-sale example from the specification: buy 2 units at 1.125 each, then 3 at 2.50 each, then sell 4 at 4.00 each. The program must work out what the sold units originally cost the shop. The rule is to sell the oldest stock first. Take both units from the first purchase, then two from the second. Multiply the units taken from each purchase by its price and add them up: **Cost = 2 × 1.125 + 2 × 2.50 = 7.25.** Revenue is 16.00; subtract the cost to get a profit of 8.75. The one unit left on the shelf has a purchase cost of 2.50. That example checks the arithmetic. I also checked the rules around it: keep full precision until rounding the final money amounts to cents, with halves rounded up; order same-day transactions by ID (a, b, then z here); and reject a sale if there is not enough stock at that point. A later purchase cannot cover an earlier shortage. ![A shopkeeper takes older stock from the front of a shelf while three different record sheets feed into one ledger](/images/antigravity-orchestrator-swarm-real-work/task-inventory-en.jpg) The second assignment started with someone else’s parcel shipping app: 23 files, five bugs to fix, and one feature to add. These were the bugs: - Adding one business day to Friday returned Saturday. It should skip the weekend and return Monday. - A shipping fee of 0.005 rounded down. It should round up to 0.01. - Postcodes beginning with zero went to the wrong route. For example, 00123 must keep its leading zeros and match route 00. - The dispatch plan put low-priority parcels first. Higher-priority parcels should go first. - Sending two different orders under the same request ID silently returned the first order. The second must be rejected without changing existing data. The new feature was **all-or-nothing batch shipping**. If any parcel has a problem, the whole batch stays put and no stored data changes. Shipping the valid parcels and leaving the rest behind would fail the assignment. ![One questionable parcel holds the entire batch inside the dispatch doorway; a calendar arrow skips from Friday over the weekend to Monday](/images/antigravity-orchestrator-swarm-real-work/task-parcel-en.jpg) How did I score them? Each task had 40 automated checks the agent could not see. Each supplies an input and checks the answer: do those purchases and sales produce a cost of 7.25? Does Friday plus one business day return Monday? Scores depend on the checks passed. The reference solution scored 100, an empty program scored 0, and the unmodified parcel app scored 16.25. Solo models and Orchestrator received the same tasks; Swarm also attempted the parcel app. Every run started from the same files, with the hidden checks kept out of reach. The [earlier benchmark](/en/blog/pi-dsh-hermes-local-model-ticket-benchmark) has the task and scoring details. I ran Antigravity CLI 1.5.14 on November 23 with my personal account. CLI means command-line interface: I sent requests through terminal commands. Each configuration had only one to three runs. I did not test the desktop app. All 16 valid engineering runs scored 100. These tasks therefore cannot rank the modes' coding capabilities. They can show how much time and quota each mode spent reaching the same score. ## Solo Hydrogen already scored 100 The cheapest solo configuration passed everything. Orchestrator and Swarm reached the same score while generally adding quota use and waiting time. My plan provides an allowance for each five-hour window. Here, a “percentage point” means one hundredth of that full allowance consumed by a job. On the parcel task, solo Hydrogen at **high** effort took **163 seconds and 1.20 quota points**. Swarm averaged **460 seconds and 7.71 points**, about **6.4 times as much quota**. The chart adds Orchestrator to the comparison. Shorter bars mean less waiting or less quota consumed. The /swarm row averages two runs. ![All three modes scored 100 on the parcel task. A single model took 2m 43s and 1.2% of the five-hour allowance, the fastest and cheapest; Orchestrator took 7m 55s and 4.2%; /swarm averaged 7m 40s and 7.7%, the most quota.](/images/antigravity-orchestrator-swarm-real-work/result-en.png) The chart covers Gemini's five-hour allowance only. Extra Argon weekly usage in the second Swarm run stays separate. Some workers also reported a different model; I include those records and the comparison at the same reasoning effort in the deep dive. Quota snapshots can jump, so these readings describe usage trends rather than exact bills. ## How I would choose a setup after 16 passing trials My first question is whether the returned code passes my own checks. A passing result lets me keep the cheaper setup; a failure gives me a reason to try the next one. - **Start with solo Hydrogen high when the specification and acceptance tests are clear.** It passed both tasks; the parcel run took 163 seconds and 1.2% of the five-hour allowance. - **Move to a stronger model or a higher reasoning setting after an acceptance check fails.** The high and xhigh settings control reasoning effort, with xhigh higher; Neon took 386 seconds at high and 547 at xhigh on the parcel task, with no score gain. - **Try Orchestrator for work that already requires solo Neon xhigh.** My Neon xhigh planner and Hydrogen xhigh executor used 4.06 versus 6.00 quota points across three matched pairs, about 32% less quota and 17% less time; against Neon high, the pairing took longer and showed no quota saving. - **Save /swarm for larger jobs with independent pieces you can check separately, such as unrelated packages or investigations.** On this single parcel ticket it used 3.8 times the quota of solo Hydrogen xhigh at the same requested effort, with no score gain; larger jobs remain untested. - **Record /usage before and after a run, then read the report and run the tests yourself.** Beyond the 16 valid engineering trials, 19 setup attempts were invalid and still consumed quota, and I saw SUCCESS returned without a report. ## How quickly would these jobs use up the quota? Back-to-back jobs drain the allowance quickly, especially at the highest reasoning setting or with `/swarm`. Starting full and repeating the parcel task, solo Hydrogen high would last about 3.8 hours, Neon at its highest reasoning setting about 2.5 hours, and `/swarm` about 1.7 hours. All fall short of five hours. These are projections from the parcel readings; I did not run them to exhaustion. Over 11 supplemental runs in 49 minutes, Gemini weekly remaining fell by 7.45 percentage points. Each swarm member uses quota, and one run also drew 6.06 points from Argon's separate weekly allowance. Points from different allowances cannot be added. Check `/usage` before choosing the highest reasoning setting or `/swarm`. The [deep dive](#exhaustion-estimates-and-weekly-quota-limits) has the calculations and individual readings. ## Try a small test-repair task with these flags (optional) If you want to try it, start in a disposable working copy with tests you can run yourself. These prompts are demonstrations; the measurements above used the two benchmark tasks. The command flags are the ones I actually used. You can change the wording to describe your own acceptance checks. Before running, I prepared `settings.json` to allow the commands the job needed. The command below does not create that file. Ask your coding assistant to prepare scoped permissions for the project, then try the commands first; a denial can cancel the entire conversation. This setup runs headless, meaning without interactive prompts. ```bash agy -p "Fix failing tests in tests/ without editing test files; write changes and checks in report.md." --model gemini-pro-orchestrator-neon --mode accept-edits --settings ./settings.json --output-format stream-json --print-timeout 0 ``` `--model` selects the model or Orchestrator pairing; `--mode accept-edits` lets it edit files directly. `--settings` loads the prepared permissions file; this is the syntax I used in CLI 1.5.14. For the Swarm demonstration, prefix the same simple request with `/swarm` and ask for a verifier: ```bash agy -p "/swarm Fix failing tests in tests/ without editing test files; write changes and checks in report.md. Use @verifier to review the changes and run tests." --model gemini-4-hydrogen-xhigh --mode accept-edits --settings ./settings.json --output-format stream-json --print-timeout 0 ``` `--print-timeout 0` removes the waiting limit; `--output-format stream-json` emits events. I used them together, without testing their effects separately. My initial command without that combination returned within a few seconds. With both, the preflight waited 97 seconds for the worker and verifier to finish. The documented timeout default is already zero and applies to the current turn. These flags do not guarantee that the whole swarm has finished; I still check each member. I read usage before and after each job with: ```bash agy -p "/usage" --output-format json ``` For the same five-hour bucket, keep both raw snapshots and read `remaining_fraction`, the fraction of allowance left. Quota points equal `(before remaining_fraction − after remaining_fraction) × 100`. These floating-point readings can be noisy and nonmonotonic. They are not billing records. A `SUCCESS` result can survive a denied command or cancellation. I still checked the actual files, test results, and `report.md`, and confirmed that the workers and verifier had finished. ## Deep dive: matched baselines, every run, and the discarded attempts You can skip this section and still use the workflow above. I kept 28 valid runs across the two rounds: 16 engineering runs and 12 document-checking runs. This is the evidence behind the comparisons, including where I initially compared different effort levels. ### Exhaustion estimates and weekly quota limits For the parcel task, I can estimate how long a full five-hour allowance would last under continuous use. Assume a fresh 100% allowance, repeated identical jobs, no pauses or other usage, and a fixed consumption rate. Ignore resets until that allowance is exhausted. With `q` measured in percentage points per job and `t` in seconds: ```text quota-equivalent jobs = 100 / q hours to exhaustion = (100 / q) × t / 3600 ``` The last column shows the estimated hours until the allowance runs out. Quota points are displayed to two decimals and seconds to whole numbers; the calculations use the original readings. | Parcel setup | Five-hour quota per job | Seconds per job | Rounded quota-equivalent jobs | Hours to exhaustion | |---|---:|---:|---:|---:| | Hydrogen high | 1.20 pp | 163 | 83 | 3.8 | | Neon xhigh | 6.00 pp | 547 | 17 | 2.5 | | Swarm | 7.71 pp | 460 | 13 | 1.7 | These are rounded quota equivalents, not guaranteed completed jobs. Neon xhigh works out to about 16.67 jobs, so the seventeenth may not finish. Normal work includes review and pauses; I did not measure how much those extend a session. These estimates describe the parcel runs within this two-task experiment, not coding work in general. The weekly allowance is harder to estimate reliably. During 11 supplemental runs on November 23, from 07:03:22 to 07:51:49 Taipei time (UTC+8), Gemini weekly remaining fell from 71.06% to 63.61%, a drop of 7.45 percentage points. Argon weekly remaining fell from 85.75% to 83.21%, a drop of 2.54 points. I do not have the initial raw weekly reading for the full experiment. Even the five-hour readings do not reconcile exactly: summing the per-run changes gives 24.3634 points, while subtracting the session endpoints gives 23.5633. Concurrent usage is unknown. I cannot reliably attribute the entire weekly change to these jobs or derive a weekly-to-five-hour conversion from these readings. The second swarm run also consumed 6.06 points from the separate Argon weekly bucket. Each active member consumes quota; percentage points from different buckets must stay separate. ### The grader had a ceiling, and every valid run reached it L1 builds an inventory-ledger CLI from a specification, with 8 public and 40 hidden tests. L2 modifies a 23-file parcel service: five bugs plus one feature spanning modules, with 185 public and 40 hidden tests. The reference solutions scored 100%, the empty skeleton 0%, and L2's original buggy version 16.25%. The earlier benchmark explains the tickets and scoring in detail; I kept that setup rather than introducing a new score here. Seconds and reported tokens below are rounded to whole seconds and thousands; quota deltas are rounded to two decimals. Averages and ratios in this article are computed from the unrounded readings, so a few differ in the last digit from what the rounded table gives. Orchestrator means Neon xhigh planner plus Hydrogen xhigh executor. For `/swarm`, Hydrogen xhigh was the requested conversation model, each run had six conversations, and the reported tokens cover **the coordinator only**. The CLI's `total_tokens` field excludes the separately reported cache-read field in this dataset. I could not obtain a reliable worker total. | Method | Task / repeat | Seconds | Reported tokens | Five-hour delta (pp) | |---|---|---:|---:|---:| | Neon high | L1 / run 1 | 501 | 135K | 3.69 | | Neon high | L1 / run 2 | 531 | 150K | 2.48 | | Neon high | L2 / run 1 | 386 | 133K | 3.23 | | Neon xhigh | L1 / run 1 | 735 | 214K | 5.59 | | Neon xhigh | L1 / run 2 | 723 | 195K | 6.42 | | Neon xhigh | L2 / run 1 | 547 | 175K | 6.00 | | Orchestrator | L1 / run 1 | 601 | 205K | 4.00 | | Orchestrator | L1 / run 2 | 586 | 208K | 3.99 | | Orchestrator | L2 / run 1 | 475 | 228K | 4.21 | | Hydrogen high | L1 / run 1 | 249 | 123K | 1.65 | | Hydrogen high | L1 / run 2 | 280 | 136K | 1.25 | | Hydrogen high | L2 / run 1 | 163 | 108K | 1.20 | | Hydrogen xhigh | L2 / run 1 | 262 | 166K | 1.83 | | Hydrogen xhigh | L2 / run 2 | 294 | 180K | 2.20 | | /swarm | L2 / run 1 | 384 | 149K (coordinator) | 7.94 | | /swarm | L2 / run 2 | 535 | 191K (coordinator) | 7.49 | ### Why did changing the baseline reverse my Orchestrator result? In the first round I asked the question I would naturally ask at work: is Orchestrator better for me than the Neon high setting I already use? The initial summary said it was 17% slower and used more quota. That was a useful adoption comparison, but I was also reading it against Google's claim about replacing an expensive planner-only run. Those are different questions. The picker showed both Orchestrator roles at xhigh. My solo baseline was high. I added solo Neon xhigh runs on the same tasks and paired L1's first and second runs and L2's run. Dividing the total elapsed time for those three Orchestrator runs by the total for their solo Neon xhigh counterparts gives 0.83. Against **solo Neon xhigh**, Orchestrator was now about 17% faster, with about a third less observed five-hour quota. None of the original high runs changed; I only swapped what I compared them against. The initial 17%-slower summary and the later task-grouped 1.15–1.23 range also aggregate the high comparison differently, so I keep them labelled rather than treating them as identical statistics. Effort alone consumed a substantial part of the budget. Neon xhigh took about 1.41 times as long as high, with roughly 1.9 times the quota. Hydrogen xhigh versus high on L2 took 1.71 times as long, with a 1.68 quota ratio. That latter quota gap is only about 0.81 points, smaller than the roughly 1.2-point difference between the repeated Neon high L1 readings. I report it as a ratio of these observations, not a stable quota multiplier. All of these settings earned the same score. The 32% Orchestrator comparison has three matched pairs, a different planner from Google's Carbon experiment, and different tasks. It supports trying the Neon planner/executor split when Neon xhigh is the baseline. It does not validate the 24% quota saving reported for Carbon-based Orchestrator on Terminal-Bench 4.1 in Google's [Hydrogen announcement](https://antigravity.google/blog/gemini-4-hydrogen-in-google-antigravity). ### Requiring source quotes produced no fabricated answers in either check I also ran a grounded checking task on three supplied documents: the earlier article and the two experiment summaries. Argon medium and Neon medium each ran each version three times. I wanted to see what happened when a question had no supported answer. | Check | Questions per run | Argon medium | Neon medium | |---|---|---|---| | Version 1, explicitly allow abstention | 6 answerable + 6 unrelated missing topics | 18/18 missing answers declined | 18/18 missing answers declined | | Version 2, require quotes and sources | 4 answerable + 8 related but undocumented details | 24/24 missing answers declined | 24/24 missing answers declined | Version 1 explicitly told the model to say so when the documents didn't contain an answer. Its missing topics were wholly absent, so abstaining was easy. For version 2 I removed that instruction and asked for a quote and source. The topics were now present, but the requested detail was missing: a release date, the next version number, an exact error message, a settings key, or the name of someone relaying a claim. In version 2, each model produced zero invented answers and zero invented quotes on its 24 missing-detail questions. Across all six version-2 runs, 72 of 72 submitted quote checks matched the supplied documents verbatim. Those quote checks cover the whole response set; they are not 72 answered missing-detail questions. I did not test asking from memory without documents, and this cannot establish that either model never fabricates. ### Permission and isolation problems led to 19 discarded attempts The discarded attempts explain why the copyable flags are only part of the setup. `find` piped to `sort`, `git status`, and `shasum` were blocked by missing permissions. Tests written by the agent also put temporary files outside the working copy. I fixed the per-run allowlist and temporary directory placement before counting replacement runs. I discarded 19 runs during setup. None of the follow-up runs had to be discarded. My settings allowed reads and writes in the working copy, Python and tests, file inspection, and read-only Git commands. I kept temporary test files inside the copy by setting `TMPDIR`, `TMP`, and `TEMP` there, and used an outer operating-system guard to block other experiment directories and the hidden grader. Copying this command does not recreate that guard. The operating-system guard also denied seven attempts to read CLI-generated stdout files outside the working copy. Those were blocked reads, not hidden-test access, but recovering from them may have affected latency. A missing terminal-device permission caused other setup failures. I exclude these attempts from the score and timing table rather than count a cancelled conversation as a quick completion. ### Swarm shared the workspace as documented, but some workers reported a different model The guide says “Workers share your workspace by default.” All six conversations in each of my two swarm runs used the same working directory. I did not observe isolated worktrees in these runs. It also says “Workers run on the same model as your conversation.” In the second run, the tester, verifier, and monitor metadata showed `gemini-4-argon-high`, and the Argon weekly bucket dropped 6.06 percentage points. My prompt had not asked for a model change. This happened in one of the two runs; I did not determine why. It limits the comparison to a requested Hydrogen xhigh swarm, rather than a proven homogeneous Hydrogen team. ### Fixed run order, small samples, and noisy quota readings I used a fixed run order, one to three observations per cell, and only one task at each level. Permissions were expanded during setup; I did not rerun all earlier successful baselines after adding read-only Git inspection. One baseline came after a quota refresh, with a different cache age. The effective worker mix differed in the second swarm. Quota reads were occasionally non-monotonic, and Neon high's two L1 drops differed by about 1.2 points. Differences on that scale do not support a reliable quota claim. Across the experiment, including setup failures, the Gemini five-hour allowance fell to 1.4% and I waited for one refresh. The initial Gemini weekly display showed 99%; the final recorded fraction was 63.61%. The account readings include setup failures, so they do not isolate usage by the valid runs in the table. My next comparison would need harder tasks with room above the solo score and a randomized run order. Also in this series: [Same local model, different coding harnesses](/en/blog/pi-dsh-hermes-local-model-ticket-benchmark). --- # [Benchmark] Inkling's Variable Loop on an RTX 5090: 48 Layers of Depth from 24, and 39/46/46 of 60 at 1, 3 and 5 Passes URL: https://ai-muninn.com/en/blog/inkling-varloop-5090-2080ti Date: 2026-11-22 Thinking Machines' Inkling 2 Mini has 24 physical layers, but its middle 12 run three times with the same weights, so each token gets 48 layers of depth from a roughly 20 GB checkpoint that fits on a 32 GB card. The research model, TML-d24-varloop-research, lets you pick 1 to 5 passes. On an RTX 5090 it got 39 of my 60 hard math and reasoning questions right at 1 pass, **46 at 3**, and 46 at 5, leveling off after 3, as most of the official benchmarks do. The cost is speed. On the 2080 Ti where I keep MiniCPM-V 4.7 always on, Inkling at 3 passes decodes at **38.7 tok/s**, about a third of MiniCPM-V 4.7's 108. That's the price of 7 more right answers. --- ## What Inkling is Thinking Machines released Inkling 2 Mini on November 20. Hugging Face's launch post describes it as built for local AI setups. It's a mixture-of-experts model: each layer has 128 experts, and each token is routed to 8 of them. That gives 26.4B parameters in total, with 3.4B listed as active per token. Because the middle layers run three times, the model card counts that as about 5.4B effective active parameters per token in Inkling 2 Mini. It takes text and images as input, writes text, supports a context of up to 1M tokens, and is licensed Apache 2.0. The weights ship in the precision they were trained in, NVFP4 and MXFP8 for the experts and BF16 for the rest, about 20 GB in all. There's nothing to quantize, and it fits on a 32 GB GPU or a 32 GB Mac. What sets it apart from other models is the loop. ## The problem the loop solves: depth without twice the weights A transformer works layer by layer, each one refining the output of the one before. More layers usually means a stronger model, but every layer is another set of weights to store, so the file and the memory footprint grow with it. On your own hardware, memory is usually the first wall you hit. Inkling 2 Mini reuses its middle 12 layers instead. It physically has 24 layers. The first 6 run once, the middle 12 run three times with the same weights, and the last 6 run once. That's 48 layer runs per token, the same as the larger Inkling 2 Small. Each pass starts from the output of the first 6 layers and reads what the previous pass produced. A small gate decides how much of each to keep, so every pass refines the one before it. The loop saves weights, not compute. All 48 layer runs still happen, and each pass keeps its own KV cache. Sharing weights shrinks the checkpoint, but it doesn't by itself make inference any faster. ## The research model adds a dial: pick the pass count Thinking Machines also released a research sibling the same day, [TML-d24-varloop-research](https://huggingface.co/thinkingmachines/TML-d24-varloop-research). The architecture is the same, but you choose how many times the middle section runs when you load it, anywhere from 1 to 5. 1 pass is 24 layer runs per token, 3 passes is 48, and 5 passes is 72. Each extra pass adds about 1.0B effective active parameters per token: 3.4B at 1 pass, 5.4B at 3 and 7.4B at 5. The file stays the same size. That turns "smarter or faster" into a load-time setting on a single file. The research model was trained at 1 to 5 passes, but mostly at 3, and post-trained at 3. Its model card reports scores at every pass count, and on most benchmarks the biggest jump is from 1 to 2 passes, with smaller or mixed gains after 3. There are exceptions: BrowseComp keeps climbing from 65.7% at 3 passes to 71.0% at 5. On SWE-bench Verified, for example, 1 to 5 passes score 56.3%, 76.5%, 78.7%, 79.3% and 79.6%. The card warns that because training favored 3 passes, other pass counts may be underrated, and that the research model's later training differs from Inkling 2 Mini's, so the two shouldn't be compared directly. All the tests in this post use the research model. Hugging Face's post says 1 or 2 passes run a lot faster with possibly slightly lower quality, but they didn't evaluate it in depth. That's what I wanted to measure on my own hardware: how many more right answers each pass buys, and how much speed it costs. ![Inkling's middle 12 layers run N times per token; layer runs per token and decode speed at 1, 3 and 5 passes](/blog-images/inkling-varloop-5090-2080ti/loop-passes-en.png) ## How to set the pass count **RTX 5090, vLLM.** The research model ships in its training precision: NVFP4 experts in the first 20 layers, MXFP8 experts in the last four, BF16 for the rest, about 19.5 GB. It needs no further quantization and fits on a 32 GB card. I used the Inkling vLLM image and set the pass count with `--hf-overrides`. This is my actual command under WSL2, minus a counting patch I mounted to verify the loop count and some cache paths. On native Linux you'd swap the two WSL lines for `--gpus all`. ```bash docker run --rm --name inkling-trial-server --network host --ipc host \ --device /dev/dxg -v /usr/lib/wsl:/usr/lib/wsl:ro \ -e LD_LIBRARY_PATH=/usr/lib/wsl/lib:/usr/local/cuda/lib64 \ -v /root/inkling-varloop-2026-11-22:/root/inkling-varloop-2026-11-22 \ vllm/vllm-openai:inkling-2-mini /root/inkling-varloop-2026-11-22/weights \ --served-model-name inkling-varloop --port 9498 \ --max-model-len 36864 --max-num-seqs 32 --gpu-memory-utilization 0.93 \ --reasoning-parser inkling --no-enable-prefix-caching --enforce-eager \ --language-model-only \ --hf-overrides '{"text_config":{"loop_num_passes":3}}' ``` **RTX 2080 Ti 22G, llama.cpp.** I used the [ggml-org GGUF](https://huggingface.co/ggml-org/TML-d24-varloop-research-GGUF) `TML-d24-varloop-research-IQ4_NL.gguf`: 17.6 GB, IQ4_NL experts in the first 20 layers, Q8_0 for the last four layers' experts and everything else, loop control in F32. I built llama.cpp from master (commit `afe77e18`) for sm_75 and set the pass count with `--override-kv`: ```bash llama-server -m TML-d24-varloop-research-IQ4_NL.gguf \ --host 127.0.0.1 --port 18122 -ngl 99 -fa on -t 24 --jinja \ -np 4 -c 147456 -ctk q8_0 -ctv q8_0 -b 1024 -ub 256 --fit off \ --override-kv inkling2_loop.loop.count=int:3 ``` That used 21,296 MiB of the card's 22 GB. Weights, a 36,864-token context for each of 4 slots, and a q8_0 KV cache all fit without offloading. To confirm the override actually changed something, I sent the same prompt with the same seed at 1 and 3 passes. The outputs differed, and decode dropped from 81.6 to 37.9 tok/s. On the 5090 I also counted calls into the looped layers: 1 and 3 per token. One more thing to know: by default the model writes out its reasoning before the answer, which matters for the real-task results in the Deep dive. ## Results on the 5090: 39, 46 and 46 right at 1, 3 and 5 passes The test set is 60 hard questions: 30 competition math and 30 reasoning, temperature 0, up to 32,768 output tokens. All 60 ran to completion on the 5090 at each pass count. Read the "Correct" column first, then the speed column next to it. | Passes | Correct (of 60) | Avg output tokens | Decode, 1 stream | Total time, summed per question | |---|---|---|---|---| | 1 | 39 | 9,871 | 76.7 tok/s | 141 min | | 3 | 46 | 8,388 | 31.6 tok/s | 272 min | | 5 | 46 | 7,702 | 19.9 tok/s | 390 min | Going from 1 to 3 passes gained 7 correct answers and the model wrote 15% fewer tokens. It still took about twice as long, because decode speed fell by more than half. 5 passes matched 3 on score and took 43% longer. That matches most of the model card: little left to gain past 3 passes. ## Head-to-head with MiniCPM-V 4.7 on my always-on 2080 Ti Then I put it up against a model doing a real job. My modded RTX 2080 Ti 22G runs MiniCPM-V 4.7 35B-A3B as an always-on local model; I set that up in [an earlier post](/en/blog/minicpm-v47-35b-a3b-one-2080ti) and [upgraded its llama.cpp](/en/blog/llama-cpp-upgrade-chunked-prefill-port) recently. Most of what goes to that card is short: classify this, score that, rewrite a headline. Its job is to answer fast, about 108 tok/s for a single request. In an earlier run on the 2080 Ti at its usual quant, MiniCPM-V 4.7 got 39 of the same 60 right, with the same grader and 32,768-token limit. Decode on the 2080 Ti is single-request, median of 9 runs: | Model on the 2080 Ti 22G | Hard questions correct (of 60) | Decode, 1 stream | |---|---|---| | Inkling research, 1 pass (IQ4_NL) | 39 (measured on the 5090) | 82.6 tok/s | | Inkling research, 3 passes (IQ4_NL) | 46 (measured on the 5090) | 38.7 tok/s | | MiniCPM-V 4.7 35B-A3B | 39 | about 108 tok/s | At 3 passes, where its score peaks, Inkling is 7 answers ahead and runs at 36% of MiniCPM-V 4.7's speed. At 1 pass it ties on score and is still 24% slower. The product Inkling 2 Mini always runs 3 passes, so the same 48 layer runs per token apply to it. I'd expect similar speed, though I didn't measure it. The 2080 Ti accuracy runs were cut off by a time limit (41 questions at 1 pass, 18 at 3), so the scores above come from the 5090. On the 18 questions the 2080 Ti finished at 3 passes, it got 14 right, the same count the 5090 got on those 18. The IQ4_NL quant didn't visibly hurt. So MiniCPM-V 4.7 stays on the always-on card. Short jobs need a fast reply, and it gives one at 108 tok/s. Inkling is worth starting when the question is hard enough that 7 more right answers out of 60 matter more than a slower answer, and the 5090 is the better place for it. I also tried Inkling on a small set of my real tasks. That attempt mostly measured interface problems, not ability, so it's in the Deep dive below. On seven incident-diagnosis replays, scored on the answer each model actually delivered, three of Inkling's ended in that interface failure and delivered nothing gradable. It still came to 10 of 21 against MiniCPM-V 4.7's 9 of 21, at a median 202 s per case against 102 s. ## Which quant I ran, and would a smaller one be faster? The 5090 ran the native NVFP4/MXFP8/BF16 checkpoint with no requantization. The 2080 Ti ran IQ4_NL at 17.6 GB, which already fits entirely in 22 GB. A smaller quant would make the file smaller. I don't think it would make the 2080 Ti much faster. This is an estimate from two measurements, not a test of a smaller file: - Going from 1 to 3 passes raises active parameters per token from 3.4B to 5.4B, **1.6x**. - It doubles layer runs per token, 24 to 48, **2x**. - Measured decode on the 2080 Ti fell from 82.6 to 38.7 tok/s, **2.13x**. The slowdown tracks the layer count, not the amount of weight data. If decode on this card were limited by reading weights, a 1.6x increase in weights read should cost about 1.6x. It cost more than 2x. My read is that most of the time per token goes to running each layer rather than reading its weights, but I haven't profiled it, so treat that as a hypothesis. The 5090 numbers point the same way. It has nearly 3x the 2080 Ti's memory bandwidth, yet at 1 pass it decoded slower (76.7 against 82.6 tok/s). It also ran with `--enforce-eager`, which turns off CUDA graphs and makes every layer launch cost more. Different framework and quant, so treat that as a hint, not proof. To match MiniCPM-V 4.7 at 3 passes, Inkling on the 2080 Ti would need to go 2.8x faster. I don't expect a quant change to get anywhere near that. If you want to try anyway, Unsloth publishes [Inkling 2 Mini GGUFs](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) from 7.8 GB (UD-IQ1_S) to 22.9 GB (UD-Q8_K_XL). Their table puts UD-Q2_K_XL at 9.1 GB with the same top token as Q8 91.6% of the time, against 97.7% for UD-IQ4_XS at 15.7 GB. Two notes from their README. The `Mainline_Support` files that keep NVFP4 scales need a llama.cpp build with PR #32704, which merged upstream on November 21; without it the second and third passes lose their expert scales and the output is wrong. And the DSpark draft model that ships with these GGUFs (0.4 GB, for speculative decoding) needs Unsloth's own llama.cpp build for now, since upstream PR #32218 is still open. Speculative decoding cuts the number of full model steps per token, so it's the speed lever I'd try first. I haven't tested it. ## Deep dive: real-task check, harness fixes, and measurement notes Skip this section if you only want the results; nothing above depends on it. It records what broke when I pointed Inkling at real work, and the details behind each number. ### Default thinking used up the short output limits My real-task set has 20 short text jobs taken from production: classification, news scoring, short Chinese-to-English labels, data extraction, and headline rewrites. Each job has the output token limit it uses in production: 250 for classification, 850 for scoring, 900 for rewrites, 1,800 for translation, 4,500 for extraction. The answers I compared against came from whichever model does that job today, run with thinking off. I ran Inkling with its default thinking on, same prompts, same limits. The reasoning and the final answer share one token budget, and the reasoning won: 17 of 20 answers at 1 pass and 16 of 20 at 3 passes hit the limit. On one classification question, 248 of the 250 tokens were reasoning and the final answer was empty. | Short jobs (20) | Machine check passed | Usable as-is (blind review) | |---|---|---| | Inkling, 1 pass | 3 | 1 | | Inkling, 3 passes | 4 | 1 | | Production models, thinking off | 12 | 4 | So "1 of 20" measures the setup, not the model. A fair rerun would turn thinking off, or test a higher limit separately. I didn't run it, because the speed gap had already settled the decision. ### Tool calls came back as unparsed text The other categories need tools: two code-patch tasks, seven incident replays, and two rule-file edits, run through a coding agent with `read` and `bash` tools. Inkling passed the tool smoke test (one `read` and one `bash` call in 12.6 s). On longer tasks, after 3 to 30 tool calls, the final reply was an unexecuted tool-call string instead of a call. vLLM reported no error and the agent saw a normal stop. One rule-file task ended after 9 tool calls with just this: ``` bash"}} ``` Another, after 11 calls (I shortened my local path to ``): ``` bash"name":"bash","args":{"command":"find /runs/inkling-p3/C2 -name \"*size*inventory*\" ..."}} ``` The server ran with `--enable-auto-tool-choice --tool-call-parser inkling --reasoning-parser inkling`, sampling at the model's default temperature 1.0. I couldn't tell whether the parser missed a valid format or the model emitted a broken one, so I count its ability on those tasks as untestable, not as zero. The incident replays below are the one place I report a score anyway, on what was actually delivered, so the failed replays count as zero there. Of the seven incident replays, four finished cleanly. Graded blind against MiniCPM-V 4.7 on root cause (0–2) and safe fix (0–1), the full set came to 10 of 21 against 9 of 21. Two replays got full marks from Inkling; none did from MiniCPM-V 4.7. ### Two harness bugs this run exposed Both were in my test harness, not in Inkling: 1. **A tool timeout left children running.** The agent's `bash` tool killed only the parent shell on timeout. A `find | grep | head` pipeline kept running and held stdout open. It now kills the whole process group. A 1-second probe ends in 1,007–1,011 ms with no leftovers. 2. **The sandbox could read the answer key.** On its first attempt at one rule-file task, Inkling's `find` reached that case's historical answer file and read two lines of it. I voided that run, blocked every path outside the candidate's own workspace, and reran it in a fresh session. Only the rerun counts. ### Measurement notes - **5090 runs used `--enforce-eager`.** No CUDA graphs, no torch.compile. These are the numbers for this configuration, not the framework's ceiling. - **Decode** is (completion tokens − 1) divided by the time from first to last content chunk, including reasoning tokens. Median of 9 single-stream runs (3 Chinese, 3 English, 3 code). - **Time per pass count**: I use the sum of per-question seconds (141 / 272 / 390 min). The 1-pass suite wall clock was undercounted after a resumed run dropped 488.7 s, and the suites ran at different concurrency (4 streams at 1 pass, 2 at 3 and 5), so wall clocks don't compare. - **Questions all three pass counts got right** (35): average output 3,288 / 2,472 / 3,028 tokens at 1 / 3 / 5 passes, average time 48 / 81 / 153 s. - **2080 Ti software**: llama.cpp master `afe77e18`, CUDA sm_75, Release. That build already includes PR #32704 (GitHub's compare view shows it 13 commits ahead of the merge, 0 behind). My GGUF also had no NVFP4 tensors, and both cards scoring 14 of the same 18 at 3 passes says the output was sane. - **2080 Ti 4-stream decode** at 3 passes: 12.9 / 15.2 / 21.7 / 19.9 tok/s per stream. In one 4-stream run, 3 streams produced 512 tokens with no visible content. I didn't track down why. --- # [Benchmark] Upgrading llama.cpp on an RTX 2080 Ti: Carry Chunked Prefill Forward and Short Requests Finish in 5.4 s URL: https://ai-muninn.com/en/blog/llama-cpp-upgrade-chunked-prefill-port Date: 2026-11-22 Series: 改裝 2080 Ti 22G (Part 30) I upgraded llama.cpp from b11588 to b12595 on a modded RTX 2080 Ti 22G. Decode got 3–10% faster and prefill 13% faster. But my hand-ported chunked-prefill patch didn't come with it: upstream ignores my `LLAMA_PREFILL_CHUNK` variable without a warning, and its own version (PR #10718) is still open. With a 30K-token prompt in flight, short requests took 16.8 s instead of 7.3 s. The upgrade only stays a win if you carry the 35-line patch forward. With it, short requests finish in **5.4 s**. --- ## Why I upgraded One modded RTX 2080 Ti 22G runs MiniCPM-V 4.7 35B-A3B for my family's chat server and a news pipeline. I set that up in [#25](/en/blog/minicpm-v47-35b-a3b-one-2080ti). It ran llama.cpp b11588 plus my own hand port of chunked prefill, switched on by an environment variable called `LLAMA_PREFILL_CHUNK`. That name is mine. Upstream has never heard of it. The chunk size of 64 came from a sweep in part 25. I tried 512, 256, 64, and 32. At 64 and 32, short requests came back within a second of each other, and the long request was only 3% slower. A month later llama.cpp was at b12595. I wanted to know two things: how much faster is it, and do I still need the patch? A few terms first. A **token** is the unit the model reads and writes, roughly a word piece, and tok/s is tokens per second. **Prefill** is the model reading the whole prompt before it writes anything. **Decode** is generating the answer one token at a time. **TTFT** (time to first token) is how long you stare at a blank reply before the first word shows up. My server runs 4 parallel slots, so up to 4 requests share the GPU at once. ## Decode is 3–10% faster on b12595, prefill 13% faster I ran the new build without my patch and compared it with the old build. Look at the 4-stream rows: that's where the gain is biggest. | Test (tok/s) | b11588 + patch | b12595, no patch | Change | |---|---|---|---| | Chinese, 1 stream | 102.89 | 105.65 | +2.7% | | Chinese, 4 streams (per stream) | 48.12 | 52.25 | +8.6% | | Code, 1 stream | 102.21 | 105.71 | +3.4% | | Code, 4 streams (per stream) | 47.97 | 52.69 | +9.8% | | 8K prompt prefill | 2080 | 2359 | +13% | Quality didn't move. The new build scored 129/140 on my evaluation set, same as the old one, and it read every receipt in the OCR check correctly. So far, a free upgrade. ## But short requests wait 16.8 s behind a long prompt Then I ran the test that matches real life at home. Someone pastes a long document. A moment later, someone else asks a short question. The test sends one 30K-token prompt, then three short prompts 0.15 s later. Look at the "short done" row: that's how long the person with the quick question waits. | Mixed load | b11588 + patch | b12595, no patch | |---|---|---| | Short requests, TTFT | 1.10 / 1.10 / 1.10 s | 2.02 / 15.50 / 2.02 s | | Short requests, done | 7.29–7.30 s | 16.75–16.99 s | | Long request, done | 22.55 s | 17.99 s | The long request got 4.5 s faster. Every short request waited about 10 s longer. One of them sat for 15.5 s before the first word appeared. ## Why: upstream ignores LLAMA_PREFILL_CHUNK, and PR #10718 is still open The new run still had `LLAMA_PREFILL_CHUNK=64` set. Upstream llama.cpp doesn't read that variable. So there's no error and no warning. It just does nothing. llama-server works in rounds. Each round it hands the GPU one batch of tokens, up to 2048 in my config. Without the patch, a long prompt fills the whole batch by itself every round. A 30K-token prompt takes about 15 rounds, and the short requests get no room in any of them. ![Two timelines: without the patch the long prompt prefills as one block and three short requests wait behind it; with the patch the long prompt is cut into slices and short requests decode between them](/images/llama-cpp-chunked-prefill/timeline-en.png) Upstream does have a chunked-prefill change: [PR #10718](https://github.com/ggml-org/llama.cpp/pull/10718). It was opened in December 2024. As of November 2026 it's still open. So upgrading llama.cpp means carrying the patch forward yourself. ## The fix: re-apply a 35-line patch to one file The patch touches one file, `tools/server/server-context.cpp`, in two spots. The diff is 35 lines. 1. While other requests are generating, admit at most `LLAMA_PREFILL_CHUNK` new prompt tokens per iteration. 2. If several requests are prefilling at once, split that iteration's budget evenly among them. Each one's cap is its share, with a floor of 8 tokens. After you clone llama.cpp (next step), save this as `chunkpp.patch` in the llama.cpp folder: ```diff diff --git a/tools/server/server-context.cpp b/tools/server/server-context.cpp --- a/tools/server/server-context.cpp +++ b/tools/server/server-context.cpp @@ -3941,6 +3941,19 @@ private: int32_t n_batch = llama_n_batch(ctx_tgt); int32_t n_ubatch = llama_n_ubatch(ctx_tgt); + // [local port of ggml-org/llama.cpp#10718] chunked prefill: while some slots are generating, + // cap the prompt tokens admitted per iteration so long prefills do not stall them. + // LLAMA_PREFILL_CHUNK= enables it (0/unset = upstream behaviour). + static const int32_t prefill_chunk = [] { const char * e = getenv("LLAMA_PREFILL_CHUNK"); return e ? atoi(e) : 0; }(); + if (prefill_chunk > 0 && batch.size() > 0) { + n_batch = std::min(n_batch, (int32_t) batch.size() + prefill_chunk); + } + int32_t n_slots_pp = 0; + for (auto & s_ : slots) { + if (s_.state == SLOT_STATE_PROCESSING_PROMPT || s_.state == SLOT_STATE_STARTED) { n_slots_pp++; } + } + const int32_t n_chunk_pp = (prefill_chunk > 0 && n_slots_pp > 1) ? std::max(n_batch / n_slots_pp, 8) : INT32_MAX; + auto & alora_scale = batch.alora_scale; auto & alora_disabled_id = batch.alora_disabled_id; @@ -4406,7 +4419,9 @@ private: const int32_t n_decision_first = slot.task->type == SERVER_TASK_TYPE_DECISION ? slot.task->decision.pos_first() : -1; // add prompt tokens for processing in the current batch - while (slot.prompt.n_tokens() < slot.task->n_tokens() && batch.size() < n_batch) { + int32_t n_cur_pp = 0; + while (slot.prompt.n_tokens() < slot.task->n_tokens() && batch.size() < n_batch && n_cur_pp < n_chunk_pp) { + n_cur_pp++; // get next token to process llama_token cur_tok = input_tokens[slot.prompt.n_tokens()]; if (cur_tok == LLAMA_TOKEN_NULL) { ``` If you've never built llama.cpp, you need git, CMake, and the CUDA toolkit. Clone the repo, check out the exact commit I used (`e46069c40`, build 12595), apply the patch, and build only the server: ```bash git clone https://github.com/ggml-org/llama.cpp cd llama.cpp git checkout e46069c40 git apply chunkpp.patch cmake -S . -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=75 -DCMAKE_BUILD_TYPE=Release cmake --build build --target llama-server -j 12 ``` `75` is the 2080 Ti's CUDA architecture. Use your own card's number. On other commits the line numbers may drift. If `git apply` fails, paste the two hunks in by hand. They're short. Then start the server with the variable set. Replace `model.gguf` with your model file: ```bash LLAMA_PREFILL_CHUNK=64 ./build/bin/llama-server -m model.gguf -np 4 -c 131072 -b 2048 -ub 512 -fa on -ngl 99 ``` Unset the variable, or set it to 0, and you get upstream behavior back. ## With the patch: short requests finish in 5.4 s, and 4-stream decode is 11% faster than the old build Here are all three builds side by side. Look at the "mixed, short done" row first, then the 4-stream rows. | Test | b11588 + patch | b12595 | b12595 + patch | |---|---|---|---| | Chinese, 1 stream (tok/s) | 102.89 | 105.65 | 108.48 | | Chinese, 4 streams (tok/s per stream) | 48.12 | 52.25 | 53.77 | | Code, 1 stream (tok/s) | 102.21 | 105.71 | 107.20 | | Code, 4 streams (tok/s per stream) | 47.97 | 52.69 | 53.18 | | 8K prompt prefill (tok/s) | 2080 | 2359 | 2390 | | Mixed, short done | 7.29–7.30 s | 16.75–16.99 s | 5.21–5.41 s | | Mixed, short TTFT | 1.10 s | 2.02–15.50 s | 0.70–0.88 s | | Mixed, long done | 22.55 s | 17.99 s | 19.53–19.77 s | Against the old build, Chinese 4-stream decode is up 11.7% and code 4-stream is up 10.9%. Single stream is up about 5%. With a long prompt in flight, short requests finish about 2 s sooner than they did on the old build. The cost is on the long request. It finishes 1.5–1.8 s later than on the unpatched new build. In exchange, each of the three short requests finishes about 11 s sooner. The patched build passed 39 of my 40 smoke-test questions. The unpatched new build also got 39 on the same 40. OCR was still correct. It's been live on the family server since 2026-11-21. ## Test your own server before and after every upgrade You don't need my patch to use this script. It sends one long prompt, then three short ones 0.15 s later, and prints when each one got its first token and when it finished. It's stdlib only, so there's nothing to install. Your server needs `-np` set to 4 or more, or the requests will just queue for a free slot. The `chat_template_kwargs` line turns off thinking for MiniCPM and Qwen-family models. If your model doesn't accept it, delete that line. ```python #!/usr/bin/env python3 """Send one long prompt, then three short ones 0.15 s later, to a llama-server. Prints how long each short request waits for its first token and to finish. Usage: python3 mixed_latency.py http://127.0.0.1:8080 [long_words] """ import json, sys, time, uuid, urllib.request from concurrent.futures import ThreadPoolExecutor BASE = sys.argv[1].rstrip("/") if len(sys.argv) > 1 else "http://127.0.0.1:8080" LONG_WORDS = int(sys.argv[2]) if len(sys.argv) > 2 else 20000 # roughly 1 token per word def ask(text, max_tokens): body = { "messages": [{"role": "user", "content": f"[{uuid.uuid4().hex}] {text}"}], "max_tokens": max_tokens, "temperature": 0.7, "stream": True, "cache_prompt": False, "chat_template_kwargs": {"enable_thinking": False}, } req = urllib.request.Request(BASE + "/v1/chat/completions", data=json.dumps(body).encode(), headers={"Content-Type": "application/json"}) t0, ttft = time.time(), None with urllib.request.urlopen(req, timeout=600) as r: for line in r: if not line.startswith(b"data: ") or line.strip() == b"data: [DONE]": continue choices = json.loads(line[6:]).get("choices") or [{}] if ttft is None and choices[0].get("delta", {}).get("content"): ttft = time.time() - t0 return ttft, time.time() - t0 long_text = ("The quick brown fox jumps over the lazy dog. " * (LONG_WORDS // 9) + "\nSummarize the text above in one sentence.") with ThreadPoolExecutor(4) as pool: long_job = pool.submit(ask, long_text, 128) time.sleep(0.15) shorts = [pool.submit(ask, "List three ways to save water.", 64) for _ in range(3)] for i, s in enumerate(shorts): ttft, total = s.result() print(f"short {i}: first token {ttft:.2f} s, done {total:.2f} s") print(f"long: done {long_job.result()[1]:.2f} s") ``` Here's my output on the live patched server with the default 20,000-word long prompt: ``` short 0: first token 1.48 s, done 5.75 s short 1: first token 1.48 s, done 5.75 s short 2: first token 1.48 s, done 5.75 s long: done 13.25 s ``` Rule of thumb: if a short request waits more than 10 s for its first token, or finishes close to when the long one does, your server is blocking. Mine finished its short requests 7.5 s ahead of the long one. --- ## Deep dive: test setup, the draft model, and rollback You don't need this section to use the patch. It's here for anyone who wants to reproduce the numbers or hand them to an AI along with their own setup. ### Measurement conditions The box is an EPYC with three modded 2080 Ti 22G cards. These tests used one card. The services on the other two kept running. Before stopping the family server, I rerouted the news pipeline and confirmed 60 s of zero traffic. The old build is tag b11588, commit `7f51953`. The model is MiniCPM-V-4.7-35B-A3B, a 15.5 GB Q3 mixed quant with a merged LoRA, plus the vision `mmproj`. I used the production flags: ```bash -np 4 -c 131072 -ctk q8_0 -ctv q8_0 -b 2048 -ub 512 -fa on --kv-unified ``` Requests went through `/v1/chat/completions` with thinking off, temperature 0.7, top_p 0.95, top_k 20, and max_tokens 512. In the mixed test, short requests used max_tokens 64 and the long one 128. Each request started with a random string and had `cache_prompt` off, and every request reported `cached_tokens` 0. Decode speed is (completion tokens − 1) ÷ (last token time − first token time). That keeps prefill out of the number. Single-stream tests ran 3 times, 4-stream tests ran 2 rounds, and I report medians. The b12595 + patch run was a separate session later the same day. I compared it with that morning's numbers for the unpatched new build. I didn't rerun the old build. **Why 102.89 tok/s here and 111.5 tok/s in part 25.** Part 25 used `llama-bench`, single stream, with no `mmproj` loaded. This post uses the production config through the API: 4 slots, q8_0 KV cache, vision loaded. Don't mix numbers across the two posts. The same goes for latency. Part 25's 3.2–3.8 s was how long a short request waited for its first token under a 90K-token prompt. This post's 7.3 s is the total time to finish 64 tokens under a 30K-token prompt. ### Why the long request gets 1.5–1.8 s slower While other requests are generating, the patch lets the long prompt read only 64 tokens per round. That's the point: the GPU spends the rest of each round on the short requests. The long request went from 17.99 s on the unpatched new build to 19.53–19.77 s with the patch. The old build took 22.55 s, so it's still faster than before the upgrade. If only one person uses your server, the patch doesn't help. Leave the variable unset and keep the 17.99 s. For all-long-document batch jobs, the second rule makes concurrent prefills split the budget. I haven't measured that case. ### DSpark draft model: still off on the new build Speculative decoding uses a small draft model to guess the next few tokens, and the big model checks the guesses in one pass. When the guesses are right, you get several tokens for the price of one. I retested MiniCPM-V's official DSpark draft (Q8_0, 424 MB) on b12595. Look at the Chinese 2-stream column: that's my family's normal load. | Draft setting | Chinese 1 stream | Chinese 2 streams | English 1 stream | Code 1 stream | VRAM peak | |---|---|---|---|---|---| | No draft | 105.65 | 82.31 | 105.54 | 105.71 | 17.8 GiB | | n-max 2 | 100.61 | 63.20 | 121.62 | 120.32 | 20.7 GiB | | n-max 3 | 89.84 | not measured | not measured | not measured | 20.9 GiB | | Default | 89.65 | not measured | not measured | not measured | 20.9 GiB | At n-max 2, English single stream gets 15% faster and code 14%. Chinese 2-stream drops 23%, and it costs 2.9 GiB more VRAM. At n-max 3 and at the default, Chinese single stream was 15% slower than no draft. That's also 13% slower than the old build, past my early-abort line, so I stopped those runs. The new default for `--spec-draft-n-max` is 3. In October it was 7. My family server is mostly Chinese and multi-user, so it runs with no draft. ### My SHA-256 check still points at the old binary A pre-start script, `verify.sh`, checks the SHA-256 of `llama-server`. It hard-codes the old binary's path. So the new binary wasn't blocked, but it also wasn't checked. I need to record a new hash for the new build. ### Downtime and rollback Trying the unpatched new build took the family server down for 17.75 minutes. The patched build trial took 3.96 minutes. To switch builds, I add a systemd drop-in that points the service at the new binary. To roll back, I delete the drop-in and restart the service. ### What I didn't test - I only ran the first 40 questions of the 140-question eval set (all GSM8K) on the patched build. - The mixed-load test covers one scenario (30K long + 3 short), with 1–3 rounds per build. - I only built the patch on `e46069c40`. Newer master is untested. --- Also in this series: [#25 MiniCPM-V 4.7 35B-A3B on One RTX 2080 Ti: 111.5 tok/s with Vision](/en/blog/minicpm-v47-35b-a3b-one-2080ti) · [#29 Qwen3.8-27B on One RTX 5090 With QEngine](/en/blog/qengine-rtx5090-qwen38-27b-wsl2) · [#21 Dual RTX 2080 Ti FastLLM: No More Head-of-Line Blocking](/en/blog/fastllm-dual-2080ti-concurrency-scheduler) --- # [Benchmark] Pi vs dsh vs Hermes on one local model: dsh used 1.97× Pi's input tokens on small tickets, and the gap closed on long ones URL: https://ai-muninn.com/en/blog/pi-dsh-hermes-local-model-ticket-benchmark Date: 2026-11-22 Series: AI Workflow (Part 31) I compared Pi, dsh, and Hermes on my local DeepSeek V4.1 Flash service. All passed the small tickets; dsh used 1.97× Pi's median input tokens, including cached input. Longer tickets changed the token ranking and exposed deadline and report failures. I am keeping Pi for daily work, testing Hermes on more long tasks, and retesting dsh's generation limit. These results cover my tasks and measured installations. --- ## Introduction: I needed a reason to change my daily ticket runner I use [Pi](https://github.com/earendil-works/pi) with a local model for coding tickets every day. A report that [deepseek-harness, or dsh](https://github.com/deepseek-ai/deepseek-harness), used roughly ten times the input tokens caught my attention. Switching the runner would affect my whole [ticket-based workflow](/en/blog/dispatch-tickets-not-conversations), so I wanted measurements from work I would actually assign. I added [Hermes](https://github.com/NousResearch/hermes-agent) and ran all three against the same DeepSeek V4.1 Flash service on my own machines, with two repetitions per task and harness. The results describe my November 22, 2026 installations, settings, and serving conditions. Other workloads, models, or settings may give different results. Small tickets gave me a clean starting point. Larger ones showed whether the differences survived sustained work. The result supports keeping Pi in place, with Hermes worth testing on more long tasks and dsh needing a targeted retest. ## Measure completed work against one model service A harness is the program around the model: it builds prompts, exposes tools, carries conversation history, and decides when to call the model again. Changing it can change token use even when the weights stay put. The useful question for my workflow was whether a runner could deliver correct files, finish within a deadline, and tell me what it had done. I used DeepSeek V4.1 Flash, served as `DeepSeek-V4.1-Flash-1017`, across two DGX Spark machines with tensor parallelism set to two. That splits model execution across both machines. The serving setup is covered in my [dual-Spark TensorFold article](/en/blog/deepseek-v41-flash-dual-dgx-spark-tensorfold). The measured installations were Pi 1.0.2, dsh 0.2.2-rc.1, and Hermes v0.23.1 on November 22, 2026. Those version numbers identify this experiment; they are not a claim about the latest releases. To reproduce the method on your own workload, prepare a model endpoint, a logging proxy, isolated task directories, and a grader that runs outside the agent. The proxy needs to capture actual request settings and server-reported usage. A terminal summary alone is insufficient because different clients account for cached input differently. I would set up a comparison in this order: 1. **Write acceptance criteria before running agents.** Choose representative tickets and build external checks, including hidden tests. Make a correct reference solution and an empty starting skeleton; verify that the grader gives them 100% and 0% respectively. 2. **Give each run a fresh workspace and configuration directory.** Block access to sibling workspaces and the public network. Agents should solve their own copy rather than discover another run's answer. 3. **Point every runner at the same service through the proxy.** Save request settings, usage, tool activity, and termination evidence. Preserve each harness's native behavior, and record the differences. 4. **Set a fixed deadline and repeat each cell.** When serving capacity permits, start the runners on the same task together. Record interference from shared load. Keep sequential trials labeled as sequential. 5. **Freeze and grade the files when the run ends.** Check that supplied test files are unchanged. For data-processing tickets, change the input and rerun the solution so a hardcoded answer cannot pass. 6. **Report score, termination, and final report separately.** Sum usage across every model request, including cached input. Retain the cost of failed runs in the totals. The final output should let you answer three independent questions. Are the files correct? Did the process finish on time? Is there a usable final report? An agent can satisfy the first condition while failing the other two. ## Small tickets gave dsh a 1.97× median input ratio I began with three short tasks: fix a bug and pass tests; read six Markdown documents and produce a factual report; and write a CSV-processing script that returned correct answers for both the original and perturbed data. Each harness ran each task twice, giving eighteen runs. All passed: Pi six of six, dsh six of six, and Hermes six of six. Compare the median input column first. It includes cached input and supplies the ratio in the title. | Harness | Median input tokens | Median output tokens | Median elapsed time | |---|---:|---:|---:| | Pi | 19,352.5 | 1,701.5 | 26.9 s | | dsh | 38,071 | 2,534.5 | 40.2 s | | Hermes | 58,365.5 | 1,815 | 41.4 s | Dividing dsh's median input by Pi's gives **1.97×**. Pi also had the lowest median elapsed time in this sample. Since all runs passed, the token differences describe how much model traffic each runner used to deliver accepted work. A different calculation, total tokens divided by completed tasks, gave Pi 22,755, dsh 41,506.8, and Hermes 72,127 tokens per task. Those are aggregate averages. They should not be read as medians or substituted into the input-only ratio. The motivation came from [Justin3go's preliminary dsh review](https://justin3go.com/en/posts/2026/08/15-deepseek-harness-review), which reported roughly 4.5K uncached input tokens for Pi and 47.6K for dsh in one person's trial. I did not have the original task and settings. My cached-inclusive totals measure something different, so they neither reproduce that comparison nor establish that it was wrong. ## Longer tickets made deadlines part of the decision Short scripts do not cover the work I need from a coding agent. I added two longer tickets and kept a 45-minute deadline for each run. **L1 built an inventory-ledger CLI** from a specification about one and a half to three pages long. It had to handle three input formats, merging, deduplication, and first-in, first-out inventory accounting. Eight public tests gave the agent feedback; forty hidden tests determined its score. **L2 changed an existing parcel service** with twenty-three files and 1,622 lines including tests. The ticket combined five bug fixes with a batch-shipping feature that crossed module boundaries. It had 185 public tests and forty hidden tests. Half the score came from the fraction of the five bugs repaired; the other half came from hidden-test performance. Two tasks, two repeats, and three runners produced twelve runs, started in four concurrent batches. For the decision, read perfect scores and clean exits together. The dsh count of 2/4 leaves out the run that stopped at 16.78 minutes with nothing implemented: | Harness | Mean score | Runs with a perfect score | Clean exits within the deadline | |---|---:|---:|---:| | Pi | 100% | 4/4 | 2/4 | | dsh | 75% | 3/4 | 2/4 | | Hermes | 100% | 4/4 | 3/4 | Pi and Hermes produced fully correct file snapshots in every long run. Hermes terminated within the deadline more often in this small sample. I'll test Hermes on more long tickets, though two runs per task aren't enough to establish statistical significance. Both of Pi's timed-out runs had already written a `STATUS: done` report well before the limit, then kept running extra checks until the deadline stopped them. The small-ticket token ranking also changed. Long runs accumulated millions of tokens across their requests. Their median total-token ratios were dsh/Pi 0.77–0.86 and Hermes/Pi 0.70–0.78. Those ranges account for missing final usage records, explained below. They do not make a low-token failed run a good result. My migration decision remains concrete: keep Pi in the workflow I already use, test Hermes on more long tasks, and rerun dsh's failing inventory task with its generation limit addressed. This is a comparison of my workload and installations. I would use the same method before changing the runner behind something like my [local AI news-video pipeline](/en/blog/local-ai-news-video-pipeline), where a missing report can leave downstream work waiting even when the files exist. ## Deep dive: accounting, grading repairs, and termination evidence You can skip this section and still use the procedure and results above. It records the controls and exceptions needed to interpret the numbers or build a comparable experiment. ### Cached input explained the small-run accounting mismatch The logging proxy provided a common accounting point. I summed server usage across all model requests in each run, including cached input, rather than trusting each harness's displayed total. Adding cached input back to the Pi and dsh summaries reconciled all eighteen small runs; Hermes already included it. Here are the individual small runs. A is the bug fix, B is the document report, and C is the CSV script. | Harness | Task/run | Input tokens | Output tokens | Seconds | Requests | |---|---|---:|---:|---:|---:| | dsh | A/1 | 25,738 | 971 | 19.2 | 6 | | dsh | A/2 | 25,086 | 878 | 18.7 | 6 | | dsh | B/1 | 31,194 | 2,072 | 34.9 | 7 | | dsh | B/2 | 44,948 | 3,167 | 47.8 | 9 | | dsh | C/1 | 57,979 | 4,706 | 69.4 | 9 | | dsh | C/2 | 49,305 | 2,997 | 45.4 | 9 | | hermes | A/1 | 88,669 | 1,452 | 37.9 | 12 | | hermes | A/2 | 56,159 | 844 | 31.0 | 8 | | hermes | B/1 | 54,320 | 1,873 | 40.2 | 8 | | hermes | B/2 | 44,651 | 1,757 | 42.6 | 7 | | hermes | C/1 | 115,573 | 4,252 | 68.7 | 13 | | hermes | C/2 | 60,572 | 2,640 | 46.5 | 8 | | pi | A/1 | 17,435 | 945 | 18.2 | 6 | | pi | A/2 | 21,270 | 948 | 19.7 | 7 | | pi | B/1 | 13,510 | 1,531 | 23.6 | 5 | | pi | B/2 | 13,657 | 1,872 | 30.2 | 5 | | pi | C/1 | 25,937 | 3,555 | 52.1 | 6 | | pi | C/2 | 32,017 | 3,853 | 51.5 | 7 | Total input across a run can exceed the model's context window because successive requests resend overlapping history. It is cumulative traffic, not the length of a single context. Token totals also do not directly express money: cached-token pricing, local capacity, and latency have separate consequences. The small trial was sequential. It did not use the later concurrent-batch design, and its order was imperfect: after calibration, Pi stayed first in the first round. I did not clear the service cache. Timing and cache exposure therefore need that qualification. Pi used medium reasoning in the small trial; dsh's small-trial setting was unspecified. Hermes started its own gateway. The first Hermes gateway was cleaned up afterward, outside that run’s timing; other runs included roughly a second of cleanup. These details limit fine-grained elapsed-time comparisons. ### The CSV grader needed a repair, not another model run A grader can reject valid work. Mine initially rejected a CSV answer because it contained an extra `by_order` field, even though the ticket allowed the output. I corrected the grader to match the acceptance criteria and regraded every existing output. I did not rerun the agents to obtain better answers. The CSV checks also perturbed the input and reran the script. That tested whether the submitted program computed the answer rather than merely emitting the original expected values. Checking unchanged test files supplied another control against a solution that passed by weakening its tests. Calibration runs were excluded from the comparison. One interrupted Pi calibration consumed 4,159 input and 278 output tokens. That was additional experiment setup usage, outside the measured ticket totals. ### Matching reasoning labels left native behavior different All long-run requests carried `reasoning_effort=medium` on the wire. Pi also had an 8,192-token thinking budget, while dsh had thinking enabled. These settings do not establish identical internal reasoning behavior. For Hermes, I disabled the experiment's safe mode so its native provider would load. Operating-system and tool restrictions remained in place, including the workspace and network boundaries. Pi exposed read, shell, edit, and write tools. The isolated dsh configuration disabled search, skills, subagents, and title generation. Hermes selected terminal/file tools but still exposed tool discovery. Native prompts and context defaults also differed, and existing memories, extensions, and production skills were not loaded. I wanted the behavior of each harness as used here, so those differences belong in the experimental conditions. The long-task graders passed their controls: correct references scored 100% and empty skeletons scored 0% on both tasks. The unmodified buggy L2 service scored 16.25%, showing why a passing subset of existing behavior was insufficient evidence of completing the ticket. Read the long-run records across score, termination, and report availability before comparing token totals. | Harness | Task/run | Score | Minutes | Requests/tools | Total tokens (K) | Exit status | |---|---|---:|---:|---:|---:|---| | dsh | L1/1 | 100% | 45.02 | 25/28 | 1266.9–1561.8 | Timed out | | dsh | L1/2 | 0% | 16.78 | 4/5 | 54.2 | Generation limit; no report | | dsh | L2/1 | 100% | 23.97 | 24/33 | 1060.0 | Exited | | dsh | L2/2 | 100% | 19.78 | 29/47 | 1248.2 | Exited | | hermes | L1/1 | 100% | 19.25 | 26/53 | 1045.9 | Exited | | hermes | L1/2 | 100% | 45.03 | 41/63 | 2687.7–3212.0 | Timed out | | hermes | L2/1 | 100% | 21.07 | 27/49 | 1019.5 | Exited | | hermes | L2/2 | 100% | 15.51 | 23/54 | 1044.6 | Exited | | pi | L1/1 | 100% | 45.02 | 32/32 | 1797.0–2092.0 | Timed out | | pi | L1/2 | 100% | 45.02 | 39/40 | 2106.8–2401.7 | Timed out | | pi | L2/1 | 100% | 22.36 | 23/31 | 891.0 | Exited | | pi | L2/2 | 100% | 14.37 | 15/21 | 450.2 | Exited | K in the table means one thousand tokens. Times slightly beyond 45 minutes include termination and cleanup. Four requests lacked final usage. For those requests, received usage supplies a lower bound and model and request limits supply an upper bound. I report intervals rather than replacing missing usage with an estimated midpoint. Shared service load and the absence of cache clearing remain part of the conditions. ### Perfect snapshots sometimes came from timed-out runs Four timeouts still scored 100% when I graded their files: both Pi L1 runs, dsh L1 repeat one, and Hermes L1 repeat two. Pi's timed-out runs had reports. The timed-out dsh and Hermes runs did not. The Pi timeline explains how correct work became a timeout. L1 repeat one wrote a `STATUS: done` report at minute 27.5; repeat two did so at minute 38.1. After writing those reports, the runs continued with audits, random tests, or temporary-file cleanup until the 45-minute limit. Later individual requests took 70–290 seconds, with observed contexts around 90–120K tokens on the shared, concurrently serving endpoint. Dsh L1 repeat one and Hermes L1 repeat two were still running tests or modifying their own added tests at the deadline, without reports. This affects how I would operate them. A correct snapshot is useful evidence of implementation ability, but a downstream dispatcher also needs a reliable end condition and handoff. Dsh's other L1 run stopped after 16.78 minutes, scored 0%, and had no report. Across its four requests, one response reached the 32,768-output-token cap; its native log recorded `max-tokens`. That supports generation-budget exhaustion as the explanation for the stop. It does not establish a context-window overflow, which is a different limit and would require different evidence. The observed maximum contexts across the long runs were approximately 96–124K tokens. The 262.1K figure in the summary was an upper bound, not an observed context length. The classifier recorded `stopped_to_ask=3`. On inspection, that category included missing reports; I detected no literal questions. I therefore do not describe those runs as agents asking the user for help. I also observed no native compression events, even though Pi enables autocompaction by default. ### Token efficiency depends on which outcome gets the denominator For the long tasks, tokens per 1.0 of cumulative score were Pi 1,311.3–1,458.7K, dsh 1,209.8–1,308.1K, and Hermes 1,449.5–1,580.5K. This divides total token use by summed fractional score, including the cost of the zero-score run. It is not tokens per successful ticket delivered before the deadline. The task split is particularly relevant for dsh. Its median total-token ratio to Pi was 0.29–0.41 on L1, including the failed run, and 1.72 on L2. Combining those into one figure conceals how differently it behaved on a new CLI and an existing service. I would retain all three views in a repeat: raw usage, score-adjusted usage, and delivery within the deadline. The next dsh test needs to resolve the L1 generation limit while keeping the same acceptance criteria. Also in this series: [Delegating with ticket files](/en/blog/dispatch-tickets-not-conversations) · [Changing the harness around a local news pipeline](/en/blog/local-ai-news-video-pipeline). --- # [Ask AI Right #8] Have ChatGPT Watch a Price for You Every Day: Tell It These Four Things URL: https://ai-muninn.com/en/blog/ai-ask-right-hand-off-a-task Date: 2026-11-19 Series: Ask AI Right (Part 8) To give ChatGPT a recurring task, tell it four things: what you want in the end, how you usually do it, what done looks like, and when to stop. This post walks through a real one: watch the AirPods Pro 3 price and tell me only when it drops below my target. I put the four things in one prompt, had it say the plan back, ran it once, then put it on a 10 AM daily schedule. For the next three days it checked three stores every morning without me. The trial run also caught a mistake of mine: one store was already selling below my target. ## Preface I typed one paragraph into ChatGPT. For the next three days it went out every morning and checked what AirPods Pro 3 cost at three stores, with a link to each product page and the time it looked. I didn't say another word to it. The paragraph had no tricks in it. It's what you'd say to a part-timer before leaving them alone in your shop for two hours. What has to be finished today. How checkout normally works. What "tidy" looks like when you get back. And: "If someone wants a refund, don't handle it. Call me." Those four things are also what an AI needs before you hand it a task and walk away. There is one difference. A new hire who gets confused will ask. An AI usually won't. It makes a guess and keeps going. The previous post covered [what AI is inherently bad at](/en/blog/ai-ask-right-what-ai-does-poorly). This post is about a task it can do, and how to brief it so it runs every day without you. The split between a goal and a process comes from [an article on automating with an AI bot](https://x.com/poteto/status/2123159537016533493). I borrowed the idea and tried it in ChatGPT. Two notes before the prompts. I live in Taiwan, so the stores are Taiwanese and the prices are in New Taiwan dollars (NT$). Swap in your own product and your own stores. And I did this twice: first in Chinese on November 19, 2026, which I left running for three days, then again in English on November 23 to get the screenshots here. I'll say which run each fact comes from. --- ## The one prompt > I want to hand a job over to you. What I want in the end: watch the price of AirPods Pro 3 in Taiwan and tell me only when it drops below NT$7,000. How I normally do it: I check three places, Apple's Taiwan store, PChome 24h, and momo, for the brand-new price. I skip used, refurbished, and grey-import listings, and I don't count prices that only work with a specific credit card or reward points. What done looks like: today's price at each of the three, a link to each product page, and the time you checked. If the same method fails three times for one store, write "couldn't find it" and tell me what you tried. Don't guess, and don't fill in an old price. Don't start yet. Tell me in your own words what I want and how you plan to do it. That paragraph has four parts and a closing line. Here they are one at a time. --- ## 1. Start with what you want in the end > What I want in the end: watch the price of AirPods Pro 3 in Taiwan and tell me only when it drops below NT$7,000. Most people open with the action. "Check the AirPods price for me every day." It will do that. But it doesn't know you only care about a drop, so it may hand you a price report every single day. By day three you stop opening them. Say the result you want first. Then it knows what is worth telling you and what isn't. If you can't put the goal into words yet, turn it around: > I want to hand a task off to you, but I can't describe what I want yet. Ask me one question at a time until we can both state the goal. --- ## 2. Explain how you usually do it > How I normally do it: I check three places, Apple's Taiwan store, PChome 24h, and momo, for the brand-new price. I skip used, refurbished, and grey-import listings, and I don't count prices that only work with a specific credit card or reward points. This part tells it which prices count. Leave it out and the "lowest price" it finds may be a used listing, a grey import (sold outside the official channel, with no local warranty), or a price you only get with one particular credit card. That number can be under your target and still be a price you would never pay. Cover where the information lives, what doesn't count, and which source wins when two of them disagree. Don't polish it. ChatGPT has a microphone button next to the message box, so you can say it out loud. --- ## 3. Say what done looks like > What done looks like: today's price at each of the three, a link to each product page, and the time you checked. AI tends to confuse "I took an action" with "the job is done." Coming back with a number doesn't mean the number is right. So I asked for a link next to every price. The links are for me, so I can click through and check. I use them two sections down. --- ## 4. Tell it when to stop > If the same method fails three times for one store, write "couldn't find it" and tell me what you tried. Don't guess, and don't fill in an old price. I add this because an AI that gets stuck doesn't stop by itself, and an AI that can't find something often won't say so. It gives you a number that looks reasonable. I found out how badly an AI can get stuck on a different task. I asked another AI, one I run at home, to write a small game plus its own tests to check that the game worked. All I told it was, "If a test fails, keep fixing it." One of the tests it wrote was itself wrong, so no change to the game could ever make it pass. It never noticed the test was the problem. It kept changing the game for 272 steps (a step is one action it takes), about 20 minutes. I pointed out the problem once, and it just switched to repeating a different action. In the end I stopped it myself. ![Left: told only to keep fixing, the AI loops through change the game, run the tests, fail for 272 steps. Right: with a three-tries rule it loops three times, then stops and reports where it is stuck](/images/ai-ask-right/hand-off-loop-en.png) There is a second case where it should stop and ask: decisions that aren't its to make. I have four standing rules. These always need my OK first: anything that costs money, anything sent out for other people to see, anything deleted or overwritten that can't be recovered, and anything that comes down to my personal taste. Watching a price only involves looking and telling me, so none of the four applied and I left them out. If your task places orders or sends email, put them in. --- ## The closing line: don't start yet, say it back > Don't start yet. Tell me in your own words what I want and how you plan to do it. Keep this line. Without it, ChatGPT goes straight to work and you never find out what it misheard. (It answered this English prompt in Chinese, so I asked it to say that again in English. That one request had a side effect, which I'll get to at the end.) ![ChatGPT's restatement: the three retailers, brand-new Taiwan products only, the exclusions, and how it will check prices, including writing "couldn't find it" after three failed tries](/images/ai-ask-right/price-watch-restate-en.webp) It got the rules right, down to writing "couldn't find it" after three failed tries. Two things I hadn't said came up. The first time through, it asked me a question back: how often should it check? It suggested once a day at 10 AM. And where I said "below NT$7,000," it later spelled out "strictly below." Whether exactly 7,000 counts was something I had never thought about. Anything it gets wrong, or has to ask about, shows you where you were unclear. --- ## Run it once before scheduling anything > Right, once a day is fine. Check today's prices once now and show me. Don't set a schedule yet. ![ChatGPT's price check: Apple Taiwan NT$7,490, PChome 24h NT$6,599, momo NT$6,811, with a product page link for each and a result line saying the NT$7,000 threshold has been met at two stores](/images/ai-ask-right/price-watch-first-check-en.webp) It came back with what I described: three prices, three product page links, and the time. - Apple Taiwan: NT$7,490 - PChome 24h: NT$6,599 - momo: NT$6,811 The first time through, in Chinese, I opened all three links and checked. All three prices matched the pages. Then I read the result line. The NT$7,000 threshold had already been met. PChome was selling at NT$6,599, well under my target. My target was wrong. I had picked it without looking at what the thing cost that day. Left as it was, the task would likely have told me "the price dropped" every single morning, which is the daily price report I was trying to avoid. It flagged one more thing I hadn't asked about: momo's NT$6,811 was a promotion, and in the English run it added that it couldn't confirm momo actually had stock. That's what the trial run is for. You check its work, and you also find out what was wrong with your own instructions. --- ## Put it on a schedule To make it run on its own, put it on a schedule. ChatGPT calls this a scheduled task. First I tested the timer by asking for a single check two minutes later. I also asked the question I cared about most: > Good. Before I change anything, test that the timer works: two minutes from now, check again under the same rules, threshold still NT$7,000. Also tell me: on a day when nothing is below the threshold, what will you do? Will I get a notification? In this English run I left the target at NT$7,000 on purpose. PChome was already under it, so the timed check would have something to report and I could see what an alert looks like. ![ChatGPT says that on a normal day with no qualifying price you will receive no notification, then shows a task card named AirPods Price Timer Test, scheduled for 10:38:21 AM](/images/ai-ask-right/price-watch-timer-en.webp) A task card appeared in the chat. It was scheduled for 10:38:21 and actually ran at 10:43, about five minutes late. Then this showed up in the chat without my asking: ![A message posted by the scheduled task: Price alert triggered. AirPods Pro 3 at NT$6,599 on PChome 24h, NT$401 below the NT$7,000 threshold, with all three prices and product page links](/images/ai-ask-right/price-watch-alert-en.webp) So the timer works, and that's what a hit looks like. Then I set up the real job with the corrected target: > The timer works. PChome is already under NT$7,000, so move the threshold to NT$6,000 and run this every day at 10:00 AM. Don't notify me on days it isn't met. And tell me where I go later to pause or delete it. ![ChatGPT confirms the daily price watch: threshold below NT$6,000, every day at 10:00 AM Taiwan time, three stores, no notification when no price qualifies](/images/ai-ask-right/price-watch-daily-en.webp) The confirmation listed the three stores, the new target, the time, and the no-notification rule, and said the original product rules were unchanged. --- ## What it did over the next three days This part comes from the Chinese run, which I left alone from November 20 to 22. Same rules, same NT$6,000 target, same 10 AM schedule. It ran once each morning: - November 20: 9:50 to 9:51 - November 21: 9:36 - November 22: 9:41 I asked for 10:00 and it ran about 10, 24, and 19 minutes early. It never hit the exact minute. For a price check, that doesn't matter. Each report says it reopened all three product pages. The prices didn't move in those three days. One thing did not match what it told me. In the screenshots above it says "you will receive no notification" and "The check will run silently." What happened is that it left a full price report in the chat every morning, ending with a line saying the threshold was not met. No email arrived on any of those days. I did not check whether my phone got a push notification. So "no notification" turned out to mean something closer to "I won't go out of my way to alert you." The report still lands in the chat. I ended up liking that. If I want to know whether it ran today, I open the chat and look. And a day when the price does hit the target? I never got one in the daily runs. The closest I have is the timer test above, where the scheduled check posted "Price alert triggered" in the chat. No email came for that one either. In my account's notification settings, tasks can only send push notifications, the kind that pop up on a phone or in a browser. There is no email option. --- ## Know where the off switch is When I was done, I typed this in the same chat: > Pause the AirPods price watch. ![ChatGPT confirms the AirPods Pro 3 Price Watch is paused: no daily checks will run, the settings are preserved, and the task is paused, not deleted](/images/ai-ask-right/price-watch-paused-en.webp) It paused the task and kept the settings, so I can turn it back on by asking. You can also manage it from the task list. In ChatGPT's left sidebar there's a clock icon that opens your scheduled tasks. Each task has a three-dot menu with Pause, Run now, Edit, and Delete. I tested pausing and deleting, and deleting came with two surprises. When I asked in the chat to delete the task, ChatGPT said it can create, look up, update, and pause tasks but can't delete them, so I used this list. And the paused task wasn't in the list. I had to go back to the chat, open the task card, and resume it before it showed up and I could delete it. Two things to watch out for. First, OpenAI changes which plans include scheduled tasks from time to time, so check [OpenAI's help page](https://help.openai.com/en/articles/10291617-scheduled-tasks-in-chatgpt). Second, a passing request can turn into a permanent rule. When I asked it to "keep replying in English from here on," a small "memory updated" label appeared under my message. Memory is the ChatGPT feature that remembers things you've told it, and once something is saved there it can carry over into your other chats. I went to Personalization in Settings and deleted that one memory. After you brief it on a task, look there and see what it kept. --- ## Try it yourself Pick something you want to buy but would rather get cheaper. Look at what it costs today before you choose a target (the step I skipped). Then fill in the blanks and paste this into ChatGPT: > I want to hand a job over to you. What I want in the end: watch the price of ___ and tell me only when it drops below ___. How I normally do it: I check ___, ___, and ___ for the brand-new price. I skip used and refurbished listings, and I don't count prices that only work with a specific credit card or reward points. What done looks like: today's price at each store, a link to each product page, and the time you checked. If the same method fails three times for one store, write "couldn't find it" and tell me what you tried. Don't guess. Don't start yet. Tell me in your own words what I want and how you plan to do it. Then, in this order: 1. Read what it says back. Fix anything it got wrong or had to ask about. 2. Have it check once. No schedule yet. 3. Open the links it gives you and check the prices yourself. 4. When the prices are right, tell it to run every day at a set time, and ask where you go to pause or delete it. 5. The next day, open that chat and see whether it ran. The same paragraph works for things you aren't buying. Replace the price with anything you check on a regular basis: a flight fare, extra concert dates, whether a web page has changed. The four parts stay the same. --- # [Benchmark] Qwen3.8-27B on One RTX 5090 With QEngine: 359 tok/s on Code, and Why It Won't Build for a 2080 Ti URL: https://ai-muninn.com/en/blog/qengine-rtx5090-qwen38-27b-wsl2 Date: 2026-11-17 Series: 改裝 2080 Ti 22G (Part 29) [QEngine](https://github.com/bpx03/QEngine) runs Qwen3.8-27B on one RTX 5090 under WSL2. Single stream it writes code at 358.5 tok/s, English at 225.1 and Chinese at 109.1. llama.cpp on the same card does about 69 on all three with no drafting, and 155 on code with a DFlash2 drafter. Four streams at once total 592.8 on code. The spread is speculative decoding: code advances 4.22 tokens per step, Chinese 1.27. The quantization differs, so this is not like-for-like. It does not compile for a 2080 Ti. The kernels need BF16 tensor-core instructions that start at sm_80. --- ## Why I tested QEngine [QEngine](https://github.com/bpx03/QEngine) is a custom C++/CUDA inference engine that only runs Qwen3.8 models. It is MIT licensed and has one author. His headline claim is three RTX 3090s serving eight agents at over 1,000 tok/s total on Qwen3.8-27B. The README says Linux only, and "Windows, including Docker Desktop / WSL2, is untested". Supported GPUs are the RTX 3000, 4000 and 5000 series. Qwen3.8-27B on one card is marked experimental. Everything I have falls outside what he tested: one RTX 5090 in a Windows 11 box, and the three modded RTX 2080 Ti 22GB cards this series is about. So I had two questions. Does it run on a single 5090 under Windows, and how fast? Can the 2080 Ti use it? The 5090 runs it under WSL2, and Qwen3.8-27B writes code at 358.5 tok/s. The 2080 Ti build fails. ## One RTX 5090 runs Qwen3.8-27B at 358.5 tok/s on code, 109.1 on Chinese Setup: QEngine 1.3.6 on one RTX 5090 inside WSL2. The model is Qwen3.8-27B with the [RedHatAI/Qwen3.8-27B-INT4](https://huggingface.co/RedHatAI/Qwen3.8-27B-INT4) weights, W4A16 (4-bit weights, 16-bit activations). I used three prompts: a Chinese story, an English story, and "thread-safe LRU cache in Python". Each run produced 512 output tokens with thinking disabled. I discarded one warm-up and took the median of three runs. Look at the QEngine single stream column first. The caveats on the two llama.cpp columns follow the chart. | Prompt | QEngine, single stream | llama.cpp, no drafting | llama.cpp + DFlash2 | QEngine, 4 streams total | |---|---|---|---|---| | Chinese story | 109.1 tok/s | 69.3 tok/s | 81.9 tok/s | 406.7 tok/s | | English story | 225.1 tok/s | 69.3 tok/s | 119.3 tok/s | 571.5 tok/s | | Python LRU cache | 358.5 tok/s | 69.1 tok/s | 155.0 tok/s | 592.8 tok/s | QEngine's time to first token was about 50 ms. llama.cpp's was about 75 ms. ![Bar chart of Qwen3.8-27B decode speed on one RTX 5090: QEngine single stream 109.1, 225.1 and 358.5 tok/s, llama.cpp 69.3, 69.3 and 69.1 tok/s, QEngine four-stream total 406.7, 571.5 and 592.8 tok/s for Chinese, English and code](/blog-images/qengine-5090-speed-en.png) The chart shows only the no-drafting llama.cpp numbers. This is not an apples-to-apples engine comparison. Three things differ. The quantization is INT4 for QEngine and Q4_K_M GGUF for llama.cpp. QEngine ran in WSL2, and llama.cpp ran natively on Windows. The draft settings differ too: llama.cpp drafts 3 tokens per step by default, and raising that to 7 to match QEngine gives 168.5 tok/s on code. So the table answers "what do I get on the same 5090 with this engine at its defaults". It does not answer "how much faster is the engine itself". ## Code runs 3x faster than Chinese because more drafted tokens get accepted QEngine's 27B uses speculative decoding. A cheap guesser drafts several tokens ahead, the big model checks them all in one pass, and generation jumps ahead by every token it accepts. QEngine has two guessers and picks one. With one or two conversations decoding on one card and enough free VRAM, it uses DFlash2, a separately loaded draft model that proposes 7 tokens per step. With three or more it uses the model's MTP head, a small extra layer that predicts 1 to 7 tokens ahead. Both were loaded in my runs. The server log reports how many tokens each verify step advances on average (the accepted drafts plus the one token the model produces itself), and how many steps it took to produce 512 tokens. | Prompt | Tokens advanced per step | Steps for 512 tokens | Single stream speed | |---|---|---|---| | Chinese story | 1.27 | 403 | 109.1 tok/s | | English story | 2.62 | 195 | 225.1 tok/s | | Python LRU cache | 4.22 | 121 | 358.5 tok/s | Steps divided by time comes out at about 85 steps per second for all three. So speed is roughly 85 times the tokens advanced per step. Code is predictable. Brackets, indentation and identifiers are easy to guess. On Chinese prose the drafter lands less than half a token per step on average. ## Four streams deliver 592.8 tok/s on code and nearly quadruple Chinese throughput With `QE_MAX_SEQS=4` and four conversations running together, the totals were 406.7 tok/s on Chinese, 571.5 on English and 592.8 on code. Per stream that is 104.4, 154.5 and 162.4. Time to first token rose to about 125 ms. The prompts scale differently. Chinese per-stream speed only dropped from 109.1 to 104.4, so the total is nearly 4x the single stream. Code per-stream speed dropped from 358.5 to 162.4, so the total is only 65% higher than one stream. Four conversations is past the DFlash2 limit, so these steps drafted with MTP. My logs show it: single-stream steps drafted about 7 tokens each, and four-stream steps drafted about 1 to 4 on average. That may be part of the drop on code. I did not isolate it. ## Running it on a Windows 5090: WSL2 plus files pulled from the Docker image There is no Windows build. The release page ships no binaries. The official routes are Docker or building from source. My machine: Windows 11 Pro 10.0.26300, NVIDIA driver 621.14, WSL2 Ubuntu 26.04.1, kernel 6.18.33.2-microsoft-standard-WSL2. The driver already supports CUDA 13.1, so I did not upgrade it for this. The weights need about 16 GB of disk. If your WSL2 has Docker, the README's Docker route is probably the simplest. I did not test it. Mine had no Docker, so I pulled the prebuilt `libqengine.so` and the CUDA 13.1 runtime out of the official image `ghcr.io/bpx03/qengine:1.3.6`, and ran them with the v1.3.6 source (commit 444b2e4). Source and weights: ```bash git clone --depth 1 --branch v1.3.6 https://github.com/bpx03/QEngine.git source uv venv --python 3.12 .venv uv pip install --python .venv/bin/python huggingface_hub .venv/bin/hf download RedHatAI/Qwen3.8-27B-INT4 --local-dir source/models/Qwen3.8-27B-INT4 ``` Then I copied the container's `app/build` into `source/build`. The first load failed: ``` OSError: libcudart.so.13: cannot open shared object file: No such file or directory ``` The fix is to point the loader at the CUDA 13.1 runtime taken from the image, plus WSL's GPU driver libraries: ```bash export LD_LIBRARY_PATH="$PWD/prebuilt/usr/local/cuda-13.1/targets/x86_64-linux/lib:/usr/lib/wsl/lib:${LD_LIBRARY_PATH:-}" ``` Launch with the README's single-card command. I set the context to 8192: ```bash cd source QE_DEVICES=0 QE_MAX_SEQS=1 server/run.sh 8080 --max-ctx 8192 ``` It warns that the engines are tested on 2 and 3 GPUs, then loads in 13.2 s. The API is OpenAI-compatible: ```bash curl -s http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{ "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}], "chat_template_kwargs": {"enable_thinking": false} }' ``` `enable_thinking: false` matters. The 27B defaults to thinking on. My first pass left it on, and all 512 tokens were reasoning with no visible text. Chinese output had no mojibake. A request with `tools` returned standard `tool_calls` with parseable JSON arguments. ## nvidia-smi shows 31.9 GB because QEngine takes all free VRAM for its KV pool nvidia-smi showed 31.9 GB used on the 5090, the whole-card peak. llama.cpp with the same model and no drafting used 20.6 GB. That is not what the 27B needs. The startup log says where the memory went: ``` KV pool: 380928 tokens shared by 1 sequence slots (max context 8192) GPU0: weights 14.74 GB, cache+act 15.57 GB ``` The KV cache is the per-token attention state the model keeps for everything it has read and written. A KV pool is one block of VRAM reserved for that cache up front and shared between conversations. The weights are 14.74 GB. By default QEngine takes all free VRAM as its KV pool, which on the 5090 is 380,928 tokens. The author's docs say `QE_POOL_TOKENS` sets the pool size, and that the pool shrinks when another program takes VRAM. I did not test either. ## The 2080 Ti build fails: the kernels need BF16 tensor-core instructions from sm_80 The README lists only RTX 3000, 4000 and 5000. I wanted to know whether QEngine really needs newer hardware, or whether nobody had tried building it for a 2080 Ti. Some background. NVIDIA numbers each GPU generation's instruction set with a compute capability: the 2080 Ti is sm_75, and RTX 3000 cards are sm_86. Tensor cores are the matrix-multiply units on these cards. BF16 is a 16-bit float format with the exponent range of FP32 and less precision. On the box with three 2080 Tis, I put the CUDA 13.1 compiler pieces in an isolated directory, left the system CUDA untouched, and targeted sm_75. `$D` is that isolated directory: ```bash cmake -S source -B build-sm75 -G "Unix Makefiles" \ -DCMAKE_CUDA_ARCHITECTURES=75 \ -DCMAKE_CXX_COMPILER=/usr/bin/g++-13 \ -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-13 \ -DCMAKE_CUDA_COMPILER="$D/cuda-13.1/bin/nvcc" \ -DCMAKE_BUILD_TYPE=Release cmake --build build-sm75 --target qengine --parallel 4 ``` nvcc 13.1 still accepts sm_75, and configure passed. The build stops here: ``` ptxas .../dn_ab.ptx, line 213; error : Feature '.bf16' requires .target sm_80 or higher ptxas .../dn_ab.ptx, line 213; error : Feature '.m16n8k16' requires .target sm_80 or higher ``` The error comes from `src/kernels/dn_ab.cu` line 13: an inline-assembly tensor-core matrix-multiply instruction with BF16 operands. Eight files under `src` use this BF16 instruction directly. So it really does need newer hardware. The missing piece is a hardware instruction, and a driver upgrade does not add it. Running on a 2080 Ti would mean rewriting the compute kernels in another format. For Qwen3.8-27B on 2080 Ti, this series already has two routes. [One card with llama.cpp at 30 tok/s](/en/blog/qwen38-27b-ud-on-one-2080ti). [Two cards with FastLLM + DFlash2 at 153.8 tok/s on code](/en/blog/fastllm-dflash2-dual-2080ti). ## Deep dive: exact test conditions, ranges, and the full 2080 Ti build log You can skip this section if you only want to run the engine. It holds the exact settings, run-to-run ranges, the limits of the comparison, and the full 2080 Ti build log. ### Test conditions | Item | Setting | |---|---| | Machine | Windows 11 Pro 10.0.26300, NVIDIA driver 621.14, WSL2 Ubuntu 26.04.1, kernel 6.18.33.2-microsoft-standard-WSL2, one RTX 5090 | | QEngine | 1.3.6, commit 444b2e4, `libqengine.so` from `ghcr.io/bpx03/qengine:1.3.6` | | Weights | RedHatAI/Qwen3.8-27B-INT4, plus the author's tuned MTP head and DFlash2 drafter (auto-downloaded) | | QEngine launch | `QE_DEVICES=0 QE_MAX_SEQS=1` (4 for the four-stream run), `--max-ctx 8192`, KV default FP8, vision off | | llama.cpp | Official Windows CUDA 13.5 build b12445, Q4_K_M GGUF, `-ngl 999 -c 8192 -np 1 --jinja --seed 42 --spec-type none` | | llama.cpp with drafting | Same, with `--spec-type draft-dflash2 --spec-draft-model`, draft model `z-lab/Qwen3.8-27B-DFlash2-GGUF` at Q4_K_M; `--spec-draft-n-max` default 3, plus one code run at 7 | | Request | `max_tokens=512, seed=42, temperature=0.7, top_p=0.8, presence_penalty=1.5, ignore_eos=true, stream=true`, `enable_thinking=false` | | Sampling difference | QEngine top_k=20, llama.cpp top_k=40 (each engine's default) | | Speed formula | `512 / (full stream time − time to first token)`, measured client-side through an SSH port-forward | | VRAM | Sampled from nvidia-smi about every 0.5 s, whole-card peak including about 1.9 GB of desktop use | ### Run-to-run ranges QEngine single stream: Chinese 108.59 to 109.17, English 224.40 to 225.17, code 357.31 to 361.23 tok/s. llama.cpp with no drafting: all three between 69.1 and 69.4 tok/s. llama.cpp with DFlash2: Chinese 81.84 to 81.95, English 119.07 to 119.42, code 154.73 to 155.08, and code 167.65 to 169.09 at 7 drafts per step. ### Where the engine itself is fast, apart from drafting Split speed into two parts: steps per second, and tokens advanced per step. QEngine ran about 85 steps per second on all three prompts, or about 11.7 ms per step, and in my logs each of those steps verified close to 7 drafted tokens on average. llama.cpp without drafting produces one token per step, so 69 tok/s is about 14.5 ms per step. With DFlash2 on, dividing its speed by tokens advanced per step gives 51 to 53 steps per second, or 19 to 20 ms per step. llama.cpp's steps get slower once they verify drafts. A QEngine step verifies about 7 tokens and still finishes faster than a llama.cpp step with no drafting. The quantization and runtime differ, so the engine doesn't account for the entire gap. The author's docs and source comments describe several techniques. I did not switch them off one at a time, so I can't say how much each contributes. - The compute kernels are hand-written for the Qwen3.8 architecture instead of calling a general matrix library. - INT4 weights are repacked at load time into the layout tensor cores consume, and the math runs on the BF16 tensor-core instruction that the 2080 Ti build fails on. - The main computation of each decode step is captured as a CUDA graph and replayed, which avoids launching kernels one at a time. - For the next-token logits, an INT4 copy of the output layer screens the full vocabulary, and only the top candidates are rescored with the BF16 weights: 16 for greedy decoding, 64 when sampling. - When recent output repeats earlier context, drafts are copied from that context. - The MTP head is a version the author fine-tuned on the engine's own answers, downloaded automatically on first startup. ### What this comparison cannot tell you - The draft settings differ. At llama.cpp's default 3 drafts per step, each step advanced 1.55 tokens on Chinese, 2.31 on English and 3.06 on code. At 7 drafts, code advanced 3.48 per step. - llama.cpp's `draft-mtp` was not measured. This Q4_K_M GGUF has no embedded MTP head, and the server exits with `context type MTP requested but model doesn't contain MTP layers`. I did not try a separate MTP file. - Only one context length (8192) and one output length (512 tokens) were tested. - Thinking-mode speed is not reported. - There is one prompt per category, and acceptance depends heavily on content. ### Four-stream detail Total throughput is `2048 / wall time of the group`. Per-stream numbers are the median of 12 samples. | Prompt | Total | Per-stream median | Per-stream range | TTFT | |---|---|---|---|---| | Chinese story | 406.7 tok/s | 104.4 tok/s | 102.19 to 110.01 | 125.2 ms | | English story | 571.5 tok/s | 154.5 tok/s | 144.80 to 156.39 | 127.7 ms | | Python LRU cache | 592.8 tok/s | 162.4 tok/s | 151.87 to 174.53 | 123.2 ms | The four slots shared a 352,256-token KV pool. ### The author's own published numbers These ran on different hardware and prompts, so treat them as context, not as a comparison. - Three RTX 3090s, single stream: story 279, code 516 tok/s. - Three RTX 3090s, eight agents with random 500-token prompts: 1,129 tok/s total. - One RTX 3090, short replies (385 tokens, greedy): code 212, story 150, proof 196 tok/s. ### Full 2080 Ti build log The box: three RTX 2080 Ti 22 GB, driver 580.173.02. The system nvcc 12.4 was left alone. I used isolated NVIDIA 13.1.0 redistributables: nvcc, cudart, cccl and libnvvm, no driver. The first error had nothing to do with the GPU. CUDA 13.1's headers clash with glibc 2.43: ``` /usr/include/x86_64-linux-gnu/bits/mathcalls.h(206): error: exception specification is incompatible with that of previous function "rsqrt" ``` glibc declares it `noexcept`, and CUDA's header does not. Adding `noexcept (true)` to the `rsqrt` and `rsqrtf` declarations in the isolated `include/crt/math_functions.h` got past it. The QEngine source was not modified. The next stop was the `.bf16` and `.m16n8k16` ptxas errors shown above. NVIDIA's [PTX documentation](https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#warp-level-matrix-instructions-mma) states that BF16 `m16n8k16` mma needs sm_80 or higher, which matches the compiler error. No `libqengine.so` was produced. So I could not verify whether the existing driver (580, which reports CUDA 13.0) can initialize QEngine. --- # [Dev Workflow] We Added Provenance to 18 Model Repos: How to Check a Quantized Download URL: https://ai-muninn.com/en/blog/verify-downloaded-models Date: 2026-11-14 Series: LLM Deep Dive (Part 8) We added provenance sections to our 18 Hugging Face repositories. Historical base revisions remain unrecorded in 17. To check a download, identify the actual file, pin the publisher's release and compare SHA-256. Then inspect the upstream and build record. A matching hash establishes release identity; it cannot rule out a backdoor. We have neither found nor excluded one. --- ## Why we started with our own repos I publish quantized models on Hugging Face under **coolthor**. When Microsoft Research described Lazarus, a technique for planting dormant behavior in model weights, I had a fairly immediate question: what evidence could someone downloading my models actually check? We are the third party in somebody else's model supply chain. So I started with our running models and our own releases. We added provenance sections to **18 repositories**, including source information, build details, published file hashes and explicit gaps. In **17**, the historical base revision was not recorded in the recovered material. The useful outcome for a downloader is a procedure you can repeat: find the actual file your runner uses, compare it with a pinned release, then inspect how that release was made. None of this audit found a backdoor, and none of it rules one out. If quantization itself is unfamiliar, [our introduction to quantization algorithms](/en/blog/llm-deep-dive-quantization-algorithms) explains the conversion. Here, the question is whether you can account for the result you downloaded. ## A model name does not identify the file your agent loads Start with your runner's startup arguments or configuration. Record the weight filename it actually opens, its publisher, repository and revision. For a sharded model, record every loaded shard and the index. Include separately loaded adapters, projectors and other model components. A friendly model alias is useful for routing requests; it is insufficient evidence of what sits on disk. Our inventory found an alias suggesting a Qwen model that actually pointed to a MiniCPM derivative. Another runtime consumed a locally packed cache rather than the original checkpoint. For a new download, inspect the model card and **Files and versions** before starting inference. Copy the full release commit, rather than recording only `main`. Keep the filename with it. You should be able to answer: which publisher, which repository, which commit, which file? ## Follow the quantizer's immediate source before the original model family The name Qwen or Gemma in a quantized repository is a starting point. It does not tell you whether the input was the original release, a fine-tune, a merge or another quantization. For example, our [Huihui Qwen NVFP4 provenance section](https://huggingface.co/coolthor/Huihui-Qwen3.6-35B-A3B-abliterated-NVFP4-W4A4/blob/814aed0096aae190905d8830cd1495ca41d135e8/README.md) names the Huihui derivative as its immediate input. Skipping that step and writing “from Qwen” would omit an upstream modification. The build-time commit for that input remains **not recorded**. Read the source table alongside the build section. A source link identifies a repository; a historical commit identifies the input version. Tool names and a description of the method help, but reproducing the build also needs the actual command, patches and relevant data. Today's upstream `HEAD` cannot reconstruct which revision an older job consumed. ![A release hash connects downloaded bytes to the published file; a separate build record connects a quantization to its source. Neither check proves safe behavior.](/blog-images/verify-downloaded-models/verification-en.svg) ## Compare SHA-256 against a pinned release Here is a real example from our [Sulphur NVFP4 model card](https://huggingface.co/coolthor/Sulphur-2-distilled-NVFP4/blob/4f881881a03be63d962956c02d89091b673c0d45/README.md). Its provenance section identifies the inspected weight release as `d8f083b8d126bd06c292c42262588c400a8abe60`. The newer commit in the card URL only updates the README. I use the separately packaged VAE because the filename, byte count and expected digest are all recorded. This is a media-model component, not a model tested in the Lazarus experiments. Checking this file does not check the repository's other weights. | File | Expected bytes | Expected SHA-256 | |---|---:|---| | `ltx_full_vae.safetensors` | 1452240458 | `a48d539b06bd8628d514de36c3a3e816c08c217d2fe90534b6426978c6dca5d8` | Use a **new, empty directory** so the download does not replace an existing model. It requires space for the byte count above. The following command fetches the file from the recorded weight release; it does not load or execute the model: ```bash curl --fail --location \ --output ltx_full_vae.safetensors \ https://huggingface.co/coolthor/Sulphur-2-distilled-NVFP4/resolve/d8f083b8d126bd06c292c42262588c400a8abe60/ltx_full_vae.safetensors wc -c < ltx_full_vae.safetensors ``` On Linux, calculate the local digest: ```bash sha256sum ltx_full_vae.safetensors ``` On macOS, use: ```bash shasum -a 256 ltx_full_vae.safetensors ``` Compare the entire digest with the card. A filename match or byte-count match alone is insufficient. If the file came from a Git clone, make sure Git LFS downloaded the weight contents. A small LFS pointer text file is a different file and produces a different hash. What if they differ? First check the exact filename and release, whether the download completed, and whether you hashed a pointer or an error response. Until you resolve the discrepancy, you have not identified those bytes as the referenced release. A mismatch alone does not identify malicious modification. For an existing local model, use its actual path instead of downloading another copy. Save the expected digest and commit alongside your computed result. For sharded models, hash every shard. ## A matching hash establishes file identity, not safe behavior If your digest matches the pinned publisher record, your file matches that release. You have not established whether the release itself was modified before publication, whether its declared source is correct, or whether a trigger could change its behavior. You also have to trust wherever the expected digest came from. A publisher account compromised before you retrieve the file could serve both altered weights and matching checksums. Keeping an independently obtained, previously trusted release record gives you a reference outside that new download. Our newly written source sections do not provide an independent historical attestation. [Microsoft Research's Lazarus summary](https://www.microsoft.com/en-us/research/blog/lazare-veni-foras-reprogramming-dormant-neurons-to-backdoor-ai-agents/) describes a weight-editing attack that does not require training and can remain dormant during ordinary evaluations. That makes “it answered my usual prompts correctly” inadequate evidence for excluding this attack. It does not establish that our releases contain it. The agent's tools determine what an emitted command can do. While provenance remains incomplete, limit filesystem access, keep credentials outside the agent's reach, restrict outbound connections and review consequential commands before execution. These are recommended controls. This inventory did not deploy them or change running services. ## Keep a build record when you publish your next quantization The record I want alongside our next release starts **before conversion**. Save the exact source repository and full commit, the input filenames and their hashes. Do this for each input in a merge or a package containing several components. Keep the converter or quantizer commit, local patches, full command and environment. If calibration affects the result, record the data revision, selection method and random seed. Record intermediate transformations too: extracting a component, merging an adapter and repacking runtime weights can each create a new artifact that needs its own explanation. Finish with an output manifest containing filenames, byte counts and SHA-256 digests. State what was actually checked: published metadata, a local file comparison, a reproduced build or a tensor-aware diff. Those results support different claims. Re-running the recipe may also produce different file bytes because of serialization or execution differences; document that limitation rather than promising deterministic output without testing it. For an old release with missing records, write **not recorded**. Leave the input commit unknown until historical evidence supports one. ## Deep dive: what our inventory did and did not establish Skip this section if you only need the checks above. It covers the scope behind our numbers and why some comparisons are still open. ### The running-model inventory and the publishing audit count different things The local inventory calculated SHA-256 for **34 unique files or auxiliary artifacts**. This was an inventory of evidence associated with running services or recent service use, not a full disk search and not proof that every listed media weight remained in GPU memory. Paths referring to the same physical file were recorded as aliases; distinct copies were separate observations. The categories below describe comparison evidence. They are not a distribution of safe versus unsafe models. | Comparison result | Files or artifacts | Interpretation | |---|---:|---| | Original publisher, same known revision, matching | 4 | Local bytes matched the referenced original release | | Third party, same known revision, matching | 2 | Local bytes matched that third-party release | | Original publisher content matched; acquisition revision unknown | 1 | A matching public file does not recover download history | | Third-party content matched; acquisition revision unknown | 13 | The same limitation applies to these public derivatives | | Different from quantization upstream; local edits recorded | 2 | A documented derivative needs review of its transformation | | No directly comparable upstream file | 12 | Local hashes exist, but direct upstream identity remains unresolved | The differing files had recorded local modifications. That explains why byte equality with the earlier quantization was not expected; it does not independently verify the edits. Runtime caches and repacked weights also need a reconstruction or a format-aware comparison. There may be no upstream file with identical serialization to compare. ### The source-card update covered published metadata, not a rebuild The publishing review covered **18 repositories and 73 weight or calibration files**. Those repositories include media models and auxiliary artifacts; describing them all as agent LLMs would be incorrect. Each repository received an appended English Provenance section. The push report verified the new cards and checked that repository changes were confined to `README.md`. The **73 digests came from pinned Hugging Face LFS metadata**. That card update did not download every large weight file and calculate its hash again. The local **34-file** inventory did calculate local hashes. The two counts describe separate scopes and must not be added together as an audit coverage total. In the recovered source records, **17 of 18 repositories lacked a historical base revision**. The exception was [VoxCPM2-Q4_K_M-GGUF](https://huggingface.co/coolthor/VoxCPM2-Q4_K_M-GGUF/blob/81cf28c7f44484c5774008bac2d38e5d5f95d3c0/README.md), whose recorded base was `openbmb/VoxCPM2@32279effe8c19989596f05d353d1447f51d9e915`. Even that release still lacked parts of a complete reproduction record. A known input commit is valuable evidence, but it does not supply missing commands or dependency locks. We performed no quantization rerun or weight-diff audit in the card update. ### Lazarus motivates checking weights without supplying an all-clear test The [Lazarus paper](https://github.com/anadim/anadim.github.io/blob/135bbd51079f52d6c2ea8c1c68a3f0d3d4b46a74/papers/Lazarus.pdf) reports editing **7 dormant neurons** in Nemotron-Terminal-8B. Its gradient-refined variant (Lazarus-SGD, fitted on 23 examples) predicted the payload on **at least 98.8%** of recorded triggered test trajectories; the paper also describes an analytic version that skips fine-tuning. It also reports vulnerability in Qwen3.6-27B and Gemma-4-31B-IT. These are study results for the tested checkpoints and conditions, not a measured attack rate across downloaded quantizations. A quantized checkpoint normally differs numerically from its unquantized source. Comparing their raw file hashes cannot separate expected quantization changes from unexpected weight edits. Checking how a quant was derived takes the pinned base model, the build recipe and a format-aware tensor diff. Our historical records do not yet support that complete check for the releases discussed here. Also in this series: [Quantization algorithms](/en/blog/llm-deep-dive-quantization-algorithms). --- # [Benchmark] FP16 vs Q8 on RTX 5090: Qwen2.5-7B Generates at 188.75 tok/s URL: https://ai-muninn.com/en/blog/fp16-vs-q8-rtx5090-2026 Date: 2026-11-11 Series: LLM Deep Dive (Part 7) On one RTX 5090, Qwen2.5-7B in **Q8_0 generated at 188.75 tok/s**, versus FP16's 109.67: **1.72×** the speed. Its sampled whole-GPU peak was 10,467 MiB, including the desktop. I would start with Q8_0 for a close FP16 approximation; Q6_K saves more memory, and Q4_K_M prioritizes speed and size. Prompt processing and task accuracy need separate checks. ## Choosing between FP16 and Q8 I wanted to know which file to download: if FP16 already fits, what do I get by choosing Q8 instead? I took one FP16 GGUF of [Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct), made three quantized copies, and measured all four on the same RTX 5090. The [quantization introduction](/en/blog/llm-101-what-is-quantization) explains the names. Here the decision comes from measured speed, memory use and a next-token prediction test. The results apply to this model, build and short context; they do not establish a universal ranking for every GPU. ## Q8_0 generates faster; FP16 processes this prompt faster Read the two speed columns separately. Prompt processing is the model reading the input; generation is the model producing its answer. A token is one of the text pieces the model works with. Both columns count tokens per second, and higher is faster. The table gives medians of three measured runs. VRAM is the median of each run's sampled **whole-card** peak, including Windows and desktop applications. | Format | Prompt tok/s | Generation tok/s | Sampled whole-GPU peak (MiB) | |---|---:|---:|---:| | FP16 | 16,447.2 | 109.67 | 16,877 | | Q8_0 | 15,953.6 | 188.75 | 10,467 | | Q6_K | 13,175.0 | 231.49 | 8,835 | | Q4_K_M | 15,407.2 | 284.71 | 7,471 | For generation, Q8_0 reaches 1.72 times FP16's speed. Q4_K_M reaches 284.71 tok/s. For prompt processing, FP16 leads, followed by Q8_0, Q4_K_M and Q6_K. Downloading the smaller file did not make every stage faster.
The quantized weights require fewer bytes to store. Generation speed can benefit from moving less weight data, but this experiment does not isolate the GPU kernels well enough to attribute every speed difference to memory traffic. In particular, Q6_K's prompt result is a measurement, not proof of a specific bottleneck. ## Q8_0 stays closest to FP16's output distribution in this sample All four formats were tested on the first 32 chunks of one English Wikitext-2 test file, with a 512-token context. **Perplexity** measures next-token prediction: lower is better on this fixed text. **KL divergence** compares the full predicted token distributions with a saved FP16 reference: closer to zero means closer distributions. Neither metric measures how many coding or math questions the model answers correctly. Read the perplexity difference against the direct FP16 run, and KL against the stored FP16 logits. | Format | Perplexity | Δ vs direct FP16 | KL vs stored FP16 logits | |---|---:|---:|---:| | FP16 | 6.098206 | +0.000000 | -0.000010 | | Q8_0 | 6.106598 | +0.008392 | 0.001709 | | Q6_K | 6.094548 | -0.003658 | 0.004940 | | Q4_K_M | 6.308980 | +0.210774 | 0.039512 | Q8_0 has the smallest measured KL among the quantized formats. Q6_K's perplexity is slightly lower than FP16's on this sample, while its KL is higher than Q8_0's. That is not evidence that Q6_K is a better model: predicting the observed next word and matching the entire FP16 distribution are different tests, and this sample is short. The FP16 self-comparison reports KL **−0.000010**. True KL cannot be negative; this is a numerical estimate near zero. The stored reference is lossy: the tool reports reconstructed base perplexity **6.085444**, whereas direct FP16 perplexity is **6.098206**. I keep those values visible rather than force the FP16 KL to zero or mix the two perplexity baselines. The [upstream perplexity notes](https://github.com/ggml-org/llama.cpp/blob/ae4893a092e060cfbd4979600bf3c1e48a710874/tools/perplexity/README.md) describe the stored-logit representation. ## Start with Q8_0; move down when the memory savings matter My choice for this model is **Q8_0 when it fits, Q6_K to use less memory with modest distribution drift, and Q4_K_M when memory or generation speed takes priority**. Keep FP16 when you need the unquantized comparison reference, or when prompt processing is the workload you care about most. These are format choices for one model. I did not measure long-context use, multiple simultaneous requests, Chinese perplexity, or task accuracy. A low KL on English text cannot settle those questions. ## Deep dive: reproduce the measurements and inspect the receipts You can skip this section and still use the recommendations above. ### One FP16 file produced all three quantized files The source is [bartowski's FP16 GGUF at a pinned revision](https://huggingface.co/bartowski/Qwen2.5-7B-Instruct-GGUF/tree/8911e8a47f92bac19d6f5c64a2e2095bd2f7d031). I verified its SHA256 against the repository's LFS object before quantizing. Q8_0, Q6_K and Q4_K_M were generated locally from that file with the same executable and no importance matrix. This avoids mixing prebuilt files with different quantization recipes. The exact commands below run from my experiment directory, with binaries extracted under `bin`. The FP16 input is named `model-f16.gguf`. For each subsequent speed run I changed only `-m` to the corresponding quantized file. ```powershell .\bin\llama-quantize.exe model-f16.gguf model-Q8_0.gguf Q8_0 8 .\bin\llama-quantize.exe model-f16.gguf model-Q6_K.gguf Q6_K 8 .\bin\llama-quantize.exe model-f16.gguf model-Q4_K_M.gguf Q4_K_M 8 .\bin\llama-bench.exe -m model-f16.gguf -p 512 -n 128 -d 512 -b 512 -ub 512 -t 8 -ngl 99 -fa on -ctk f16 -ctv f16 -r 1 -o json ``` | Condition | Value | |---|---| | Date | 2026-11-11, Asia/Taipei | | GPU / driver | RTX 5090, Windows WDDM, NVIDIA 621.14 | | CPU / OS | Ryzen 9 9950X; Windows 11 build 26300 | | llama.cpp | b12250, commit `ae4893a092e060cfbd4979600bf3c1e48a710874`, Windows CUDA 13.5 release | | Model parameters | 7,615,616,512, from llama-bench metadata | | Workload | Single stream; synthetic tokens; prompt 512, generation 128, depth 512 | | Batch / microbatch / threads | 512 / 512 / 8 | | GPU / attention / KV | `-ngl 99`, Flash Attention on, K and V both F16 | | Repetition | Four outer rounds; discard round 0; median and range of rounds 1–3; `-r 1` per invocation | | Other bench defaults | Built-in warmup on; load/lazy mode auto; repack on; no fit target; full JSON retains the remaining defaults | The format order alternated forward and reverse across rounds. The largest measured speed range was 1.32% of its median, below the predeclared 15% threshold for adding runs. This is a descriptive comparison, not a significance test. Each invocation creates fresh inference state. There is no serving prefix cache. Since the executable version stayed the same, I did not clear compilation caches belonging to other services. ComfyUI's queue was empty before each invocation; the harness waited if it saw another compute process or an elevated idle baseline. Desktop applications remained open, so this is a Windows desktop measurement rather than a headless-card result. llama-bench excludes tokenization and sampling time, so these rates do not measure complete application response speed. ### Whole-card VRAM is measured separately from file size I sampled `nvidia-smi` memory usage about every 0.2 seconds while each process ran. The recorded idle baselines were 2,379–2,403 MiB. WDDM did not provide useful per-process memory figures, so I report full-card sampled peaks without claiming they are isolated model allocations. Sampling can miss a shorter peak. | Format | Prompt min–max tok/s | Generation min–max tok/s | Whole-GPU peak min–max MiB | File bytes | |---|---:|---:|---:|---:| | FP16 | 16354.69–16553.35 | 109.604–109.699 | 16862–16887 | 15237853600 | | Q8_0 | 15950.65–15963.68 | 188.614–188.756 | 10442–10467 | 8098525600 | | Q6_K | 13028.98–13203.40 | 231.384–231.716 | 8810–8835 | 6254199200 | | Q4_K_M | 15323.84–15462.58 | 284.697–284.744 | 7410–7471 | 4683073952 | The [raw run records](/benchmarks/fp16-vs-q8-rtx5090-2026/bench-records.json) contain every warmup and measured result. The [summary JSON](/benchmarks/fp16-vs-q8-rtx5090-2026/summary.json) contains the arrays used for the medians and ranges. Per-run files such as `bench-r1-Q8_0.stdout` and `bench-r1-Q8_0.vram.json` are available in the same directory. ### Every quality comparison uses the same saved FP16 reference ```powershell .\bin\llama-perplexity.exe -m model-f16.gguf -f wikitext-2-raw/wiki.test.raw -c 512 --chunks 32 -b 512 -ub 512 -t 8 -ngl 99 -fa on -ctk f16 -ctv f16 --kl-divergence-base fp16-reference.kld .\bin\llama-perplexity.exe -m model-Q8_0.gguf -f wikitext-2-raw/wiki.test.raw -c 512 --chunks 32 -b 512 -ub 512 -t 8 -ngl 99 -fa on -ctk f16 -ctv f16 --kl-divergence-base fp16-reference.kld --kl-divergence ``` I repeated the second command for FP16, Q6_K and Q4_K_M by changing only the model filename. All runs use the first 32 chunks; this is not the full Wikitext-2 test set. The raw corpus SHA256 is `173c87a53759e0201f33e0ccf978e510c2042d7f2cb78229d9a50d79b9e7dd08`. The saved reference is 2,481,815,316 bytes, SHA256 `3c765b5a27dc4dca897d628d3fb3b2c1b386b36243071424345872cf0e1d88f0`. The quality logs retain a tokenizer warning that a control-looking token was assigned a non-control type and was overridden by the loader. Every format inherits tokenizer metadata from the same FP16 source and uses the same loader. I did not manually change the tokenizer. [FP16 quality output](/benchmarks/fp16-vs-q8-rtx5090-2026/quality-FP16.stdout), [Q8_0 output](/benchmarks/fp16-vs-q8-rtx5090-2026/quality-Q8_0.stdout), [Q6_K output](/benchmarks/fp16-vs-q8-rtx5090-2026/quality-Q6_K.stdout) and [Q4_K_M output](/benchmarks/fp16-vs-q8-rtx5090-2026/quality-Q4_K_M.stdout) retain the chunk results, uncertainties and KL statistics. These uncertainties describe this corpus calculation; they are not repeated-run speed ranges. ### Model file SHA256 values identify the exact inputs ```text FP16: 863c978275bca3fdacdde06cbfc1a65f2bd65210bb7ecfd9ded3b24219d81b54 Q8_0: 6925c96c0e9a6af97a81521caf2dd58da9f0fc5f00620c4d131684b872a6908e Q6_K: 9616f5a674b8d53dd2c8db918e4d8b5f331a4cca342ba2040c47371a73faecf9 Q4_K_M: 246ac71c280bd514575413b01abef9954f9148c011e4a06df643001a0a6b1910 ``` The [manifest](/benchmarks/fp16-vs-q8-rtx5090-2026/manifest.json) also records corpus, reference and executable hashes. The Windows `.exe` launchers load implementation DLLs; a launcher hash alone is not a complete build identity. The pinned release and CUDA backend hash belong with it. --- # How to run Viggle Remake character swap on an RTX 5090 (int8, ComfyUI) URL: https://ai-muninn.com/en/blog/viggle-remake-5090-character-swap Date: 2026-11-10 Series: MiniMax-H3 on RTX 5090 (Part 18) **Viggle Remake** (Viggle's weights trained on MiniMax-H3) runs on **a single 32 GB RTX 5090** in ComfyUI with the int8 checkpoints, about 21 GB each with the LoRA merged. In a blind comparison on the same 294-frame clip, a local vision model scored it **89 vs 74** against my hand-built SAM mask + H3 Character Swap, and it finished sooner: about 181 s vs 236 s. A real 12.25 s dance at short edge 736 takes about 603 s per clip. Caveat: one seed per version, judged from extracted frames only. --- Swapping the person in a video used to mean a pipeline: segment the person with SAM, mask them out, have H3 Character Swap draw the new character, then live with whatever the inpainting does to the background. I built that pipeline. Then [Viggle Remake](https://huggingface.co/Viggle/Viggle-Remake) came out: Viggle's weights trained on top of MiniMax-H3, which take the original video, 1 to 4 painted frames and a six-part prompt, and do the swap in one model. It has two modes. **swap** replaces the person. **edit** changes other things, such as the background, and keeps the person. So I put it on my RTX 5090, took a dance tutorial clip and replaced the dancer with a grandma who doesn't exist. Then I ran it blind against my hand-built pipeline. Remake won 89 to 74, and finished sooner. This post is how to set it up and run it yourself. ## What you need: a single 32 GB RTX 5090 and about 42 GB of checkpoints My setup: - **GPU:** a single RTX 5090, 32 GB - **ComfyUI** 0.37.0, PyTorch 2.13.0+cu130. Viggle's official test version is ComfyUI 0.42.0. - **Disk:** two int8 checkpoints, 20,970,379,616 bytes each, plus the text encoder and two VAEs The checkpoints are already pruned to int8 with the LoRA merged in. You load one file and attach no LoRA. | Role | File | Notes | |---|---|---| | Swap model | `viggle_remake_swap_pruned_int8_convrot.safetensors` | LoRA merged | | Edit model | `viggle_remake_edit_pruned_int8_convrot.safetensors` | LoRA merged | | Text encoder | `qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors` | Load CLIP, type `minimax` | | VAE | `minimax_h3_video_vae_fp16.safetensors`, `minimax_h3_audio_vae_fp32.safetensors` | | If you only want to replace a person, you only need the swap checkpoint. The edit checkpoint is for changing the scene afterward. ## How to run a Viggle Remake swap on a 5090, step by step ComfyUI is an open-source program where you build a generation pipeline by wiring nodes together. Work through these steps and you end up with the same dance video, with your character dancing in it. This part is written for people who already have a 5090 and have installed ComfyUI before. If you haven't, skip ahead to the results first. ### Step 1: Install the node pack ```bash hf download Viggle/Viggle-Remake --include "comfyui/*" --local-dir ./Viggle-Remake cp -r Viggle-Remake/comfyui/ComfyUI-Viggle-Remake custom_nodes/ ``` On ComfyUI 0.37.0 the pack won't load, because 0.37.0 has no `comfy.audio`. I added a torchaudio resample fallback inside the node pack, and after that it loaded. Viggle tested on 0.42.0, so on a newer ComfyUI you may not hit this. ### Step 2: Download the int8 checkpoints ```bash hf download Viggle/Viggle-Remake --include "int8/viggle_remake_swap_pruned_int8_convrot.safetensors" --local-dir ./Viggle-Remake hf download Viggle/Viggle-Remake --include "int8/viggle_remake_edit_pruned_int8_convrot.safetensors" --local-dir ./Viggle-Remake mv Viggle-Remake/int8/*.safetensors models/diffusion_models/ ``` Put the text encoder and the two VAEs from the table above in their usual ComfyUI model folders. ### Step 3: Fix up the official workflow Open `comfyui/workflows/remake_swap_ui.json`. It ships with a Load Diffusion Model node plus a LoRA loader. Replace both with one Load Diffusion Model that loads the int8 checkpoint, and wire it into **Viggle Remake Keyframe Until**. In Load CLIP, set the type to `minimax`. ### Step 4: Cut the source to 24 fps and a legal frame count Remake only takes frame counts of the form **17n+5**, from 90 to 345. I used 294 frames (17×17+5), which is 12.25 s at 24 fps. Convert to 24 fps first, then trim: ```bash ffmpeg -i dance.mp4 -r 24 dance-24fps.mp4 ffmpeg -i dance-24fps.mp4 -frames:v 294 source.mp4 ``` The official docs list **480 and 736** as the two standard `short_edge` settings. The node itself accepts anything from 480 to 736 in steps of 32; I only ran 480 and 736. ### Step 5 (optional): Crop in on the person If you skip this, the node scales the video to fit and center-crops it. In a wide dance shot that leaves the dancer small in the frame. My source was a fixed camera, so I found the person in each frame by background subtraction, smoothed the box center over 21 frames, and cropped to a vertical frame: person height targeted at 78%, capped at 85%, with at least 3% margin on every side, output 736×1280. After cropping, the person averaged about 78% of frame height (77.85% and 77.37% for the two windows I ran). The original is 832×480, so the crop gives the model a bigger person to work with. It doesn't add any detail the original didn't have. ### Step 6: Make the character and the painted frames The new character needs a reference image. My grandma is fictional, generated with Qwen-Image 2.1 int8 and the 4-step Turbo LoRA `Qwen-Image-2.1-viggle-turbo-4step-lora-r64.safetensors` at 768×1152: about 70, short curly gray-white hair, a red floral short-sleeve top, dark trousers, white canvas shoes. Then make the **painted frames**: frames from your source with the new character already painted in. I made mine with Qwen-Image 2.1 int8 edit, 40 steps, CFG 1, feeding it the source frame plus the character image. You can use 1 to 4. I used two, pinned at frames `73, 144` (00:03.042 and 00:06.000). ### Step 7: Write the six-part prompt The prompt has six sections, in this order: 1. `subject_definitions` 2. `summary` 3. `retention_analysis` 4. `detailed_description` 5. `overall_soundscape` 6. `non_diegetic_music` Refer to inputs with the tags `