feat: inter-step KV cache + updated documentation (v0.2.0)

- Inter-step cache: 1.6x average speedup (15-28 tok/s on easy prompts)
- 6 of 8 prompts now outperform llama.cpp (up to 3.2x)
- New flags: --no-cache, --cache-refresh, --cache-keep-active
- Updated paper, README, RESULTS, .zenodo.json
- Cache improves quality on 3/8 prompts (regularization effect)
- New paper.tex source with cache results (Section 4.1, 6.7)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iafiscal1212andClaude Opus 4.6 committed 2026-03-22 12:20:32 +01:00
1 parent abad74a552
commit 8c10a8cb44
13 files changed
+1810 -67

No files matched your search

+3
View File
@@ -47,6 +47,9 @@ struct diffuse_sampler_params {
diffuse_remasking remasking = diffuse_remasking::LOW_CONFIDENCE;
uint32_t seed = 42;
float entropy_threshold = 1.5f; // For ENTROPY_EXIT: unmask tokens below this
bool use_cache = true; // Inter-step KV cache (--no-cache to disable)
int cache_refresh = 0; // Force full forward every N steps (0 = never)
int cache_keep_active = 0; // Keep recently-changed positions active N extra steps
};
// ── Generation parameters ──────────────────────────────────────