Skip to content

openvino: serve GET_ROWS on a weight view from the base Constant - #28381

Merged
ServeurpersoCom merged 2 commits into
ggml-org:masterfrom
ServeurpersoCom:openvino-get-rows-weight-view
Sep 30, 2026
Merged

ServeurpersoCom merged 2 commits into
ggml-org:masterfrom
ServeurpersoCom:openvino-get-rows-weight-view

Conversation

@ServeurpersoCom

@ServeurpersoCom ServeurpersoCom commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Overview

This fixes the GET_ROWS failures that #28253 exposes on the OpenVINO runner, a view over a quantized weight was registered as a dynamic typed Parameter instead of being served by the base Constant, so the weight collection now resolves view_src and the row offset is folded into the gather indices, validated locally on the CPU device with the CI toolkit (50/50 GET_ROWS, 3919/3919 full suite).

Additional information

Resolve view_src when collecting weight Constants so a view over a quantized weight no longer becomes a dynamic typed Parameter, and fold the row offset of the view into the gather indices instead of slicing the dequantization subgraph.

Test

Tested on the CPU device with the CI 2026.3.1 toolkit, which reproduces the same 8 failures as the GPU runner, GET_ROWS goes from 42/50 to 50/50 and the full suite passes 3919/3919.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES Fable 5.1 MCP loop on rootless container with Nvidia GPU

@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning OpenVINO labels Sep 4, 2026

@wine99 wine99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for fixing. cc @cavusmustafa @ravi9

@ServeurpersoCom
ServeurpersoCom force-pushed the openvino-get-rows-weight-view branch from 2d62eac to 9e2a46e Compare September 7, 2026 10:23
@ServeurpersoCom

Copy link
Copy Markdown
Contributor Author

Rebase only

@ServeurpersoCom
ServeurpersoCom force-pushed the openvino-get-rows-weight-view branch from 9e2a46e to e5f02c5 Compare September 27, 2026 18:05
@ServeurpersoCom

Copy link
Copy Markdown
Contributor Author

Rebased on top of #28638 and #29009, neither touches the weight view path. Also lifts the supports_op rejection added in #28253 as a stopgap, so the vs0 cases now reach OpenVINO.

Tested with OpenVINO 2026.4 on the CPU device:

  • master without the rejection: GET_ROWS 43/51, q4_0, q8_0 and q6_K views fail with ERR ~2.1
  • this PR: GET_ROWS 51/51, full test-backend-ops 4344/4344

Resolve view_src when collecting weight Constants so a view over a
quantized weight no longer becomes a dynamic typed Parameter, and fold
the row offset of the view into the gather indices instead of slicing
the dequantization subgraph.
The supports_op rejection of a quantized src0 view with a nonzero
offset keeps the vs0 GET_ROWS cases of ggml-org#28253 away from OpenVINO.
The weight view now resolves to the base Constant with the row offset
folded into the gather indices, so the rejection goes away.
@ServeurpersoCom
ServeurpersoCom force-pushed the openvino-get-rows-weight-view branch from 4d24e63 to 2279a2a Compare September 30, 2026 06:55
@ServeurpersoCom
ServeurpersoCom merged commit 25747b0 into ggml-org:master Sep 30, 2026
15 of 16 checks passed
pierreguillot pushed a commit to Ircam-Partiels/llama.cpp that referenced this pull request Oct 1, 2026
…l-org#28381)

* openvino: serve GET_ROWS on a weight view from the base Constant

Resolve view_src when collecting weight Constants so a view over a
quantized weight no longer becomes a dynamic typed Parameter, and fold
the row offset of the view into the gather indices instead of slicing
the dequantization subgraph.

* openvino: lift the quantized GET_ROWS view rejection

The supports_op rejection of a quantized src0 view with a nonzero
offset keeps the vs0 GET_ROWS cases of ggml-org#28253 away from OpenVINO.
The weight view now resolves to the base Constant with the row offset
folded into the gather indices, so the rejection goes away.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning OpenVINO

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants