Skip to content

server : functionality test for new spec dec - #31027

Merged
ServeurpersoCom merged 10 commits into
ggml-org:masterfrom
nv-vankit:spec-method-ci-tests
Nov 9, 2026
Merged

ServeurpersoCom merged 10 commits into
ggml-org:masterfrom
nv-vankit:spec-method-ci-tests

Conversation

@nv-vankit

@nv-vankit nv-vankit commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Overview

This PR adds regression tests for six speculative-decoding methods: MTP, DFlash, DSpark, EAGLE-3, DFlash2, and LiLiCorr. Tests verify completion, drafting, verification, acceptance rate, and acceptance length.

Models are pinned to ggml-org/spec-for-testing-GGUF revision a0736c8e98d3fe580352dacffa3fbd5e9c22a437.

  • Compact tier: 6.271 GiB
  • Nightly tier: 41.422 GiB
  • Complete suite: 47.693 GiB

The compact-tier metrics were reproduced in three identical GB10 runs against the PR merged with current master. Its one-sided floors use a six-percentage-point rate margin and a 0.2-token length margin. DFlash2 and LiLiCorr were validated separately on DGX Spark for nightly coverage.

Additional information

The workflow runs manually on the dedicated DGX Spark runner and uses persistent model storage instead of GitHub Actions cache.

Requirements

Assisted by GPT 5.6

@nv-vankit
nv-vankit requested review from a team as code owners October 23, 2026 06:39
…pec dec method the existing ones are not broken.
@nv-vankit
nv-vankit force-pushed the spec-method-ci-tests branch from c8f0e13 to 00bfee9 Compare October 23, 2026 06:42
@ggml-gh-bot

This comment was marked as resolved.

@ggml-gh-bot ggml-gh-bot Bot added the draft PR will be changed to draft by github-actions bot label Oct 23, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation devops improvements to build systems and github actions server labels Oct 23, 2026
@nv-vankit

Copy link
Copy Markdown
Contributor Author

Hi @nv-vankit, thanks for your contribution!

Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:

  • PR Template not respected: Please respect the template when creating a new pull request. Make sure to fill out all required sections.

Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below.

Hi, I've updated the PR description as per the guidelines.

@github-actions
github-actions Bot marked this pull request as draft October 23, 2026 06:58
@github-actions github-actions Bot removed the draft PR will be changed to draft by github-actions bot label Oct 23, 2026
@ruixiang63
ruixiang63 requested a balanced review from Copilot October 26, 2026 12:50

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@ruixiang63
ruixiang63 self-requested a review October 26, 2026 12:50
@nv-vankit
nv-vankit marked this pull request as ready for review October 29, 2026 09:25
@CISC

CISC commented Oct 30, 2026

Copy link
Copy Markdown
Member

Hmmm, can't really test this since PR is on a fork.

Comment thread tools/server/tests/README.md Resolved
@ruixiang63

Copy link
Copy Markdown
Member

Hmmm, can't really test this since PR is on a fork.

So we need to merge it first? Is it possible to run this fork on Spark just for testing?

@CISC

CISC commented Oct 30, 2026

Copy link
Copy Markdown
Member

Hmmm, can't really test this since PR is on a fork.

So we need to merge it first? Is it possible to run this fork on Spark just for testing?

Needs to be added to a branch here or in tmp to test on the actual runner.

Comment thread tools/server/tests/README.md Resolved
Comment thread tools/server/tests/README.md Resolved
@nv-vankit

Copy link
Copy Markdown
Contributor Author

@CISC can you run the workflow and merge this PR.

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

@CISC can you run the workflow and merge this PR.

CI started

@CISC

CISC commented Nov 4, 2026

Copy link
Copy Markdown
Member

@CISC can you run the workflow and merge this PR.

CI started

Running the CI is not really effective #31027 (comment)

@ServeurpersoCom

ServeurpersoCom commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

@CISC can you run the workflow and merge this PR.

CI started

Running the CI is not really effective #31027 (comment)

Pushed the merge of the PR head with current master to tmp/spec-method-ci-tests and dispatched the workflow on the gb10 runner: https://github.com/ggml-org/llama.cpp/actions/runs/41854150865

