tether icon indicating copy to clipboard operation
tether copied to clipboard

[Metrics] Track Episode Cache Memory Usage

Open DsThakurRawat opened this issue 7 months ago • 2 comments

Description (GFI)

Granular memory tracking for the KV cache.

Task

  • [ ] Update EpisodeCache to compute the byte-size of its stored tensors.
  • [ ] Expose reflex_episode_cache_bytes_total as a Prometheus metric.

DsThakurRawat avatar May 02 '26 15:05 DsThakurRawat

Is this still available? Happy to take it on.

huynna12 avatar Jul 01 '26 19:07 huynna12

Completed by PR #258 at 8df88ea76a268619850fd84726c5a774de22f97d. EpisodeCache byte accounting now handles same-key replacement without double-counting/false eviction, and the production Pi0.5 episode-cache constructor supplies embodiment/model labels so tether_episode_cache_bytes_total is actually emitted. The focused cache, server, CUDA-graph, and fast-path suite passed with one expected CUDA-only skip.

rylinjames avatar Aug 28 '26 11:08 rylinjames