Skip to content

Blackwell RTX 5090 sm_120 Qwen-VL baseline bench + forge-gap analysis - #1078

Merged
joelteply merged 1 commit into
canaryfrom
bench/qwen-vl-blackwell-rtx-vdd
May 11, 2026
Merged

joelteply merged 1 commit into
canaryfrom
bench/qwen-vl-blackwell-rtx-vdd

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Position 3 — Windows/5090 GPU local inference VDD

First-pass per-tier perf + correctness validation of the local multimodal path required by the #1072 sensory persona alpha contract, measured on Blackwell (RTX 5090, sm_120, CUDA 12.8, FP4 tensor cores). Establishes the per-tier baseline; does not modify models.toml or the resolver.

Adds

  • scripts/bench-blackwell-vl.sh — Docker-based reproducer that builds llama.cpp upstream HEAD with CMAKE_CUDA_ARCHITECTURES=120-real, downloads Qwen2-VL-7B Q4_K_M + mmproj from bartowski/Qwen2-VL-7B-Instruct-GGUF, runs llama-bench (text-only) and llama-mtmd-cli (vision smoke). Idempotent via named volume qwen-vl-bench-work. CUDA_ARCH=native makes the same script work on Ada / Hopper / Turing.
  • docs/benchmarks/blackwell-rtx5090-qwen-vl.md — measured numbers, methodology, forge-gap analysis, and 3 paths forward.

Measured (RTX 5090, sm_120, llama.cpp e936660, 2026-05-11)

Test Tokens/sec
Text pp512 12 345.58 ± 1 674.49
Text tg128 214.61 ± 28.74
Vision-conditioned gen 200.96
Image encode (4 015 tokens) ~880 ms
Total round-trip 2 595 ms

Vision smoke output for a 1288×1288 cat photo: "A tabby cat with green eyes and a striped coat is sitting on a ledge with a blurred background of bare branches and a blue sky." — valid, coherent multimodal response.

Context: 7B Q4_K_M on RTX 4090 (Ada sm_89) typically lands at ~120–150 t/s tg128 and ~6–8k t/s pp512. Blackwell sm_120 here is ~30–40 % faster, consistent with higher SM count + FP4 tensor cores.

The actual forge gap

#1072 declared Qwen 3.5/3.6 VL as the first-class local target. The bartowski Qwen 2.5-VL GGUF mirror returns an auth error against anonymous fetch; Qwen 3.x VL has minimal vendored llama.cpp support (only 3 files mention qwen3_vl). But the headline gap is bigger: no single model in models.toml has all four standard_persona caps {Chat, Vision, AudioInput, AudioOutput}:

Model Chat Vision AudioIn AudioOut
qwen2-vl-7b-instruct ✓ ✓ — —
qwen2-audio-7b-instruct (disabled) ✓ — ✓ —

The audio entry is commented out due to a Mac/Metal OOM that occurs when both adapters eager-load at boot. RTX 5090 32 GB handles both simultaneously without paging — so this is a tier-aware substrate problem, not a model-availability problem.

This is why cognition::model_resolver::tests::current_registry_state_fails_alpha_bar_naming_the_forge_gap ships as a passing test that asserts the failure — the resolver's NoMultimodalBase fires on every host.

Three paths forward

  1. Qwen-Omni single-model GGUF when upstream catches up
  2. Tier-aware audio re-enable using HostCapability.available_memory_mb from #1075
  3. Multi-model virtual StandardPersona — extend RequirementProfile from #1074 so resolve_model returns a per-capability dispatch table

Path 3 maps cleanest to the Rust-first runtime substrate codified in #1070 and the adaptive_throughput planner + FootprintRegistry leases from #1062–#1065.

Out of scope

  • No models.toml changes — the existing Qwen2-VL row is correct; the audio row's re-enable is a tier-aware substrate decision (Path 2/3).
  • No resolver or adapter changes — Path 3 above crosses Position 1 / Position 3 ownership and needs Codex's input.
  • No vendored llama.cpp refresh — vendored is at e21cdc11a (28 days older than upstream); a refresh is its own PR.

Validation

  • scripts/bench-blackwell-vl.sh ran end-to-end on RTX 5090 with --gpus all, produced the numbers above.
  • Normal precommit hook passed (TypeScript compilation OK, no Rust/TS file changes so no lint to run).
  • Normal pre-push hook passed (TypeScript clean 22s, ESLint baseline-tolerant: 6177 errors vs baseline 6289, no Rust/Docker changes so cargo/Docker skipped).

🤖 Generated with Claude Code

Adds scripts/bench-blackwell-vl.sh: Docker-based reproducer that builds
llama.cpp upstream HEAD with CUDA arch sm_120, downloads Qwen2-VL-7B
Q4_K_M + mmproj, runs llama-bench (text-only) and llama-mtmd-cli (vision
smoke). Uses named volume qwen-vl-bench-work for idempotent re-runs.
CUDA_ARCH/MODEL_REPO/MODEL_FILE/MMPROJ_FILE/TEST_IMAGE_URL all
env-overridable so the harness works on other GPU tiers.

Adds docs/benchmarks/blackwell-rtx5090-qwen-vl.md: measured numbers from
the first run on RTX 5090 (pp512=12345 t/s, tg128=215 t/s text-only;
tg=201 t/s vision-conditioned, ~2.6s total for 4015 image tokens + 28
output tokens, 1290 MiB mmproj footprint). Documents the actual #1072
forge gap (no single model in models.toml has all 4 standard_persona
caps: Chat/Vision/AudioInput/AudioOutput) and proposes 3 paths forward
(wait for Qwen-Omni GGUF, tier-aware audio re-enable, or multi-model
virtual StandardPersona dispatch via RequirementProfile extension).

Per #1072 sensory persona alpha contract + #1074 standard_persona
requirement profile. Establishes the per-tier perf baseline; does not
modify models.toml or the resolver.
@joelteply
joelteply merged commit 06c4926 into canary May 11, 2026
2 checks passed
@joelteply
joelteply deleted the bench/qwen-vl-blackwell-rtx-vdd branch May 11, 2026 21:11
joelteply added a commit that referenced this pull request May 13, 2026
Codex methodology flag 2026-05-11: image prompts must use randomized
opaque fixture names with manifest assertions and negative controls;
repeated cat.jpg-style prompts let text-only models bluff vision.

Adds test-data/images/manifest.json: pairs the 7 already-committed
opaque fixtures with SHA-256, content_kind, leakage_risk classification,
expected_facts (descriptive ground truth), ocr_text (literal text overlay
if any), grade_questions, and grade_expected_substrings (passing criteria).
Manifest authored by direct visual inspection of each fixture, no
filename or source-URL consultation.

Adds scripts/bench-blackwell-vl-v2.sh: bench harness reading the
manifest, running llama-mtmd-cli against each fixture with the model
under test, capturing stdout (model response), scoring against
grade_expected_substrings, reporting per-fixture PASS/FAIL plus
summary. Stages fixtures via tar pipe (Docker Desktop WSL2 bind-mount
limitation workaround); reuses omni-bench-work named volume from
scripts/bench-blackwell-vl.sh.

Adds docs/benchmarks/sensory-v2-manifest-results.md: measured numbers
on RTX 5090 sm_120 for Qwen2.5-Omni-7B (5/7 PASS) and
Qwen3-Omni-30B-A3B-Instruct (6/7 PASS). 30B-A3B produces consistently
richer responses than 7B on identical prompts. Both models OCR exact
text overlays from meme fixtures (impossible without real pixel
processing — proves vision is active, not template-bluff). Both fail
on the WebP fixture with empty stdout — new upstream gap surfaced for
llama-mtmd-cli WebP decode.

Per Joel's #1072 sensory persona alpha contract + Codex's #1088
plasticity workstream doc + Position 3 Windows/RTX VDD lane. Builds on
PR #1078 (V1 baseline). Does not modify models.toml or the resolver.

Co-authored-by: Test <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant