• Stefy Lanza (nextime / spora )'s avatar
    show live GPU and VRAM per pod on the RunPod page (v0.4.67) · 1b8430eb
    Stefy Lanza (nextime / spora ) authored
    The page listed what each pod COSTS and nothing about what it is doing, so a
    saturated pod and an idle one looked identical next to the same $/hr.
    
    Read from the PODS, not from RunPod. A pod runs coderai, so it already serves
    /admin/api/gpu-stats -- per-card util, VRAM used/total and temperature,
    collected with nvidia-smi off its own event loop and cached there for 1.5s.
    RunPod reports utilisation too, but it lags by tens of seconds and every read
    spends the quota that renting and boot-polling need: a 429 there is what
    stopped the fleet scaling for 3.3h on 2026-10-19. Telemetry must never be able
    to cost a fleet its ability to rent.
    
    Utilisation and temperature are the BUSIEST card, not the mean -- on a
    multi-card pod the saturated card decides whether it can take more work, and
    averaging it with an idle sibling hides exactly that condition. VRAM is summed,
    being the pool a model is loaded into.
    
    Bounded everywhere, because this is the page an operator opens when something
    is already wrong: 2.5s per pod, all pods concurrently, a 4s TTL so several open
    tabs collapse onto one round, and a 3s cap on the round -- a slow pod drops out
    and the rest still render. The spend figures beside it stay right when the
    telemetry does not arrive, and a pod that is booting or unreachable shows a
    dash, never a zero: a zeroed bar reads as "idle" when the truth is "unknown".
    
    held_pod_endpoints() is deliberately separate from pods_status(): that snapshot
    is serialised into a browser and a pod's bearer must not be. Covered by a test.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01S8LAP3ueNzQJtwzhgVbq66
    1b8430eb
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...