Skip to content

spark-server: processed speculative logprobs and accepted-only usage for Qwen (SparkQwen 0.4.0; ported from Enntity) - #284

Merged
AzeezIsh merged 13 commits into
mainfrom
port/sq-spec-logprobs
Oct 31, 2026
Merged

AzeezIsh merged 13 commits into
mainfrom
port/sq-spec-logprobs

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Summary

SparkQwen 0.4.0's speculative logprob and usage fixes for qwen4_exp, stacked on the tool PR. Ported from Enntity (AGPL-3.0, data-angel):

  • ce3825d4a: report processed (post-pipeline) logprobs for speculative tokens.
  • b854ea9e4: usage counts only the draft tokens actually returned.
  • f52a45bf7: score bootstrap tokens from processed logits.

Test plan

  • spark-server bin tests at 0 failed. clippy (with and without --tests) is clean.
  • Against SparkQwen 0.4.0's engine on its spark config (lp_api_probe.py: generated-token logprobs with top-5, block and stream, plus usage):
    • with this PR, the generated logprobs and usage are identical to 0.4.0's, 13/13;
    • its parent differs on 2 cases, with the same text but different speculative logprob values.
  • rc16: C1 and C8 greedy identical to the parent.

Generated with Devin

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA. Thank you!
Posted by the CLA Assistant Lite bot.

@AzeezIsh
AzeezIsh changed the base branch from port/sq-tools-followups to main October 31, 2026 15:12
@AzeezIsh
AzeezIsh marked this pull request as ready for review October 31, 2026 15:12
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

Holding the merge for the owner on one compliance point. CLAAssistant fails because three of this PR's commits are cherry-picks of Enntity commits whose author is recorded as Codex <[email protected]>: c755284e6 (ce3825d), bf77dc722 (b854ea9) and c75f931be (f52a45b). They're data-angel's work, and he's on the CLA allow-list; the "Codex" author isn't.

The options are to add that author to the CLA allow-list, to have data-angel confirm or sign, or to rewrite authorship, which needs a force-push of this branch and the four above it. I haven't done any of these.

Everything else is green, including the pair gates: speculative logprobs and usage are identical to 0.4.0's engine (13/13), C1/C8 are identical to the parent, and BFCL ST-995 on the stack top is 87.54 / 86.85, the same as main.

@data-angel

Copy link
Copy Markdown
Contributor

@AzeezIsh Reposting from #220 so it sits with the hold: ce3825d4a, b854ea9e4 and f52a45bf7 (c755284e6, bf77dc722, c75f931be here) are mine to contribute under the CLA. They were written with Codex at my direction, so the "Codex" author on them is the tool, not a separate contributor. Please clear the hold on that basis, with the allow-list or however you prefer. No authorship rewrite needed from my side.

@AzeezIsh

Copy link
Copy Markdown
Contributor Author

recheck: #301 allowlists the Codex author, at the owner's request.

@AzeezIsh

Copy link
Copy Markdown
Contributor Author

recheck

@AzeezIsh
AzeezIsh merged commit 3579785 into main Oct 31, 2026
24 of 27 checks passed
@AzeezIsh

AzeezIsh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

GB10 single-Spark confirmation (sparky, post-merge): this PR was gated as part of integ/train-2026-10-31 (#285 + #284 + #287 + #290 + #293 + #294 + #286 on main 170c3ed) against main at the same base, FP4-Local default recipe profile:

  • controls: FP4-Local byte-identical, Flash-Next NVFP4 byte-identical.
  • BFCL ST-995: train 87.54 / 85.94 (run-1793488879414911145) = base 87.54 / 85.94 (run-1793503255896245487); all 15 subsets identical.
  • agentic-webserver 50: train 47/50, 10.80 s/turn (run-1793478986972058487) vs base 47/50, 10.67 s/turn (run-1793493326878881549). The same 3 iterations (0, 18, 27) fail on both arms ("no Cargo.toml was written"), so that comes from main, not this train. Investigating separately.
  • spark-server tests 3002/0; 0 serve errors.
    Campaign log: docs: FP4-Local post-merge campaign log (2026-10, sparky) #211.

AzeezIsh pushed a commit that referenced this pull request Nov 1, 2026
vcruz305 pushed a commit to vcruz305/atlas that referenced this pull request Nov 11, 2026
data-angel authors part of his Enntity spark-shared work through Codex,
so commits cherry-picked from it carry the raw author name "Codex"
<[email protected]>, which GitHub resolves to no user. The CLA check
matches that raw name, and it isn't on the allowlist, so Atlas-Inf#284 (three such
commits) reds. data-angel is already allowlisted; the owner confirmed
these are within data-angel's contribution.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
vcruz305 pushed a commit to vcruz305/atlas that referenced this pull request Nov 11, 2026
GitHub resolves [email protected] to the account login "codex"
(lowercase), and the CLA action matches that login case-sensitively, so
Atlas-Inf#301's raw-name entry "Codex" alone didn't clear Atlas-Inf#284. Keep both: the
login for resolved commits, the name for unresolved ones.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants