Skip to content

v1.2.0 — Longest-Back Lookup & Hybrid Global-Attention DFlash2

Choose a tag to compare

@shanedertrain shanedertrain released this 27 Nov 16:34
· 5 commits to main since this release
v1.2.0

Highlights (100% Lossless, sm_80, 140 W Verified)

  • Longest-back n-gram lookup (MAX_CHAIN=32) & SWA far-anchor rescue:
    • Deep chain walk (MAX_CHAIN=32) selects the longest backward verbatim match (+1.45% DSpark self-t1-n4, +1.30% self-t1-n8 on 6D 140 W, lower J/tok).
    • Drafter::is_swa_only() enables far-anchor verbatim rescue (dist > 2048) strictly for SWA-2048 drafters (+1.92% Stock DFlash2 self-t0-n4) while keeping global drafters (DSpark and DFlash2-Global) on post-draft lookup (+3.16% over anchor override on DFlash2-Global).
  • Hybrid full_attention E4M3 RustDFlash2 CUDA kernel & runtime (388 kernels, 0 new spills):
    • Config-driven layer_types (sliding_attention / full_attention) and global_rope_theta (1e6) from config.json.
    • Design-A df2::global_attn_e4m3_split_kernel (REG: 239, 0 spills, 646–715 GB/s E4M3): 2.653 ms at 4×45K (1 global layer), 3.214 ms (2 global layers), 3.447 ms at 4×100K, ~8–9 GiB lower VRAM than DSpark (52.8 GiB used / 12.1 GiB free at 8 slots / 504 pages / 100K ctx).
    • Stock 5× SWA checkpoints stay 100% bit-identical (0.00 ms regression).
    • With a Stage-2 frozen-SWA 2-global-layer (L1+L3) DFlash2-Global checkpoint: 526.05 tok/s (5.738 tok/rd, +26.7% over DSpark, +12.1% over Stock DFlash2) on 4×45K tf-agent-120k, 3.851 tok/rd (+20.8% over DSpark) at 75K, and 327.8 tok/s (-0.63% vs DSpark, +1.33% over Stock DFlash2) on 6D N=4, T=1.0 M1.
  • Target-tap extractor (ink-taps):
    • Streams native [5, 23, 41, 48] BF16 target features at ~6K tok/s per GPU for distilling custom lossless drafters.
  • Lossless verification: ink-inv 0 diff bits; greedy 0/8,000 bad argmax; sampled 20/20 exact (flags_or=0); sdist 0 zero-prob draws; cargo fmt, cargo clippy -- -D warnings, and workspace tests PASS.