Repository navigation
Add DSpine draft model and training support - #917
Closed
maocheng23 wants to merge 3 commits into
Closed
maocheng23 wants to merge 3 commits into
maocheng23 wants to merge 3 commits into
Conversation
jiapingW
added a commit
to jiapingW/SpecForge
that referenced
this pull request
Oct 4, 2026
Integrate PR sgl-project#917 functionality while preserving DFlash and Domino optimizations. Add DSpine Liger support, flattened vocabulary projection, CE-only accumulation prepass, and balanced consumer dispatch. Include L20N training recipes and regression coverage. Validation: 150 CPU tests and 125 subtests passed; 18 GPU-dependent tests skipped. Synced files verified against the L20N-7 training checkout.
This was referenced Oct 8, 2026
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Add an independent implementation of DSpine to SpecForge so draft models can be built, trained, saved, and resumed through
training.strategy=dspine. This draft covers model and training integration; native serving/verifier integration remains outside this PR.Modifications
DSpineDraftModelon the shared DFlash backbone, with causal draft blocks, frozen whitened token codes, adjacent-slot injection, shallow teacher replacement, and cached last-write refinement/transition scoring.accumulation_steps > 1; single-microbatch training and evaluation do not replay.Accuracy Test
Validation used CPU PyTorch 2.14.0 and Transformers 5.12.1. CUDA FlexAttention execution, multi-GPU/FSDP training, and an end-to-end training run of this integrated port have not been validated.
Benchmark & Profiling
No throughput or task-accuracy claim is made in this draft. Native
spec_generateis explicitly unsupported until serving/verifier integration is implemented; the PR provides model-side cached refinement and greedy transition selection. Temperature-one proposal sampling, lossless verification, fused serving kernels, and paper benchmark reproduction remain unimplemented.Checklist