Skip to content

spec: single device drafter should create meta backend wrapper - #28390

Merged
am17an merged 5 commits into
masterfrom
aman/draft-single-device
Sep 8, 2026
Merged

spec: single device drafter should create meta backend wrapper#28390
am17an merged 5 commits into
masterfrom
aman/draft-single-device

Conversation

@am17an

@am17an am17an commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Overview

when using --spec-draft-device CUDA0 but also -sm tensor, we will create a Meta backend context which consumes some VRAM which is not necessary as it's never used. This PR adds a special case to stop that from happening

Additional information

Requirements

@am17an
am17an requested a review from a team as a code owner September 4, 2026 12:31
Comment thread common/speculative.cpp
@am17an am17an mentioned this pull request Sep 4, 2026
@0cc4m

0cc4m commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

As discussed, I added the small change that draft devices defaults to global devices value, this is way more intuitive and avoids having to specify them separately in many cases.

@0cc4m
0cc4m requested review from a team and ngxson as code owners September 6, 2026 07:55
| `--reasoning-budget N` | token budget for thinking: -1 for unrestricted, 0 for immediate end, N>0 for token budget (default: -1)<br/>(env: LLAMA_ARG_THINK_BUDGET) |
| `--reasoning-budget-message MESSAGE` | message injected before the end-of-thinking tag when reasoning budget is exhausted (default: none)<br/>(env: LLAMA_ARG_THINK_BUDGET_MESSAGE) |
| `--reasoning-preserve, --no-reasoning-preserve` | preserve reasoning trace in the full history, not just the last assistant message (default: template default)<br/>compatible with certain templates having 'supports_preserve_reasoning' capability<br/>example: https://docs.z.ai/guides/capabilities/thinking-mode#preserved-thinking<br/>(env: LLAMA_ARG_REASONING_PRESERVE) |
| `--reasoning-preserve, --no-reasoning-preserve` | preserve reasoning trace in the full history, not just the last assistant message (default: enabled)<br/>compatible with certain templates having 'supports_preserve_reasoning' capability<br/>example: https://docs.z.ai/guides/capabilities/thinking-mode#preserved-thinking<br/>(env: LLAMA_ARG_REASONING_PRESERVE) |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

probably needs a rebase

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.

Did it change again? Otherwise this just means someone forgot to regenerate the readmes when changing the default for reasoning-preserve.

@github-actions github-actions Bot added documentation Improvements or additions to documentation server labels Sep 6, 2026
@am17an
am17an merged commit 415e909 into master Sep 8, 2026
23 of 26 checks passed
x1250 pushed a commit to x1250/llama.cpp that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants