Skip to content

spikes/webgpu: benchmark vectoron with integer kernels - #60

Closed
setoelkahfi wants to merge 5 commits into
spike/webgpu-engine-benchfrom
spike/webgpu-vectoron-dev
Closed

setoelkahfi wants to merge 5 commits into
spike/webgpu-engine-benchfrom
spike/webgpu-vectoron-dev

Conversation

@setoelkahfi

@setoelkahfi setoelkahfi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Don't merge: close this once vectoron 0.3 is on crates.io. It adds vectoron-dev, the vectoron-cpu harness built against an unreleased vectoron commit, so one run lists candle, vectoron 0.2 and the new integer kernels together. It uses vectoron-cpu's sources in place and pins setoelkahfi/vectoron@e8b1cfd, which multiplies quantized weights in integers instead of dequantizing each block to f32.

At that point vectoron-cpu moves to the release.

Numbers (run 45594465473, bench.json, wasm simd128, no yields):

candle prefill / decode vectoron 0.2 vectoron dev
macos-26 Chrome 41.9 s / 3.7 tok/s 11.6 s / 2.2 8.1 s / 9.7
macos-26 WebKit 32.8 s / 4.5 10.6 s / 2.8 7.8 s / 11.1
ubuntu Chrome 44.6 s / 3.6 11.1 s / 1.7 10.3 s / 7.4

Natively on macos-26, candle still decodes faster (20.8 against 13.9 tok/s, with NEON and threads). That does not apply to the single-threaded web engine.

The run above was on the same code as this branch except the trigger widening in the PR below it.

Stacked on #52 through the engine bench PR.

@setoelkahfi
setoelkahfi added this pull request to stack #53 November 25, 2026 10:53
@setoelkahfi setoelkahfi self-assigned this Nov 25, 2026
@setoelkahfi
setoelkahfi marked this pull request as ready for review November 25, 2026 10:53
@setoelkahfi
setoelkahfi force-pushed the spike/webgpu-vectoron-dev branch from e6a743a to f2f1d85 Compare November 25, 2026 10:54

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change introduces a new vectoron-dev harness, duplicating the vectoron-cpu benchmark but building it against a specific unreleased vectoron commit that uses integer kernels. The workflow and reporting scripts are updated to build, run, and report on this new harness alongside the existing ones. The new harness is not part of the main workspace and uses the same library name as vectoron-cpu for compatibility. The change is careful to keep the new results distinct in reporting and artifact upload. No critical or warning issues are apparent in the changes; the approach is sound for a temporary benchmarking spike.


Automated review by siGit Code Review · commit f2f1d85 · see the review dashboard

setoelkahfi and others added 5 commits November 28, 2026 13:32
actionlint has been failing the branch's "Lint workflows" check on them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si>
Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
vectoron-cpu is cpu-baseline with vectoron 0.2 in place of candle: same
prompt, prefill chunk, greedy decode loop, result schema and release
profile.

engine-bench.yml runs both engines back to back in one job per runner and
browser, plus native on macos-26 and ubuntu, so each pair of numbers
comes from the same machine. It has its own workflow so that engine work
doesn't rerun the GPU matrix, and webgpu-spike.yml now ignores these
files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si>
Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
The push trigger named only spike/webgpu, so a branch stacked on it
could not run its own benchmark before merging.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si>
Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
vectoron-dev builds the vectoron-cpu harness (its sources are used in
place) against an unreleased vectoron commit, so one run of
engine-bench.yml lists candle, vectoron 0.2 and the new kernels side by
side on the same machines.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si>
Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
The path filter excluded vectoron-cpu but not vectoron-dev, so adding it
started the whole WebGPU matrix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si>
Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
@setoelkahfi
setoelkahfi force-pushed the spike/webgpu-vectoron-dev branch from f2f1d85 to 9266337 Compare November 28, 2026 12:32
@setoelkahfi
setoelkahfi removed this pull request from stack #53 November 28, 2026 13:14
@setoelkahfi

Copy link
Copy Markdown
Collaborator Author

Superseded: vectoron 0.3.0 is on crates.io, and #61 now benchmarks it with the results in findings.md.

@setoelkahfi
setoelkahfi force-pushed the spike/webgpu-engine-bench branch from e39a8df to 84e6b2d Compare November 28, 2026 13:14
@setoelkahfi
setoelkahfi deleted the spike/webgpu-vectoron-dev branch November 28, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants