Video summary

PolyStrata Runs Qwen at 67 Tokens/s With 1M Context

Main summary

Key takeaways

Technology

Summary

The video examines a November 3 test in which Qwen 3.8 Flash-Next generated text at 66.8 tokens per second with a one-million-token prompt on a single RTX 5090. The narrator argues that the headline speed is real, but misleading without accounting for how long the model takes to read the prompt and how much performance depends on caching.

Test setup and headline result

  • The test used an RTX 5090 with 32 GB of VRAM, capped at 450 W; a Ryzen 7 9800X3D; and 192 GB of system RAM.
  • The five-bit model file was about 158 GB. PolyStrata ran on Ubuntu with a context window set to just over one million tokens.
  • The model produced 66.8 tokens/s at one million tokens, compared with 77.8 tokens/s at 250,000 tokens—a roughly 14% slowdown despite four times as much context.
  • This was one run, not a benchmark suite.

Why generation stays fast—and prompt reading does not

  • The model has 48 layers. According to the video’s explanation, 36 maintain compact summaries of the conversation, while the other 12 use sparse attention to select roughly 2,000 relevant tokens for each generated word.
  • This selective rereading helps keep generation fast as context grows. However, when first processing a prompt, the model still has to scan the entire context to determine what may matter.
  • That initial processing, known as prefill, took about 243.5 seconds in the headline test. The answer was only 256 tokens long and took under four seconds to generate; the narrator estimates that over 98% of the wait was spent reading.
  • Other reported million-token tests on an RTX 5090 took around four to six minutes before producing the first word. One report’s stated reading speed of just over 3,000 tokens/s does not match its 243.5-second first-token time. A separate test near 4,100 tokens/s supports the four-minute figure, so the narrator treats the discrepancy as a reporting or measurement issue.
  • Back-to-back tests also varied by several percent, so small speed differences between single runs should not be treated as reliable benchmarks.

Context length, memory, and model size

  • The model’s native context length is stated as 262,144 tokens. Extending it to one million requires a YaRN positional scaling factor of four, which can affect performance on shorter prompts.
  • The test command did not visibly show a stretch setting, so the video cannot establish whether scaling was applied.
  • The million-token KV cache is estimated at roughly 12–13 GB. The 192 GB RAM requirement was mainly driven by the large model file, not by the context itself. Other testers reportedly ran million-token sessions with less RAM by using smaller model files or different cache settings.
  • A smaller three-bit model reportedly generated faster—94 tokens/s at half a million tokens in another test—while the five-bit model in the headline run was chosen for greater fidelity. The video cites an estimate that the five-bit model matches the full-precision model’s output about 93–95% of the time, but says the practical quality difference at million-token scale has not been established.

PolyStrata and the engine behind the result

  • PolyStrata provides an installer and supports multiple models, but the video says this particular Qwen test used the original Strata engine underneath.
  • Strata had already demonstrated a million-token run in early October. The narrator therefore characterizes the headline as a useful new demonstration, but not a new engine breakthrough.

Caching changes the practical cost

The video emphasizes that the four-minute prefill is usually paid when a document must be read again—not necessarily for every question.

  • Reusing a prompt already in memory can make follow-up questions much faster. One cited test reused a half-million-token prompt and responded in milliseconds, with the first new word appearing after about 1.2 seconds.
  • A saved million-token session was reportedly written to disk in about seven seconds and restored in about six. After restoration, the engine reused nearly all of the prior context and only had to process new tokens.
  • Common ways to lose that benefit include switching chats when the cache cannot hold a full session, using chat interfaces that reread recent context, or running parallel tasks that each need their own copy of the prompt.
  • The narrator recommends keeping long-document work in one session, ensuring the cache can hold the conversation, saving sessions, and using a setting that pins the fixed document where available.
  • In the video’s example, 20 questions that each triggered a fresh read could mean about 81 minutes of prefill. With caching configured properly, the same work could take a little over four minutes, including the initial read.

Cost comparison and suggested use cases

  • Using the video’s approximate pricing, a cold million-token API input costs around 15 cents, while the local read costs roughly half a cent in electricity. However, the narrator estimates that an RTX 5090 and 192 GB RAM together could cost more than $8,000 at the cited retail prices.
  • At roughly 14.5 cents saved per cold read, the hardware would take around 55,000 cold reads to break even, before accounting for other components or the API’s lower cached-input rate. These are illustrative estimates, and the hosted model and local compressed model are not identical.
  • The setup may make sense for someone who must keep a huge private codebase, legal corpus, or sensitive records on-device and repeatedly query the same document.
  • It is less compelling for ordinary coding sessions, short prompts, or parallel-agent workloads. The narrator also cautions against buying large amounts of RAM specifically for context or always setting the maximum context size.

Practical guide from the video

  • Set the context length to match the task; use positional stretching only when needed.
  • Load a large document once, pin it or mark its boundary if the tool supports that, and avoid switching conversations unnecessarily.
  • Save long sessions before shutting down and ensure the cache is large enough to retain them.
  • Choose the model-file size according to available memory and desired quality, rather than copying a configuration from a headline test.

Main speakers and sources

  • Main speaker: A single narrator presenting an analysis of the test and its practical implications.
  • Sources discussed: The November 3 PolyStrata test report and pull request; PolyStrata and Strata documentation; Qwen model documentation; other testers’ reported runs; a technology reviewer who noted the timing discrepancy; and API-provider pricing cited in the video.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video