llama : add backends of the other model to the context - #26636
Open
wOvAN wants to merge 1 commit into
Open
Conversation
Author
|
in short: now you can set |
Author
|
also the err mentioned in "Do not pass -devd / --spec-draft-device" |
wOvAN
force-pushed
the
master
branch
3 times, most recently
from
August 7, 2026 13:48
28bf9a5 to
912da63
Compare
1 task
For models that share tensors with another model through ctx_other (e.g. Gemma4Assistant, Eagle3, DFlash, DSpark), add the other model's device backends to the context scheduler so that pre-allocated shared tensors (tok_embd, output) can be scheduled. Fixes an abort when the speculative draft model uses a device list that does not cover the GPU holding the target model's output projection. Assisted-by: opencode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For models that share tensors with another model through ctx_other (e.g. Gemma4Assistant, Eagle3, DFlash, DSpark), add the other model's device backends to the context scheduler so that pre-allocated shared tensors (tok_embd, output) can be scheduled. Fixes an abort when the speculative draft model uses a device list that does not cover the GPU holding the target model's output projection.
Assisted-by: opencode
Overview
Bug (observed behavior)
Reproduction (your setup)
Additional information
Related issues
Requirements