Repository navigation
Conversation
…t log Pico (pico-dgx-ds4) publishes no counters, so the LLM panel and the fleet decode KPI stay at 0 tok/s while other clients are being served: the only figures available were the dashboard's own benchmark streams or the opt-in synthetic sample. dsfront does log one line per finished request (prompt, cached and completion tokens, TTFT, decode tok/s). On Linux units the probe now follows that log read-only: it finds the `dsfront serve` process listening on the probed port and reads its stderr through /proc/<pid>/fd/2, locally or over the unit's existing SSH transport. Following starts at the end of the file; history is never read. - generationTps: tokens that finished requests produced in the last minute, each request spread over its own decode time; source "engine-log", labelled "Engine log" in the panel (en, zh-CN) - totalOutputTokens / totalPromptTokens / totalCachedTokens: counted from the appended lines, reset with the probe's detection state - order: dashboard live stream, then engine log, then the opt-in sample Nothing changes when the log cannot be followed, for any other engine, or for a probe built without the follower. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFTpsYwigfq8w5F6AnvVAc
Owner
|
Thanks for the work on the request-log follower. It applies cleanly, but it overlaps #411, which is now on main and reads the engine's |
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.
Problem
With the pico-dgx-ds4 recipe serving real clients, the LLM panel and the Fleet decode KPI stay at
0.0 tok/s. Pico publishes no counters, so the only figures sparkDash had were its own benchmark/Showcase streams (dashboard-stream) or the opt-in synthetic sample, which is single-stream speed rather than the clients' traffic. The README says as much today.What this does
dsfrontwrites one line per finished request to stderr, and the recipe'sservice.shredirects that to a file:On Linux units the Pico branch of
LlmProbenow follows that log, read-only:dsfront serveprocess that listens on the probed port, then/proc/<pid>/fd/2. No path is configured and nothing is assumed about the install directory. Local units read through the mounted host/proc(or/procon bare metal); remote units run one small read-only shell program over the existing SSH transport.completion / tok_sseconds of decode ending when the line was seen);generationTpsis the tokens produced inside the trailing minute. Sourceengine-log, labelled Engine log in the panel (en + zh-CN) with a tooltip saying it trails live traffic.totalOutputTokens,totalPromptTokensandtotalCachedTokensare counted from the appended lines, so the token ledger and the health evaluator's progress counters work for Pico. They count from when the dashboard began following, and are reset together with the probe's detection state so the ledger never sees a counter fall to zero and jump back.What it does not change
pico.llmHostset, Mac or Windows units): the follower yields nothing and the probe behaves exactly as before, including the stream-sample setting.picoLogoption (every existing test) is untouched./v1/models.Limitation
A request appears in the log when it ends, so the figure trails live traffic by up to one request, and a single very long request shows nothing until it finishes. That is why the window is a minute and not a few seconds: with a short window the figure sat at zero while requests ran and flashed when they ended. Picom-code/pico-dgx-ds4#12 proposes a real
/metricsendpoint; if that lands it is the better live source and this stays useful for installs without it.Testing
npm run typecheckandnpm run buildpass.npm test: frontend 172 files / 1292 tests pass. Server: 2152 tests, 2127 pass, 23 skipped, 2 fail. The same two fail for me on an untouchedmain(host-side timeout kills a stuck journal command and its children,without renameat2, mv -n --no-copy -T is used after its self-test), so they look specific to my machine.server/collectors/__tests__/picoFrontLog.test.js(13 tests, including the remote shell program run against a stand-in process on Linux) and 4 tests inLlmProbe.pico.test.js, plus one panel test.0.0with the Engine log label.🤖 Generated with Claude Code
https://claude.ai/code/session_01MFTpsYwigfq8w5F6AnvVAc