deploy/grafana: the adaptive draft window, verifies by draft depth

Two panels for RADIANCE_DRAFT_ADAPT: the mean window of the running
sequences (a gap while none runs) and the share of verifies by the drafts
they carried.

Conditional acceptance by position is now accepted(j) / reached(j). The
old reached(j+1) / reached(j) needs every verify to carry the same depth;
on an adaptive instance it showed 0.24 at position 2 where the engine's
own ratio was 0.72, and the last-position series is no longer defined.
This commit is contained in:
keptn42 authored and StillDeadcode committed 2026-10-07 11:10:19 +02:00
1 parent 32cdaa5cc7
commit 432b50d7dd
2 files changed
+146 -37

No files matched your search

+3 -4
View File
@@ -28,11 +28,10 @@ Window values are counter ratios with the definitions of the since-start gauges:
| prompt from attention cache | `attn_cached_tokens` / `prompt_tokens` | `vllm:gpu_prefix_cache_hit_rate` |
| prompt from linear checkpoint | `linear_cached_tokens` / (`linear_cached_tokens` + `prefill_tokens`) | `radiance:linear_prefix_cache_hit_rate` |
| draft acceptance | `draft_accepted` / `draft_tokens` | `radiance:draft_acceptance_ratio` |
| conditional acceptance at j | `draft_position_reached`(j+1) / `draft_position_reached`(j) | `radiance:draft_position_acceptance_ratio` |
| conditional acceptance at j | `draft_position_accepted`(j) / `draft_position_reached`(j) | `radiance:draft_position_acceptance_ratio` |
Position j+1 is evaluated only when j was accepted, so its reach counts j's acceptances. The last
position's acceptances are the total accepted minus every later reach. Draft blocks per decode step is
the reach of position 0 over `engine_steps_decode_total` (GUIDE §6.3).
Draft blocks per decode step is the reach of position 0 over `engine_steps_decode_total` (GUIDE §6.3).
The adaptive draft window and verifies by draft depth have data only while `RADIANCE_DRAFT_ADAPT` is on.
Prometheus extrapolates `rate()` inside the window and VictoriaMetrics does not, so short windows at
the edge of a burst differ between the two. The overview's ratios are taken over the dashboard's time