Repository navigation
Conversation
ravi9
force-pushed
the
dev_backend_openvino
branch
2 times, most recently
from
November 27, 2026 02:29
7d8ccda to
e0b9fd7
Compare
Reuse Qwen vision graphs across image resolutions with runtime spatial shapes and interpolation targets. Support Gemma spatial positions, normalized vision attention and variable image-embedding counts. Preserve recurrent cache state and sequence grouping during parallel serving, using the native single-output cache-update contract. Keep KV head dimensions fixed after relayout when applying dynamic axes. Validated image requests and four-slot unified/split KV serving for Qwen3.5 and Gemma4 E2B on OpenVINO CPU and GPU. Vision and recurrent backend regressions passed 21/21 on each device. (cherry picked from commit d64dcb5594db74c0f03945cac668aefcca75e0b1)
Store weight allocation generations separately from graph descriptors. Private cache keys retain allocation isolation, while dynamic model fingerprints stay stable when the same source weights are reloaded.
Honor GGML_PREC_F32 on MatMul src1 with node precision guards and precision-sensitive input paths, including grouped-query attention. Keep other branches at their configured precision. Probe the runtime helper and include precision guards in cache identities. Validated on the local OpenVINO 2026.5.1 CPU/GPU runtime: 12/12 F32 precision cases under CPU default, CPU BF16 and GPU FP16 hints; mixed-precision branches and cached F32/default/F32 transitions; five real audio preprocessing lengths per device.
The official OpenVINO 2026.4.1 Runtime SDK exports the node precision helper. Remove its link probe and conditional fallback while retaining the Runtime SDK declaration shim and the recurrent-cache-op guard. Validated the downloaded SDK with a compiled/linked API probe and 12/12 F32 MatMul cases on default CPU and FP16-hint GPU. The local 2026.5.1 build also passes 12/12 on each device. An additional 2026.4.1 CPU BF16-hint check has seven precision failures, independent of this availability-guard removal.
Assisted-by: Codex
Move the exported helper declaration into mulmat.cpp and remove the single-consumer precision_control.hpp header. Validated builds and 12/12 F32 MatMul cases on CPU/GPU with both the local OpenVINO build and the official 2026.4.1 Runtime SDK. Assisted-by: Codex
wine99
force-pushed
the
feat/openvino-multimodal
branch
from
November 27, 2026 08:33
b41ce56 to
304c8a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Enable Qwen3.5 and Gemma4 E2B image inputs on OpenVINO CPU/GPU, including four-slot serving with unified and split KV. Qwen3.5 reuses the vision graph across image resolutions; Gemma4 keeps resolution-specific encoder graphs. Fix independent spatial RoPE inputs, attention scaling, embedding-input shapes, and recurrent-state handling needed by these paths.
Keep process-local weight allocation IDs out of persistent cache fingerprints. Honor explicit F32 MatMul input precision with node-level guards, preserving the configured precision of other branches. The required helper was verified in the official OpenVINO 2026.4.1 Runtime SDK.
Additional information
Pre-rebase validation
Gemma4 audio remains disabled. Follow-up work is dynamic sample/frame and Conformer block sizes, runtime padding and view/state offsets, and compiled-model reuse for the small weightless preprocessing graph, which currently takes the uncached naive path based on node count. Static/NPU multimodal execution is untested.
Validation after rebase
Rebased onto
dev_backend_openvinoata11efd3e1and kept the base branch's recurrent replay implementation. On the rebased head304c8a750, all 80 streaming image requests completed across OpenVINO and Vulkan. Qwen passed 16/16 four-slot image and follow-up checks across split and unified KV. The focused F32 MatMul tests passed 12/12 on default OpenVINO CPU and 12/12 on OpenVINO GPU with the FP16 inference hint.Large-image GPU benchmark
Intel Arc B390, local OpenVINO 2026.5.1 and Mesa Vulkan, Q4_0 language models, and F16 vision projectors. Each measurement column gives OpenVINO / Vulkan. The table reports medians of four warm repeats per size with one server slot and prompt caching disabled. Decoder throughput measures generation after prefill. Full response time covers the streaming request from submission through all 32 generated tokens.
The 2048x2048 source produced a 1440x1440 encoder input for Qwen and a 1584x1584 encoder input for Gemma. Vulkan generated tokens faster at every size. OpenVINO completed the full response sooner for both models at sizes of 1024x1024 and above.
With server warmup disabled, first-request TTFT at 512x512 was 4.41 / 1.00 s for Qwen and 26.51 / 0.60 s for Gemma.
Requirements