mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #793] [CLOSED] Pipelined windows over the active slots (+ slot allocator), /metrics for Prometheus (vLLM names) + monitoring kit #2832
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2832
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/793
Author: @blange48
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:upstream-metrics-autoconfig📝 Commits (10+)
6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)e3bdd74A prompt cancelled mid-read is logged and recorded with the tokens it read (#471)f2aaba1"The draft head does not fit" says what to change (#474)64987c8UPDATE.bat / update.sh: update Strata without starting the model (#475)6d0e648Opt-in: keep what the expert cache learned across restarts (--expert-profile-save, #477)📊 Changes
3 files changed (+100 additions, -1 deletions)
View changed files
📝
serve/server.py(+15 -0)➕
serve/test_slot_alloc.py(+83 -0)📝
src/program/generate.cpp(+2 -1)📄 Description
Pipelined windows over the active slots (+ slot allocator),
/metricsfor PrometheusThese are the parts of #559 that didn't go into 0.1.39, rebased on main (
6f32ec0) and adapted to"parallel"and its one status per request. Each commit stands on its own.1. Pipelined group windows over the active slots (
src/program/generate.cpp, 8 lines)0.1.39 runs the one-GPU batch windows over the active slots. With
--batch-groups, a group's window still holds every slot of the group, and the idle ones run pad rows through every layer. The server spreads requests over the groups first, so on a 4-group split two requests sit in two windows that are mostly pad rows. Now a group's window holds its slots up to its last active one. This is crazyaimachine's8119a7ffrom #559, without the MTP-draft parts.4 x RTX 5080 (PCIe Gen3), IQ3_S, 262K context,
"parallel": 8,--batch-groups 4 --trim-stage-weights, through the HTTP server, T=0.7, 300 tokens per answer:Exactness (
--pcie-frac 0 --adapt-every 1000000,STRATA_IQ_MT_MIN=1):tools/batch_test.py: identical to solo with 8 slots and with 3 (groups partly filled);tools/parking_test.py: identical, with 141 MB of K/V reused on the second park.2.
GET /metricsfor Prometheus, with vLLM's metric names (serve/prometheus.py, three commits)Accept: text/plainor openmetrics, or?format=prometheus) gets the text format. Anything else, the Monitor tab included, keeps the JSON.vllm:num_requests_running/_waitingandvllm:kv_cache_usage_perc;vllm:prefix_cache_queries_total/_hits_total(prompt tokens read / reused);vllm:spec_decode_num_draft_tokens_total/_accepted_tokens_total(the MTP drafts);vllm:time_to_first_token_seconds,vllm:inter_token_latency_secondsandvllm:e2e_request_latency_seconds.strata:, named after its JSON key:strata:live_state,strata:live_slots,strata:live_tok_s,strata:last_hit_rate,strata:gpu_utilper card, and so on. The Monitor tab and a Grafana panel read the same value.Service.metrics()plus three latency histograms observed when a request finishes. With"parallel", the histograms read each request's own status, and running / waiting come fromlive.running/live.waiting.serve/test_prometheus.py(6 tests): the text format (one# TYPEper family), the histograms, the names against the JSON, and three requests at once against a batch engine double. Documented indocs/DETAILS.md.We run it in production behind a Prometheus that also scrapes vLLM servers. The same Grafana panels show both.
3. A monitoring kit (
docs/monitoring/)prometheus.ymlandservicemonitor.yamlscrape/metrics, with the API key sent as a bearer token.grafana-strata.jsonis a dashboard to import (it asks for the Prometheus data source):strata:series.Not in this PR any more: the configuration tools.
tools/autoconfig.pyandtools/tune.pyduplicated whatsetup.pyandtools/calibrate.pyalready do. The useful part, measuring the batch settings with every slot busy, is now a patch tocalibrate.py, posted on #907, which changes the same function.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.