Files
zeekayandGitHub 712e2f138a
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 8m43s
Hanzo CI/CD / cicd (push) Successful in 2m35s
Hanzo CI/CD / verify (push) Skipped
CI/CD / cicd (push) Successful in 11m27s
fix(kv-cache): audit KV phase policy & multi-turn prefix reuse metrics (#135, #137) (#138)
- Fix portable CPU KV-phase evaluation in phase_policy.rs: measure causal
  prefill (seq_q > 1) separately from single-token decode (seq_q = 1) with
  3 untimed warmup runs + median of 5 timed repetitions (bench_portable_op_us).
- Add explicit provenance/fidelity metadata to KvPhasePointMetrics:
  phase_aware_used_fp8, decode_speedup_is_native (true on CUDA, false on
  portable CPU where FP8 E4M3 dequantizes to F32), analytic_kv_bytes_ratio
  (2.0), measured_bf16_kv_alloc_bytes, measured_fp8_kv_plus_scale_bytes,
  and measured_kv_alloc_bytes_ratio (including scale tensors & 256B CUDA
  allocator rounding).
- Extend CPU CI gate in tests/hybrid_prefix_and_kv_phase_eval.rs to
  contexts &[256, 512, 2048] so PhaseAware (min_fp8_decode_ctx=2048)
  exercises the active FP8 decode path and verifies cosine >= 0.999.
- Upgrade evaluate_multiturn_hybrid_prefix_reuse with 1 full untimed
  warmup sequence + configurable repetitions (10 on CUDA, 3 on CPU gate),
  SummaryStats (median, mean, sample SD, 95% Student-t CI), and explicit
  is_synthetic_microbench = true tagging.

Fixes #137
Addresses #135
2026-11-22 20:07:18 -08:00
..