Skip to content

tokenizer: SparkQwen 0.4.0 ids-only / large-encode gates + free the slot on a failed deferred prefill (ported from Enntity) - #290

Merged
AzeezIsh merged 4 commits into
mainfrom
port/sq-misc-core
Oct 31, 2026
Merged

AzeezIsh merged 4 commits into
mainfrom
port/sq-misc-core

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Summary

The SparkQwen 0.4.0 tokenizer and deferred-prefill pieces from the completeness audit (#220), stacked on #287. Ported from Enntity (AGPL-3.0, data-angel):

  • ATLAS_TOKENIZER_IDS_ONLY and ATLAS_LARGE_ENCODE_CONCURRENCY: tokenizer gates for large prompt encodes. The chat_impl/load.rs split follows 0.4.0's own layout.
  • da4f716ae: free the worker slot when a deferred prefill fails.

This replaces the tokenizer and slot-fix part of #288. #288 keeps the literal-dispatch convergence, which is still being matched to 0.4.0.

Test plan (reiner + spark2; receipts in reiner's ~/code/night1027/out/core-bdd574d36/)

Generated with Devin

AzeezIsh and others added 3 commits October 31, 2026 11:19
When the setup broadcast of a deferred or queued first chunk failed, the head
freed its sequence but never sent the worker 0xFFFFFFF1, which the inline
path sends after a failed chunk; the worker could keep the slot and any
setup it had received.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit da4f716)
(cherry picked from commit 5f560eb)
@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.

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.

2 participants