TorchSpec icon indicating copy to clipboard operation
TorchSpec copied to clipboard

Support train Domino draft model?

Open lengrongfu opened this issue 6 months ago • 7 comments

https://github.com/jianuo-huang/Domino

lengrongfu avatar Jun 01 '26 06:06 lengrongfu

yes, we do plan to support, but might take some time

yubofredwang avatar Jun 02 '26 21:06 yubofredwang

Hi maintainers, I’m interested in implementing Domino training support.

Proposed approach:

  1. Reuse the existing DFlash backbone and training infrastructure from #64.
  2. Add optional Domino configuration and its GRU-based causal correction head.
  3. Add a DominoTrainer extending DFlashTrainer.
  4. Train with combined base DFlash loss and Domino-corrected loss.
  5. Add a Qwen3-8B example configuration.

Test plan:

  • Domino configuration validation
  • Correction-head output shapes and causality
  • Base/corrected loss interpolation
  • Shifted-label and sequence-boundary handling
  • Existing DFlash behavior remains unchanged
  • Small end-to-end training smoke test

Would like to listen whats your design plan as well, could follow your prefered direction if your team already have a existing design cc @yubofredwang

SeaTuKeMa avatar Jun 09 '26 08:06 SeaTuKeMa

@ZYInSea I feel that is a valid plan. Feel free to implement end to end. I can help with the validation as well with the GPU resources I have

yubofredwang avatar Jun 10 '26 07:06 yubofredwang

WIP in PR#118,did initial test on H100, will try run on multiple gpu settings and provide experiment results

SeaTuKeMa avatar Jun 10 '26 20:06 SeaTuKeMa

WIP in PR#118,did initial test on H100, will try run on multiple gpu settings and provide experiment results

Ready for review @yubofredwang

SeaTuKeMa avatar Jun 23 '26 08:06 SeaTuKeMa

Hi @SeaTuKeMa and @lengrongfu , TorchSpec now supports DSpark. The idea behind DSpark seems pretty similar to Domino. Do you still need Domino since DSpark is implemented now?

If so, can we rebase on top of the newest changes from DSpark implementation?

Dogacel avatar Jul 03 '26 19:07 Dogacel

https://github.com/lightseekorg/TorchSpec/pull/142#issuecomment-5138444827

torchspec-bot avatar Jul 31 '26 02:07 torchspec-bot