Commit Graph
12 Commits
Author SHA1 Message Date
Troed Sångberg fdf4aa4edc fix: v0.0.42 - clear TPS when generation ends or stalls
- Clear lastGeneratedTps when n_decoded delta <= 0 (generation stalled)
- Clear lastGeneratedTps and bump display when slot stops generating
- Fix genEnded scoping (moved outside for loop)
- Bump display when generation ends so TPS returns to ----
2026-06-13 23:08:00 +02:00
Troed Sångberg 917ab344b6 feat: v0.0.41 - slot-based TPS from n_decoded, 500ms poll interval
- Replace metrics-based TPS with slot n_decoded tracking during generation
- Add generation tracking state (generateSlotId, generateCapturedDecoded, generateStartAt)
- Poll interval reduced from 2s to 500ms to catch shorter prefill/generation events
- AVG now uses session average from message events (cumulative tokens/duration)
- Remove unused fetchMetrics, formatRate, formatTtft functions
- TPS: slot-based (shows for all generation including files)
- AVG: session average (cumulative across messages)
2026-06-13 22:59:22 +02:00
Troed Sångberg 36fcaa27a1 feat: v0.0.40 - per-slot PP calculation from /slots endpoint
- Fix PP calculation: use per-slot n_prompt_tokens during prefill state
  instead of global llamacpp:prompt_tokens_total from /metrics
- Add isPrefilling flag and prefill tracking state (slotId, capturedTokens, startAt)
- Add dedicated formatters: formatPps, formatTps, formatAvg, pad4
- Replace formatRate suffixes with raw number formatters
- Display: PP | TPS | AVG with fixed-width 4-char padding
- Slot polling every 2s with model query parameter
- Debug logging to /tmp/oc-ls-stats-debug.log
- Add .npmignore, TUIPLUGIN.md, test-debug-log.jsonl
- Update AGENTS.md with slot state phases, PP calculation docs
2026-06-13 22:52:31 +02:00
Troed Sångberg a1a968fdb8 0.0.20 2026-06-13 21:15:31 +02:00
Troed Sångberg aa61f922a1 Fix plugin loading: correct TUI signature, fix regex syntax, restore SessionPromptRight component 2026-06-13 21:15:22 +02:00
Troed Sångberg a161a54aaa Test: Fix plugin ID and slot registration 2026-06-13 21:00:38 +02:00
Daniel Smolsky db1fbf043c Bump version to 0.0.6 2026-04-04 17:20:20 -04:00
Daniel Smolsky da41dda631 Bump version to 0.0.5 2026-04-04 17:04:48 -04:00
Daniel Smolsky 9f21d1fc83 Bump version to 0.0.4 2026-04-04 13:23:14 -04:00
Daniel Smolsky 5d7c7bbfb8 Refine live TPS and session average 2026-04-04 13:21:00 -04:00
Daniel Smolsky e7160857de Improve TPS tracking and add README 2026-04-04 03:54:50 -04:00
Daniel Smolsky 21da2b4b5e Add oc-tps plugin 2026-04-04 02:58:46 -04:00