github mostlygeek/llama-swap v278

45 minutes ago

New performance monitoring system!

Thank you to @tdamir, @theslava and @sousekd for contributing improved metrics extraction and bug fixes.

The main feature of this release is a new performance monitoring backend. It has
been completely rewritten to be more accurate and extensible based on the
feedback from the community.

Key changes:

  • Auto mode learns the best monitoring strategy and optimizes itself for widest
    hardware support using the fewest monitors.
  • The new performance.monitors configuration allows disables auto mode and
    allows full control over the monitoring strategy. Use llama-swap's built in
    help agent can assist in generating a configuration.
  • Rigs with mixed GPUs are now supported.
  • GPU monitoring automatically pauses when there is no model loaded. Polling
    GPUs prevents them from sleeping and consumes extra energy. This can be disabled
    by setting performance.disableIdlePause to true.
  • The UI has been rewritten to show additional metrics and an
    overall layout improvement.
  • The prometheus endpoint has new metric definitions so setups may need to be
    updated to match changes.

The feature is still considered experimental so please continue to share
feedback in the Performance Monitor discussion:
#771


  • PR #1382 internal/perf: rewrite performance monitoring as pluggable monitors: replaces the old package with a controller running a configurable list of monitors (sysmon, nvidia-smi, rocm-smi, lactd, mactop, ioreg, d3dkmt, sysfs, xpu-smi) merged per GPU by PCI address, adds a new performance.monitors config, better auto-detection, and an all-new Performance page, no breaking config changes by @mostlygeek
  • PR #1335 internal/server: detect tensorfold and map its draft counters: adds a TensorFold prober that detects it from owned_by alone and reads drafted/accepted speculative-decoding counters from its top-level speculative object, so speculative rates show up instead of being rejected or left unknown by @tdamir
  • PR #1367 CI: run only Windows specific tests on Windows: adds a test-windows target limited to the four packages with Windows-specific code so the Windows runner stops re-running the whole suite already covered on Linux, cutting wall clock time and flaky process/timing failures by @mostlygeek
  • PR #1377 Read 1cat-vllm metrics correctly: parses the timing format emitted by 1cat-vllm, a Volta-optimized vllm fork, so prefill and decode speeds show real values instead of "unknown" by @theslava
  • PR #1379 ui/models: hide scrollbar on the Models page tab strip: the active tab's underline protruded 1px below the tab box, which made classic Windows scrollbars draw a vertical scrollbar next to the tabs; hides scrollbars the same way the Playground tab strip does by @sousekd

Don't miss a new llama-swap release

NewReleases is sending notifications on new releases.