Fix DSpark reference generation block width

#2
by yisun0618 - opened

Fixes discussion #1.

The reference spec_generate now consumes all block_size draft rows, verifies anchor + block_size proposals, and reserves the complete target-bonus slot in the scratch buffer.

H100 contract probe for block_size=7:

  • before: 7 noise rows -> 6 draft logits -> 7-token target verify
  • after: 7 noise rows -> 7 draft logits -> 8-token target verify

A live SGLang load of this checkpoint independently resolved gamma=7 and verify_num_draft_tokens=8.

skx618 changed pull request status to merged

Sign up or log in to comment