Will merge once it is green, then delete the branch.

@ServeurpersoCom

ServeurpersoCom commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

@nv-vankit The gb10 run failed in Python setup with "source: not found": the runner executes steps with sh, where source does not exist, so the spec test never ran.

I pushed a commit that runs the job steps with bash, and dispatched the workflow again on the merge with master: https://github.com/ggml-org/llama.cpp/actions/runs/41857393758

@ruixiang63

Copy link
Copy Markdown
Member

It fails with an acceptance rate assertion error: https://github.com/ggml-org/llama.cpp/actions/runs/41857393758/job/126669595711#step:7:6411

Could you check whether the predefined acceptance rate is correct? If the failure is due to normal variation, could we relax the assertion tolerance to ±0.02? @nv-vankit

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

could we relax the assertion tolerance to ±0.02?

±0.02 would be tighter than the current 0.03 margin, and the shifts are larger than that. I ran mtp and eagle3 on an RTX PRO 6000, greedy and reproducible across runs:

build mtp rate / len eagle3 rate / len
PR base (Oct 21) 0.7068 / 3.115 0.2630 / 1.784
current master 0.7107 / 3.115 0.3112 / 1.929
gb10, merge with master 0.6640 / 2.977 0.2606 / 1.776

On the same GPU, master accepts more than the PR base, so this is not a regression. The PR base already fails eagle3 there: changing the GPU alone moves eagle3 by about 4 points, and master moves it by about 5 more.

@nv-vankit Please recalibrate on the current gb10 runner with current master, with a margin wide enough to absorb these shifts, so the test catches a broken method rather than rounding changes.

@nv-vankit

Copy link
Copy Markdown
Contributor Author

@ServeurpersoCom I attempted to dispatch two more identical GB10 calibration runs for merge SHA 155d09a944fa2b0d06332d4c9cf86692cf26be06, but workflow dispatch requires repository admin rights. Could you please dispatch two more runs with that SHA? I will use all three GB10/current master measurements to set wider one sided floors, I will not use a symmetric tolerance because improved results should continue to pass.

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

@nv-vankit

nv-vankit commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Recalibrated the compact one-sided floors in a14de5b from the three identical GB10/current-master runs. The fixed floors are MTP 0.6040 / 2.7766, DFlash 0.1404 / 2.1687, DSpark 0.2767 / 3.1246, and EAGLE-3 0.2006 / 1.5757. The rate margin is six percentage points, which covers the largest observed cross-environment shift (0.0506), while the length margin remains 0.2. Could you rerun the workflow against the updated PR head @ServeurpersoCom ?

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

Recalibrated the compact one-sided floors in a14de5b from the three identical GB10/current-master runs. The fixed floors are MTP 0.6040 / 2.7766, DFlash 0.1404 / 2.1687, DSpark 0.2767 / 3.1246, and EAGLE-3 0.2006 / 1.5757. The rate margin is six percentage points, which covers the largest observed cross-environment shift (0.0506), while the length margin remains 0.2. Could you rerun the workflow against the updated PR head @ServeurpersoCom ?

a14de5b + master: https://github.com/ggml-org/llama.cpp/actions/runs/42031637877

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

Green with the new floors

@ruixiang63

Copy link
Copy Markdown
Member

Green with the new floors

So we can merge it now?

@ServeurpersoCom
ServeurpersoCom merged commit 359dc58 into ggml-org:master Nov 9, 2026
14 checks passed
fencerJP pushed a commit to fencerJP/llama-apu that referenced this pull request Nov 21, 2026
* server : functionality test to make sure every time when we add new spec dec method the existing ones are not broken.

* server: use compact models for speculative decoding CI

* ci: avoid GHA cache for speculative models

* ci: run speculative tests on DGX Spark

* server: address speculative test review

* server: use consolidated speculative models

* server: refine speculative test calibration

* docs: record speculative Spark validation

* ci : run the server-speculative steps with bash

* server: recalibrate speculative test floors on GB10

---------

Co-authored-by: Pascal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions documentation Improvements or additions to documentation server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants