Skip to content

ggml-openvino: bonsai perf fix - run plain GDN on GPU as PagedGatedDeltaNet - #490

Draft
cavusmustafa wants to merge 1 commit into
ravi9:dev_backend_openvinofrom
cavusmustafa:ov-bonsai-paged-gdn
Draft

cavusmustafa wants to merge 1 commit into
ravi9:dev_backend_openvinofrom
cavusmustafa:ov-bonsai-paged-gdn

Conversation

@cavusmustafa

Copy link
Copy Markdown
Collaborator

Overview

On GPU, a plain GATED_DELTA_NET (no speculative replay) now runs as the existing OpenVINO op PagedGatedDeltaNet, which updates the recurrent cache in place. Since the replay fusion replaced the earlier fused recurrence, normal decoding lost its fused path; for Ternary-Bonsai-2-27B this doubles decode speed again (3x under llama-server defaults), with no new OpenVINO op.

It is on by default when the GPU plugin supports PagedGatedDeltaNet (queried once; OpenVINO 2026.5.0 does) and GGML_OPENVINO_DISABLE_PAGED_GDN=1 turns it off. The convolution state and the speculative replay graph are unchanged. The model cache key moves to version 15 and includes the new variable.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES. Claude Code was used to profile the decode path, prototype and implement the change, run the tests and benchmarks, and draft this description. The author reviewed and understands every change.

Written with Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant