Skip to content

Blog: 509 tokens a second of prompt - the Hadamard route ships - #190

Merged
bong-water-water-bong merged 2 commits into
mainfrom
blog-hadamard
Sep 28, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
blog-hadamard

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Post for #189: why prompt processing is a matrix-unit problem, the Hadamard rotation and why it is exact, the numbers (pp512 509, KLD 0.055 vs 0.084 unrotated, 0.029 at 8-bit), the tool + serve stamp routing, the delta-net prefill kernels, and what the route is for. Every number is from docs/lean.md or docs/serve.md. Site built locally; links resolve.

🤖 Generated with Claude Code

Why prompts are a matrix-unit problem, the rotation (x.w = (Hx).(Hw), exact on the 8-bit
path: KLD 0.031 vs 0.029), the numbers (pp512 509, KLD 0.055 vs 0.084 unrotated), the tool
and serve's stamp routing, the delta-net prefill kernels, and what the route is for (decode
11 tok/s; Vulkan + DFlash2 for long answers). Numbers from docs/lean.md and docs/serve.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@context7

context7 Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Docs7 for 1bit-monster/engine

Result Status Action
Deployment ➖ Not used —
Content review ➖ Did not run. This site has no agent runs available this month. Wait for the monthly reset or check your Docs7 plan. —

Commit 76fb1ab

@github-actions

Copy link
Copy Markdown

Preparing review...

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

189 - Partially compliant

Compliant requirements:

  • Pin third_party/llama.cpp-rocmfpx to d572668 with required kernel features
  • Add tools/hadamard_q4_0.py with proper rotation and stamping logic
  • Update 1bit serve to recognize and route based on the stamp
  • Add test tests/hadamard_route.sh for routing verification
  • Update docs/lean.md with route details and numbers
  • Publish the Qwen3.8-27B-Q4_0-H32-GGUF file

Non-compliant requirements:

  • The PR description mentions "Every number is from docs/lean.md or docs/serve.md" but does not explicitly verify that all numbers in the blog post are measured on the hardware (e.g., the prompt speed of 509 tok/s, KLD values, etc.)

Requires further human verification:

  • Verification that all numbers in the blog post are actually measured on the hardware (e.g., prompt speed, KLD values, perplexity)
  • Confirmation that the published Qwen3.8-27B-Q4_0-H32-GGUF file is indeed generated using the tool and properly stamped
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Hardware Verification for Numbers

The blog post claims that all numbers are measured on the hardware, but does not provide explicit verification that these measurements were actually taken on the Strix Halo hardware. Specifically, the prompt speed of 509 tokens per second, KLD values, and perplexity figures should be confirmed to be from actual hardware measurements rather than theoretical or simulated values.

The rotation removes a third of the 4-bit error. Against the 8-bit path, the rotated file reads
prompts 28% faster for 1.2% more perplexity. Through `1bit serve`, a 1,838-token prompt runs at
440-470 tokens a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant