Skip to content

docs : update speculative decoding parameters after refactor (#22397) - #22539

Merged
ggerganov merged 4 commits into
masterfrom
gg/spec-update-docs
May 4, 2026
Merged

ggerganov merged 4 commits into
masterfrom
gg/spec-update-docs

Conversation

@ggerganov

@ggerganov ggerganov commented Apr 30, 2026 •

Copy link
Copy Markdown
Member

Overview

Update docs/speculative.md to reflect the new parameter naming scheme introduced in PR #22397:

  • Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min
  • Replace generic --spec-ngram-size-n/m with per-implementation variants (--spec-ngram-simple-*, --spec-ngram-map-k-*, --spec-ngram-map-k4v-*, --spec-ngram-mod-*)
  • Add documentation for all new parameters with defaults and descriptions
  • Update all example commands throughout the document

Also:

  • Run llama-gen-docs to update readme contents

Additional information

Follows up on #22397 which refactored the speculative decoding CLI arguments but left the docs outdated.

Requirements

@ggerganov ggerganov added the documentation Improvements or additions to documentation label Apr 30, 2026
@isaac-mcfadyen

Copy link
Copy Markdown
Contributor

LGTM, thank you!

ggerganov added 3 commits May 3, 2026 10:41
Update docs/speculative.md to reflect the new parameter naming scheme
introduced in PR #22397:

- Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min
- Replace --spec-ngram-size-n/m with per-implementation variants
- Add documentation for all new --spec-ngram-*- parameters
- Update all example commands

Assisted-by: llama.cpp:local pi
Assisted-by: llama.cpp:local pi
@ggerganov
ggerganov force-pushed the gg/spec-update-docs branch from c64e772 to 2c81891 Compare May 3, 2026 07:44
@ggerganov
ggerganov marked this pull request as ready for review May 3, 2026 07:45
@ggerganov
ggerganov requested review from a team and ngxson as code owners May 3, 2026 07:45

@ServeurpersoCom ServeurpersoCom 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.

Funny, the llama-gen-doc has an extra "]" in "--poll])" I'll take a quick look.

@ServeurpersoCom

ServeurpersoCom commented May 3, 2026 •

Copy link
Copy Markdown
Contributor

OK It's simply a typo in arg.cpp :

root@pod:/mnt/workspace/llama.cpp# git diff
diff --git a/common/arg.cpp b/common/arg.cpp
index c21598e76..dd8ce40a6 100644
--- a/common/arg.cpp
+++ b/common/arg.cpp
@@ -3380,7 +3380,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
     ).set_spec().set_examples({LLAMA_EXAMPLE_SPECULATIVE, LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_CLI}));
     add_opt(common_arg(
         {"--spec-draft-poll", "--poll-draft"}, "<0|1>",
-        "Use polling to wait for draft model work (default: same as --poll])",
+        "Use polling to wait for draft model work (default: same as --poll)",
         [](common_params & params, int value) {
             params.speculative.draft.cpuparams.poll = value;
         }
root@pod:/mnt/workspace/llama.cpp#

@ggerganov
ggerganov requested a review from a team as a code owner May 4, 2026 05:51
@ggerganov
ggerganov merged commit 846262d into master May 4, 2026
46 checks passed
@ggerganov
ggerganov deleted the gg/spec-update-docs branch May 4, 2026 05:52
cetarthoriphros pushed a commit to cetarthoriphros/llama.cpp that referenced this pull request May 9, 2026
…g#22397) (ggml-org#22539)

* docs : update speculative decoding parameters after refactor (ggml-org#22397)

Update docs/speculative.md to reflect the new parameter naming scheme
introduced in PR ggml-org#22397:

- Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min
- Replace --spec-ngram-size-n/m with per-implementation variants
- Add documentation for all new --spec-ngram-*- parameters
- Update all example commands

Assisted-by: llama.cpp:local pi

* pi : add rule to use gh CLI for GitHub resources

Assisted-by: llama.cpp:local pi

* docs : run llama-gen-docs

* arg : fix typo
baramofme pushed a commit to baramofme/llama-cpp-turboquant that referenced this pull request May 23, 2026
…g#22397) (ggml-org#22539)

* docs : update speculative decoding parameters after refactor (ggml-org#22397)

Update docs/speculative.md to reflect the new parameter naming scheme
introduced in PR ggml-org#22397:

- Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min
- Replace --spec-ngram-size-n/m with per-implementation variants
- Add documentation for all new --spec-ngram-*- parameters
- Update all example commands

Assisted-by: llama.cpp:local pi

* pi : add rule to use gh CLI for GitHub resources

Assisted-by: llama.cpp:local pi

* docs : run llama-gen-docs

* arg : fix typo
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
… (#22539)

* docs : update speculative decoding parameters after refactor (#22397)

Update docs/speculative.md to reflect the new parameter naming scheme
introduced in PR #22397:

- Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min
- Replace --spec-ngram-size-n/m with per-implementation variants
- Add documentation for all new --spec-ngram-*- parameters
- Update all example commands

Assisted-by: llama.cpp:local pi

* pi : add rule to use gh CLI for GitHub resources

Assisted-by: llama.cpp:local pi

* docs : run llama-gen-docs

* arg : fix typo
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
…g#22397) (ggml-org#22539)

* docs : update speculative decoding parameters after refactor (ggml-org#22397)

Update docs/speculative.md to reflect the new parameter naming scheme
introduced in PR ggml-org#22397:

- Replace --draft-max/--draft-min with --spec-draft-n-max/--spec-draft-n-min
- Replace --spec-ngram-size-n/m with per-implementation variants
- Add documentation for all new --spec-ngram-*- parameters
- Update all example commands

Assisted-by: llama.cpp:local pi

* pi : add rule to use gh CLI for GitHub resources

Assisted-by: llama.cpp:local pi

* docs : run llama-gen-docs

* arg : fix typo
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 examples server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants