Skip to content

fix: decouple shift_targets from Domino loss mask - #1

Merged
Eros483 merged 1 commit into
Eros483:feature/domino-head-for-dflashfrom
orestis-z:fix/domino-shift-targets
Jul 4, 2026
Merged

fix: decouple shift_targets from Domino loss mask#1
Eros483 merged 1 commit into
Eros483:feature/domino-head-for-dflashfrom
orestis-z:fix/domino-shift-targets

Conversation

@orestis-z

Copy link
Copy Markdown

Summary

See detailed analysis: vllm-project#685 (comment)

🤖 Generated with Claude Code

shift_targets=True creates an off-by-one mismatch between training
(position p predicts token p+1) and vLLM inference (position p drafts
token p). This degrades acceptance length by -46% vs DFlash baseline.

Fix:
- Set shift_targets=False to align training with inference
- Always include anchor positions in Domino loss mask (decoupled
  from shift_targets)
- Use unshifted suffix_start unconditionally
- Derive num_anchors from tensor shape (config.max_anchors removed
  in vllm-project#707)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Orestis Zambounis <orestis.zambounis@gmail.com>
@Eros483
Eros483 marked this pull request as ready for review July 4, 2026 13:58
@Eros483
Eros483 merged commit 3d9c5b8 into Eros483:feature/domino-head-for-dflash Jul 4, 2026
@orestis-z
orestis-z deleted the fix/domino-shift-targets branch July 4, 2026 16:35
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