Update DGX Spark bundle: exact tree verification, SWA alignment, full cache-on context; add run instructions

#3

Code (three files):

  • ripple_tree_attention.py: tree verification is now bit-identical to prefill.
    • Each draft tree is split into first-child chains.
    • Two kernels reproduce SGLang's deterministic Triton tile loop verbatim: one pass over the shared prompt per request, then each chain's path.
    • Before: concurrent decode-versus-rescore failed 35/40 requests, by up to 12 nats. After: 0.0 nats on every token.
    • Greedy outputs from tree and stock SGLang now match byte for byte (90/90).
  • model.py: sliding-window tile alignment.
    • Target extend/verify windows start on 128-key tile boundaries, so decode matches prefill beyond the 1,024-token window.
    • Before: up to 0.6 nats off at long context. After: 0.0 at 4k, 32k and 110k.
  • spark.py: --swa-full-tokens-ratio 0.25.
    • With prefix caching, SGLang's 0.8 ratio admitted only 96,823 input tokens.
    • 0.25 restores the full 131,072 context (input bound 131,066).

Model card: a new "Run on DGX Spark" section covers download, install, launch, API, defaults and sampling, plus measured speed. Tree decoding remains labelled experimental. Nothing else in the card changed.

william-ricursive changed pull request status to merged

Sign up or log in to comment