[PR #3397] [CLOSED] [Engine] propose DSpark speculative decoding plan #4617

Closed
opened 2026-11-07 15:37:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3397
Author: @j-luwierski
Created: 10/20/2026
Status: ❌ Closed

Base: main ← Head: codex/dspark-plan


📝 Commits (1)

  • 6edb36b [Engine] propose DSpark speculative decoding plan

📄 Description

Problem and result

Open issue #3304 asks whether Strata can use speculative decoding with a separate drafter. Strata currently offers MTP and DFlash/DFlash2 but has no DSpark artifact or runtime path. This PR proposes an initial implementation plan so maintainers can agree on a checkpoint, target model, and backend before feature work starts. The PR itself changes no runtime behavior; if the plan is accepted, the proposed result is an opt-in DSpark drafter that leaves the current MTP default and target-only path unchanged.

  • Issue #3304 asks about speculative decoding in Strata.
  • Existing DFlash and DFlash2 support provides a runtime and artifact reference. DSpark adds a semi-autoregressive Markov head and a confidence head; confidence-scheduled verification is an additional system-level step.

Approach

  1. Agree on the first supported artifact and scope. Select a published DSpark checkpoint compatible with a Strata target, pin its revision and hashes, document its tensor/feature contract, and agree on the initial target model and backend before implementation.
  2. Add artifact conversion and validation. Extend the existing DFlash artifact path to recognize DSpark-only tensors and metadata, reject unsupported geometry or mismatched target/tokenizer combinations, and add converter/loader fixtures.
  3. Implement the drafter. Reuse the parallel DFlash backbone where contracts match, then add DSpark's Markov head for intra-block dependencies and confidence head for per-position acceptance estimates. Compare intermediate outputs against the reference implementation.
  4. Integrate proposal verification behind an opt-in setting. Preserve the existing MTP default and target-only behavior. Start with fixed-length proposals and the current verifier; verify accepted-prefix commits, rejection replacement, context limits, rewind, and prompt/conversation snapshot behavior.
  5. Add confidence scheduling as a separate milestone. First evaluate a static confidence cutoff. Then consider a load-aware prefix scheduler only after its decisions can be shown causal and its benefit can be measured under concurrent serving.
  6. Validate and measure. Add deterministic parity, malformed-artifact, cache/rollback, and output-equivalence checks. Compare target-only, MTP, DFlash/DFlash2, and DSpark on the same prompts, build, hardware, and settings. Report acceptance by draft position, accepted tokens per verifier pass, latency, throughput, memory use, and all unrun backends separately.

Validation

Passed: On Linux, git fetch origin main updated origin/main to c093ac26; git switch --create codex/dspark-plan origin/main created this branch from that revision; git commit --allow-empty -m '[Engine] propose DSpark speculative decoding plan' created 6edb36b; and git push --set-upstream fork codex/dspark-plan pushed it. For PR #3397, the title-area and intake checks passed and GitHub reports no base-branch conflicts. Repository issue/PR searches found the related open issue #3304 and no DSpark PR.

Failed: None observed.

Not run: No code or tests changed, so no engine build, unit test, parity check, GPU run, or performance measurement was run. Compatibility with any Strata target or backend remains unverified.

Limits

This is a plan-only draft with one empty commit and no changed files. Maintainer agreement is requested on the first checkpoint/target pair and backend scope before implementation. No default change or performance claim is proposed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3397 **Author:** [@j-luwierski](https://github.com/j-luwierski) **Created:** 10/20/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/dspark-plan` --- ### 📝 Commits (1) - [`6edb36b`](https://github.com/Niko1221/Strata/commit/6edb36b1a77430376abcdd511d22463112a86966) [Engine] propose DSpark speculative decoding plan ### 📄 Description ## Problem and result Open issue [#3304](https://github.com/Niko1221/Strata/issues/3304) asks whether Strata can use speculative decoding with a separate drafter. Strata currently offers MTP and DFlash/DFlash2 but has no DSpark artifact or runtime path. This PR proposes an initial implementation plan so maintainers can agree on a checkpoint, target model, and backend before feature work starts. The PR itself changes no runtime behavior; if the plan is accepted, the proposed result is an opt-in DSpark drafter that leaves the current MTP default and target-only path unchanged. ## Related discussion - [Issue #3304](https://github.com/Niko1221/Strata/issues/3304) asks about speculative decoding in Strata. - Existing DFlash and DFlash2 support provides a runtime and artifact reference. DSpark adds a semi-autoregressive Markov head and a confidence head; confidence-scheduled verification is an additional system-level step. ## Approach 1. **Agree on the first supported artifact and scope.** Select a published DSpark checkpoint compatible with a Strata target, pin its revision and hashes, document its tensor/feature contract, and agree on the initial target model and backend before implementation. 2. **Add artifact conversion and validation.** Extend the existing DFlash artifact path to recognize DSpark-only tensors and metadata, reject unsupported geometry or mismatched target/tokenizer combinations, and add converter/loader fixtures. 3. **Implement the drafter.** Reuse the parallel DFlash backbone where contracts match, then add DSpark's Markov head for intra-block dependencies and confidence head for per-position acceptance estimates. Compare intermediate outputs against the reference implementation. 4. **Integrate proposal verification behind an opt-in setting.** Preserve the existing MTP default and target-only behavior. Start with fixed-length proposals and the current verifier; verify accepted-prefix commits, rejection replacement, context limits, rewind, and prompt/conversation snapshot behavior. 5. **Add confidence scheduling as a separate milestone.** First evaluate a static confidence cutoff. Then consider a load-aware prefix scheduler only after its decisions can be shown causal and its benefit can be measured under concurrent serving. 6. **Validate and measure.** Add deterministic parity, malformed-artifact, cache/rollback, and output-equivalence checks. Compare target-only, MTP, DFlash/DFlash2, and DSpark on the same prompts, build, hardware, and settings. Report acceptance by draft position, accepted tokens per verifier pass, latency, throughput, memory use, and all unrun backends separately. ## Validation **Passed:** On Linux, git fetch origin main updated origin/main to c093ac26; git switch --create codex/dspark-plan origin/main created this branch from that revision; git commit --allow-empty -m '[Engine] propose DSpark speculative decoding plan' created 6edb36b; and git push --set-upstream fork codex/dspark-plan pushed it. For PR #3397, the title-area and intake checks passed and GitHub reports no base-branch conflicts. Repository issue/PR searches found the related open issue #3304 and no DSpark PR. **Failed:** None observed. **Not run:** No code or tests changed, so no engine build, unit test, parity check, GPU run, or performance measurement was run. Compatibility with any Strata target or backend remains unverified. ## Limits This is a plan-only draft with one empty commit and no changed files. Maintainer agreement is requested on the first checkpoint/target pair and backend scope before implementation. No default change or performance claim is proposed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:37:51 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4617
No description provided.