| gpu_status | R Documentation |
Queries nvidia-smi for current graphics clock, memory clock,
memory used, power draw and utilisation. Used to catch the
"throttled" state where a laptop dGPU reports 99% utilisation but
is running its cores at idle clock speeds (typically because the
laptop is on battery, in a power-saver profile, or persistence
mode is off). In that state throughput drops ~10x and each LLM
call takes 20-30s instead of 2-3s.
gpu_status(throttled_clock_mhz = 800, loaded_mib = 500)
throttled_clock_mhz |
Threshold below which the graphics clock is considered throttled. Defaults to 800 MHz (a modern dGPU under real inference load should be 1500-2500 MHz). |
loaded_mib |
Threshold at which VRAM is considered "in use by a model" (avoids false-positive throttling at rest, when idle clocks are expected and normal). Defaults to 500 MiB. |
Returns available = FALSE on non-NVIDIA systems; the Metal /
ROCm equivalents don't expose live clock data through a portable
CLI.
A list with available, graphics_clock_mhz,
memory_clock_mhz, memory_used_mib, memory_total_mib,
power_draw_w, utilisation_pct, throttled (logical), and
hint (short human-readable action if throttled).
s <- gpu_status()
if (isTRUE(s$throttled)) message(s$hint)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.