本页汇总 #15 / #16 的热路径改动,附可复现微基准与后续 issue。驱动轴对齐路线图:TTFT · Token/Watt · Useful Life。
文件 pagoda/src/pd.rs · PR #15 · 轴 TTFTToken/Watt
相同 prompt 先走 FNV-1a sticky,命中后 record 只 bump routed、跳过字符 trie 增长。冷路径 RR 从 worker 0 起;/stats 暴露 sticky_hits / upstream_cache_hit_ratio。
Source: local release microbench · Apple Silicon · 2026-10-11 · n=50 000
prompt = 2320 bytes(「You are a helpful assistant. 」×80)。sticky 含 pick+record;prefix 为扩展串上的纯 pick trie walk。
模块 pagoda-hf/src/qwen3_5/ · PR #16 · 轴 TTFTToken/Watt
recurrent_gated_delta_rule:连续切片访问;decay+kv_mem 一趟;S+=k⊗δ 与输出 matvec 融合to_veccopy_within 原地滚环;prefill 带回最终 ring 供 decode护栏:debug 下 32 step < 5 s。GPU/FLA 见 #18。
文件 pagoda-hf/src/mlx_engine.rs · PR #16 · 轴 Useful LifeTTFT
max_tokens=1 → 稀疏有限 logits(floor + peak),满足 Engine 对 NaN/Inf 的拒绝fill_sparse_logits 复用 ~248 k×f32 缓冲,避免每 decode 步重新 vec![floor; vocab]/stats 附带 upstream_prompt_tokens / upstream_cached_tokens / mlx_remote_stepsPR / issue 状态以 GitHub 为准;本表描述意图与驱动轴。
| 项 | 状态 | 轴 | 说明 |
|---|
upstream_cache_hit_ratio 观测)。site/** 合入 main 由 pages.yml 部署 → quantz8a.github.io/pagoda/perf-report.html