Skip to content

v0.2.4

Latest

Choose a tag to compare

@cglab-public cglab-public released this 25 Nov 23:56
· 3 commits to main since this release
c142471

What's New

DFlash2 Speculative Decoding Preserved Across Prefix Cache Hits (Metal + CUDA)

  • Snapshot & restore DFlash2 5-layer SWA draft KV cache: save_boundary_snapshot and restore_boundary_snapshot now also save and restore DFlash2's 5-layer SWA KV cache on both Apple Silicon (src/metal/model_metal.mm, ~40.5 MiB/snapshot accounted for in est_kv_gib_with_snaps) and CUDA / DGX Spark (src/dspark.hpp, src/dspark.cu, src/model.cu).
  • Seamless spec=df2 continuation on cached turns: OpenAIServer tracks per-snapshot DFlash2 validity and position (snap_dspark_valid / snap_dspark_pos), resuming commit_dspark_context on the uncached suffix when restoring a valid DFlash2 snapshot.
  • Verified live on Apple M4 16 GiB Mac Mini:
    • Turn 2 (2,246 tokens, cached=2176, omitting reasoning_content): TTFT 1.48 s (vs 43.76 s cold, 29.6× faster) and decode 24.99 tok/s with spec=df2(mean_a=5.25) (vs 13.19 tok/s with spec=off in v0.2.3, +89.5% faster decode) with 100% bit-exact greedy parity against cold prefill.