Details
openvino: update to OV 2026.5, CI fixes, add model support, add mtmd support (#33505)
- ggml-openvino: translate recurrent cache replay graphs
Assisted-by: Codex
- ggml-openvino: use host USM for 4-D KV on integrated GPUs
Assisted-by: Codex
- Revert "ggml-openvino: use host USM for 4-D KV on integrated GPUs"
This reverts commit 575db27.
- ggml-openvino: key compiled replay graphs by declared control shapes
Assisted-by: Codex
-
ggml-openvino: represent replay writes with Assign sinks
-
ggml-openvino: document writable replay graph contract
-
ggml-openvino: remove legacy native recurrent cache ops
-
ggml-openvino: document replay graph selection during prefill
-
ggml-openvino: enable Qwen3.5 and Gemma4 image inputs
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)
- ggml-openvino: keep allocation IDs out of persistent cache signatures
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.
- ggml-openvino: preserve explicit F32 MatMul precision per node
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.
- ggml-openvino: remove the node precision availability guard
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.
- ggml-openvino: document pending audio dynamics and preprocessing caching
Assisted-by: Codex
- ggml-openvino: declare the node precision helper in mulmat
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
- ggml-openvino: Enable MOE models on NPU for Qwen3.6-35B-A3B
NPUW, the partitioning layer of the NPU plugin, has its own MoE support.
It isolates the experts into functions and runs only the routed experts for
each token, with the router on the host (the HOST_ROUTED mode).
This PR translates the MoE block of a model into the form NPUW recognises,
and sets the NPUW properties for that mode.
- ggml-openvino: find the moe block once per decoder for the npu config
ov_graph_compute_static scanned every node of the graph for a MoE block on
each call, cache hits included, to choose the NPUW MoE properties.
set_input_output already matches each MoE block when the decoder is built,
so it now records the result in GgmlOvDecoder::has_moe_block(), and the
properties are added from that flag when a graph compiles. The properties
are the same as before.
-
ggml-openvino: docs: OpenVINO version and Linux memory setting for MoE models on the NPU
-
ggml-openvino: fix the build_rs state move on the dynamic path
-
ggml-openvino: check the input rank before slicing packed views
-
ggml-openvino: repeat the soft_max mask over broadcast dims
-
ci : run OpenVINO self-hosted job on the PTL runner with Ubuntu 26.04
-
docker : use Ubuntu 26.04 for the OpenVINO image
-
docs : pick the OpenVINO archive for the Ubuntu version
-
ci : set a 120 min timeout on the OpenVINO self-hosted job
-
ggml-openvino: use the in-place 4-D KV cache by default with OpenVINO 2026.5 or later
-
openvino: fix the clang-format of the KV_4D version check
-
openvino: update OpenVINO to 2026.5 and GPU/NPU drivers
-
openvino: skip GPU convolutions that OpenVINO 2026.5 gets wrong
-
docs : update the OpenVINO validation system and NPU limitations
-
docs : move GGML_OPENVINO_ENABLE_KV_4D to the default optimizations
-
docs : fix OpenVINO docs inconsistencies
-
ggml-openvino: support folded MoE weight scales and fused MoE for Q4_0 experts
Gemma 4 26B-A4B stopped loading on the OpenVINO backend after #28898 folded
the per-expert ffn_down_exps.scale into ggml_mul_mat_id_ext. supports_op
rejected every op with a folded scale, so the down experts were placed on the
CPU, whose MUL_MAT_ID then asserted on the expert ids produced by OpenVINO
(repack.cpp: i02 >= 0 && i02 < n_as), on every OpenVINO device.
- supports_op: accept the MUL_MAT_ID weight scale (src[3]). Keep rejecting
the activation scale, a scale on a dense MUL_MAT, and scaled MXFP4 experts. - translate_mul_mat_id: pick each slot's weight scale by its expert id and
multiply it into the result (per-tensor, per-expert and
per-channel-per-expert, as on CPU). A per-expert scale gets the router
weights' shape, so FuseMoeCompressedFusedGateUp still folds it into the
routing weights. - GPU: convert Q4_0 MoE experts to Q4_1_64 as for Q4_K/Q5_K/Q6_K, so the
plugin fuses them into MOECompressed instead of the slow GatherMatmul
prefill path.
gemma-4-26B-A4B-it QAT Q4_0 on an Arc B390 GPU, 8k prompt: loads and answers
correctly; prefill 65 -> 1179 tok/s, decode 21.4 tok/s.
-
openvino: fix MUL_MAT_ID weight scale views and skipped slots
-
ggml-openvino: keep the Q5_0 layout instead of converting it to Q4_0_64
-
ggml-openvino: swap the dynamic dim in TRANSPOSE also when both dims have the same size
-
ggml-openvino: support REPEAT to an empty dim and GET_ROWS on an empty tiled batch
-
openvino: drop test-backend-ops changes
-
ggml-openvino: release host weight buffers by default on GPU and restore them from the model file
-
openvino: keep scaled MUL_MAT_ID out of the tiled MoE path
-
ggml-openvino: reshape the MUL_MAT_ID activations of a one-token static graph
-
openvino: reject in-place UNARY on a non-contiguous view
-
docs : update OpenVINO validated models (#475)
-
docs : update OpenVINO validated models
-
docs : add Qwen3-VL image sample
-
ggml-openvino: reconvert decoder when a one-token graph is reused with more tokens
-
ggml-openvino: reconvert ambiguous one-token graphs and release old model
A one-token graph is ambiguous only when a layer has a single KV head
(MLA's compressed KV or MQA): the head and token dimensions then have
identical sizes and strides.
Reconvert only these graphs. Before compiling the replacement, release
the original one-token model, including its shared cache entry, infer
request, and replay writebacks. This avoids compiling and retaining two
copies of the model weights on the device.
- ggml-openvino: do not interpret a view's token dim as heads
process_view_input_new has two head-splitting paths that interpret
view dimension 1 as the head dimension.
For one-token graphs, a plain column split such as LFM2's and
Nemotron-H's [n, n_tokens] views of a [3n, n_tokens] projection can
have the same shapes and strides as the packed-head layouts expected
by these paths. The resulting reshape places tokens on the wrong axis.
Apply the head splits only when the decoder's dynamic dimension is
not dimension 1. Add get_view_input_dynamic_dim() to expose this
information.
-
openvino: keep one-token models apart in the compiled model cache
-
docs : reorganize OpenVINO developer docs
-
openvino: pin the ubuntu24 archive in the build cache job
-
openvino: name the ubuntu24 flavor in the OpenVINO cache key
-
docs : stop the Ubuntu build script on unsupported versions
Co-authored-by: Yu, Zijun zijun.yu@intel.com
Co-authored-by: yzhou51 yaowei.zhou@intel.com
Co-authored-by: Suhas Somashekar suhas.somashekar@intel.com
Co-authored-by: Anisha Kulkarni anisha.dattatraya.kulkarni@intel.com
Co-authored-by: Sabnis, Omkar omkar.sabnis@intel.com
Website:
Attestations:
macOS/iOS:
- macOS Apple Silicon (arm64)
- macOS Apple Silicon (arm64, KleidiAI enabled) DISABLED
- macOS Intel (x64)
- iOS XCFramework
Linux:
- Ubuntu x64 (CPU)
- Ubuntu arm64 (CPU)
- Ubuntu 24.04 s390x (CPU)
- Ubuntu 26.04 s390x (CPU)
- Ubuntu 26.04 s390x (zDNN)
- Ubuntu x64 (Vulkan)
- Ubuntu arm64 (Vulkan)
- Ubuntu x64 (CUDA 12) - CUDA 12.8 libraries
- Ubuntu x64 (CUDA 13) - CUDA 13.5 libraries
- Ubuntu arm64 (CUDA 13) - CUDA 13.5 libraries
- Ubuntu x64 (ROCm 10.0)
- Ubuntu x64 (OpenVINO)
- Ubuntu x64 (SYCL FP32)
- Ubuntu x64 (SYCL FP16)
- Linux arm64 (Snapdragon: CPU, Adreno GPU, Hexagon NPU) - setup guide
Android:
Windows:
- Windows x64 (CPU)
- Windows arm64 (CPU)
- Windows arm64 (OpenCL Adreno)
- Windows x64 (CUDA 12) - CUDA 12.4 DLLs
- Windows x64 (CUDA 13) - CUDA 13.5 DLLs
- Windows arm64 (CUDA 13) - CUDA 13.5 DLLs
- Windows x64 (Vulkan)
- Windows arm64 (Vulkan)
- Windows x64 (OpenVINO)
- Windows x64 (SYCL)
- Windows x64 (ROCm 10.0)
openEuler:
- DISABLED
- openEuler x86 (310p)
- openEuler x86 (910b, ACL Graph)
- openEuler aarch64 (310p)
- openEuler aarch64 (910b, ACL Graph)
UI: