Add `lh status`: GPU, VRAM, throughput and cache dashboard
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- cli, observability
Direzione di ricerca
The payload names no source files, only data sources: NVML or nvidia-smi for GPU state, and llama.cpp /props, /slots and timings plus llama-swap /running for model and turn data. Start by checking how the existing token meter and TUI footer are wired, then decide how a status collector fits beside them. Done means lh status and --json show the listed metrics on a llama.cpp endpoint, and a missing source reports unknown.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The user watches GPU load and temperature separately (nvtop, nvidia-smi) while the harness shows only a token meter. They cannot see VRAM headroom, tokens/s, time to first token, queue depth or prefix-cache hit rate in one place. When a run slows down, the cause is invisible.
Inspiration
nvtopandnvidia-smifor GPU state.- llama.cpp
/slotsandtimingsfor per-request throughput and cache hits. - llama-swap
/runningfor the active upstream. - LM Studio's loaded-instance view.
Proposal
Add lh status (and a compact footer mode):
- GPU: utilization, VRAM used/total, temperature, power, throttle reason when available.
- Model: loaded model, context allocated, slots busy/total, queue depth.
- Turn: tokens/s (decode), prefill tokens/s, TTFT, cached prompt tokens / total.
- Session: context used, compaction count, estimated cost (if a price is configured).
- Read from NVML/
nvidia-smi, llama.cpp/propsand/slots, llama-swap/running; degrade gracefully when a source is missing. --jsonfor scripts; no telemetry.
Acceptance criteria
-
lh statusshows GPU, model, slot and turn metrics on a llama.cpp endpoint. - A missing GPU or endpoint shows
unknown, not zero. - Cache hit rate is computed from usage, not guessed.
-
--jsonis stable and documented. - The footer mode updates without blocking the TUI.
- No network calls beyond the configured local endpoint.
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GotinhaAzul/LocalHarness
-
area: ux bug priority: P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
GotinhaAzul/LocalHarness#198 ·
-
area: tools area: ux enhancement priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
GotinhaAzul/LocalHarness#201 ·
-
area: ux bug priority: P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
GotinhaAzul/LocalHarness#200 ·
-
area: ux bug priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GotinhaAzul/LocalHarness#199 ·
-
area: ux enhancement priority: P2
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
GotinhaAzul/LocalHarness#197 ·
Tutte le issue di GotinhaAzul/LocalHarness
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
zed-industries/zed#67561 ·
I maintainer di solito rispondono entro 1 giorno
-
bug has: workaround PR welcome! T: CI/CD
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
chore priority:low ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jdrouet/catapulte#882 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100