github ggml-org/llama.cpp b10672

pre-releaseone hour ago
Details

OpenVINO: Update OV to 2026.3.1, whisper.cpp support, Qwen3.5 on NPU, and new ops (#27843)

  • OpenVINO Backend: Fuse IM2COL + MatMul convolution into OpenVINO convolution

  • ci:ggml-ov: Skip recurrent state rollback tests

  • ci:ggml-ov: Skip recurrent state rollback tests

  • Update OPENVINO.md

  • ggml-openvino : add env-var gated op support debugging

  • Fix ggml_rope_set_offset case

  • OpenVINO backend: Support Whisper.cpp

  • Fix code style

  • openvino : enable qwen35 on NPU

Static shapes:

  • get_graph_input_shape() left the s_copy / s_copy-leaf inputs dynamic
    ([1,1,1,-1]) even in static mode, which propagated a dynamic slot dim through
    GET_ROWS into the conv/GDN state, the state reshapes and the GDN output.
  • With -np 1 the s_copy defrag remainder gathers zero rows; short-circuit that
    CPY to the untouched cache instead of emitting a degenerate Slice/Concat, and
    skip binding its zero-byte ggml tensor as an output (the dynamic path already
    did the latter, the static path wrote the full cache over a 0-byte buffer).

Token-count independence:

  • In static mode the compiled model's token count is the prefill chunk size or
    1, not the captured cgraph's. Offsets derived from the captured count were
    therefore wrong. Anchor the GDN state slice at the end of the packed
    [attn | state] output and drop the rs_src_begin runtime inputs, and make
    VIEWs over the GDN output / conv_input pass through so the consumer does the
    slicing.
  • CONT could not identify its token axis when the graph was captured with a
    single token (every trailing dim has the same stride and size 1) and baked
    the captured shape into the prefill model.

Chunked prefill:

  • The last chunk is padded with fabricated tokens. Attention masks them, but
    the recurrent path folded them into cache_r/cache_s permanently. Add a
    chunk_valid_len runtime input, use it to zero g and beta for padded steps
    (making the recurrence an exact identity) and to end the conv snapshot window
    at the last valid token, and disable the recurrent-cache reset after the
    first chunk so earlier chunks are not wiped.
  • get_is_prefill() and the chunk loop bound read inp_pos->ne[0] directly, but
    IMROPE stacks 4 position planes, so every decode step was run through the
    padded prefill model and the loop ran extra out-of-bounds chunks.

cache_rs_reset_idx/len now stay runtime Parameters in static mode, since
can_reuse_statically() does not invalidate the cached model on ComputeParams
changes. Add GGML_OPENVINO_FORCE_STATIC to exercise the static path on CPU.

  • Update to OpenVINO 2026.3.1

  • ggml-openvino: forward NPU compilation mode parameters

Add GGML_OPENVINO_NPU_COMPILE_CONFIG to the backend's cached environment so callers can configure the NPU compiler without using the generic property escape hatch.

When the value is non-empty, pass it to OpenVINO as NPU_COMPILATION_MODE_PARAMS. This enables settings such as optimization-level=3 for NPU compilation while preserving the existing behavior when the variable is unset and leaving CPU and GPU configuration unchanged.

Document the variable, its NPU-only scope, and the optimization-level=3 example in the OpenVINO backend runtime configuration table.

  • ggml-openvino : support RELU, POOL_2D, QUICK_GEGLU, and ROLL ops

  • reorder op table

  • exclude GPU/NPU failing POOL_2D case

  • move op type detection to compute_op_case

  • Relax rope supported cases

  • Fix pool case

  • Update openvino doc, gpu driver in ov docker

  • openvino: remove unused static remote context branch

  • openvino: parallelize static model build

  • Apply editorconfig


Co-authored-by: Mostafa Faheem mostafaaafaheem@gmail.com
Co-authored-by: Ravi Panchumarthy ravi.panchumarthy@intel.com
Co-authored-by: zhaixuejun1993 xuejun.zhai@intel.com

Website:

Attestations:

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI:

Don't miss a new llama.cpp release

NewReleases is sending notifications on new releases.