Add native DFlash repository LoRA pilot - #1
Open
MarinaMackay wants to merge 1 commit into
Open
MarinaMackay wants to merge 1 commit into
MarinaMackay wants to merge 1 commit into
Conversation
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.
Native DFlash Repository LoRA Pilot on Two RTX 4090 GPUs
Summary
This change adds an end-to-end native DFlash training and evaluation path for
repository-specific speculative decoding on a two-RTX-4090 machine.
The implementation includes:
512 anchors, five drafter layers, D-PACE, and self-logit distillation;
environment and trusted local checkpoint resume.
Results
On a deterministic xarray 120/30 train/holdout split with zero example-ID
overlap, repository DFlash LoRA improves mean accepted draft tokens from
0.0218to0.1939, an8.88xincrease. The adapter trains 7,454,720parameters while the repository-adapted target remains frozen.
The full native DFlash configuration completes on two RTX 4090 GPUs without
OOM or NaN at approximately 19.4-19.7 GiB per GPU.
Validation
Detailed measurements and limitations are documented in
NATIVE_DFLASH_2X4090_RESULTS.md.