Skip to content

ggml-backend: in-place op must be scheduled on a backend that can write the tensor - #33716

Open
jeffbolznv wants to merge 1 commit into
ggml-org:masterfrom
jeffbolznv:fix-inplace-backend-placement
Open

jeffbolznv wants to merge 1 commit into
ggml-org:masterfrom
jeffbolznv:fix-inplace-backend-placement

Conversation

@jeffbolznv

Copy link
Copy Markdown
Contributor

Overview

I asked codex to look at some of the vulkan CI failures we've had going on for several days. It found a backend scheduler issue where an in-place op could be scheduled on a backend that doesn't support the buffer leading to a crash. This might fix the gpu-vulkan-intel-windows CI job.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, codex debugged and fixed. I verified the repro/fix and reviewed.

@jeffbolznv
jeffbolznv requested a review from ggerganov as a code owner December 4, 2026 16:56
@github-actions github-actions Bot added testing Everything test related ggml changes relating to the ggml tensor library for machine learning labels Dec 4, 2026
@ggerganov

Copy link
Copy Markdown
Member

Just curious - which is the inplace op causing the issue?

@ggerganov ggerganov self-assigned this Dec 4, 2026
@jeffbolznv

Copy link
Copy Markdown
Contributor Author

The local repro I have is in deepseek4.1 there's an in-place add (#33495) after lightning_indexer, where the lightning_indexer falls back to CPU when fp16 is not supported.

  test-llama-archs.exe -a deepseek41 -s 1 -o repro-models
  set GGML_VK_DISABLE_F16=1
  test-llama-context.exe --device Vulkan0 -t 2 -m repro-models\deepseek41-moe.gguf --test baseline

@ggerganov

Copy link
Copy Markdown
Member

I see - just to confirm, with #33721 you don't observe the repro, correct?

@jeffbolznv

Copy link
Copy Markdown
Contributor Author

Yes, that change works too.

@ggerganov

Copy link
Copy Markdown
Member

I merged the #33721. This change here is still worth having IMO

This branch has not been deployed

No deployments
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 testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants