Archived
- Faster prefill on models with an MTP head (Qwen3.8-Flash-Next, Qwen3.6-35B-A3B). Every prefill chunk but a prompt's last runs the head only to leave its K and V behind, and the head no longer runs its expert layer and lm_head for nothing on those chunks. Flash-Next on two R9700: +1.4% at 8K tokens, +3.2% at 26K, +5.9% at 78K; text and decode unchanged. From Code000's opt33. - A request log at the info level: one line when a request is admitted (endpoint, peer, message and tool counts, prompt tokens, max_tokens), one when it ends (finish reason, cached prompt, generated and reasoning tokens, time to first token, decode rate), and every refusal with its status and peer -- a wrong API key included. No prompt text at info. (baKon) - deploy/grafana: a dashboard for /metrics on Prometheus or VictoriaMetrics. (keptn42) - Three-rank tensor parallelism for Qwen3.8-Flash-Next: the all-reduce and all-gather at three ranks, the vocabulary split by 128-row blocks where the world does not divide it, and tools/pad_tp.py to pad the checkpoint's head counts to a world of three -- docs/TP3.md. (baKon)
40 lines
2.0 KiB
Markdown
40 lines
2.0 KiB
Markdown
# Grafana dashboard
|
|
|
|

|
|
|
|
`radiance.json` is a Grafana dashboard for `/metrics`: throughput, prompt tokens by source, speculative
|
|
decoding by draft position, scheduler steps, latency, the prefix cache and HTTP. The whole dashboard:
|
|
[dashboard.png](dashboard.png).
|
|
|
|
Import it (Dashboards → New → Import) and pick a Prometheus data source. Every query is plain PromQL,
|
|
so VictoriaMetrics added as a Prometheus data source works the same. Checked with Grafana 13.2 against
|
|
Prometheus 3.15 and VictoriaMetrics 1.153 scraping one server.
|
|
|
|
```yaml
|
|
scrape_configs:
|
|
- job_name: radiance
|
|
static_configs:
|
|
- targets: ["gpu-host:8000"]
|
|
# Only when the server runs with --api-key: /metrics is behind the key like every path but
|
|
# /health, /ping and the dashboard page, and an unauthorised scrape gets 401.
|
|
authorization:
|
|
credentials: "<the server's --api-key>"
|
|
```
|
|
|
|
Window values are counter ratios with the definitions of the since-start gauges:
|
|
|
|
| panel | over the window | since start |
|
|
|---|---|---|
|
|
| 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` |
|
|
|
|
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).
|
|
|
|
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
|
|
range, where both agree.
|