Skip to content

Port Compass VLD v6 2B to Go and fix tokenizer MatchTimeout - #3325

Merged
esokullu merged 2 commits into
webbrain-one:mainfrom
esokullu:main
Nov 7, 2026
Merged

esokullu merged 2 commits into
webbrain-one:mainfrom
esokullu:main

Conversation

@esokullu

@esokullu esokullu commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

esokullu and others added 2 commits November 7, 2026 18:03
Port WebBrain's Compass VLD v6 2B runtime (compass-vld-v6-runtime.js) and
its decision path (runCompassVldDecision, probe variant) to Go on ONNX
Runtime's CPU provider: the LFM3-VL image processor (smart resize to
multiples of 32, Pillow-exact bicubic, 16x16 patch order), the FP16 vision
encoder, the Q8 decoder with per-layer conv states and KV caches kept as
ORT values between passes, sliced prefill, per-option verify continuations
and the Yes-minus-No probe, answering in d1's shape.

Compass is the default for new installs; an installed d1 keeps answering
until Compass is installed, and the panel switches between them and deletes
the other model's files. /decide keeps its request and response format;
/companion/v1/info reports the active model and the installed ones.

Checked against the extension's JavaScript on the same graphs
(scripts/models/compass-vld/): identical prompts, tokens, layouts, pixel
values, image features, logits and decision_hidden on text and PNG cases;
2173/2173 identical tokenizations.

Also fix the shared tokenizer's regexp2 MatchTimeout of 0, an immediate
deadline that made matches fail at random and mis-tokenized d1 input too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Companion: host Compass VLD v6 2B as the decision model, d1 as fallback
@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown

@esokullu is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@esokullu
esokullu merged commit 2f233a8 into webbrain-one:main Nov 7, 2026
1 of 3 checks passed
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.

1 participant