Repository navigation
Conversation
… turn generated tokens into a decode rate generation_tokens_total had no decode time to divide by: request_latency_seconds includes the prompt pass and queueing. request_decode_seconds (and request_decode_time_seconds under vLLM's name) observes each finished request's decode time: the CUDA engine's own decode_s, the figure /health already sums as decode_seconds_total, or first token to end on the Mac server. A request that generated nothing observes nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
This is in TensorFold 0.6.3, with your commit under your name in the release history: https://github.com/ashhart/TensorFold/releases/tag/v0.6.3
Thank you, @sxuff! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/metricscountsgeneration_tokens_total, but there's nothing to divide it by for a decode rate:request_latency_secondsincludes the prompt pass and queueing.This adds one histogram,
tensorfold:request_decode_seconds, observed once per finished request, plus the same reading under vLLM's name,request_decode_time_seconds, like the other mirrored families.decode_s, the figure/healthalready sums asdecode_seconds_total.A scraper then gets the completed-decode rate as Δ
generation_tokens_total/ Δrequest_decode_seconds_sum. I run TensorFold on a GB10 and read that rate into a small telemetry feed.Changed:
server/metrics.py(histogram,note(decode=...), Macfinish_request),cuda/health.py(passes the engine'sdecode_s),docs/api.md, and a test intests/test_metrics.pycovering both paths.pytest tests/test_metrics.py: 9 passed, 4 skipped (MLX-only).