XIII. Observability & Operations
Running inference in production: profiling, telemetry, correctness and determinism, cost and energy, and security.
31 entries · 5 subsections
Editor’s pick
XIII.1 Profiling & Debugging 8
Nsight Systems Tool
System-wide timeline profiler that lines up CPU threads, OS runtime, CUDA API calls, kernels, memory copies, and NVTX ranges to expose idle GPU time.
Nsight Compute Tool
Kernel profiler that reads hardware counters to report roofline position, memory-hierarchy throughput, occupancy, and warp stall reasons per CUDA kernel.
Compute Sanitizer Tool
CUDA toolkit checkers (memcheck, racecheck, initcheck, synccheck) that catch out-of-bounds accesses, shared-memory races, and synchronization misuse.
PyTorch Profiler Tool
Captures operator, GPU kernel, and memory events from PyTorch programs and exports Chrome-format traces for viewing in Perfetto or analysis with HTA.
Analyzes PyTorch profiler traces across ranks, splitting GPU time into compute, communication, and idle, with overlap and critical-path reports.
Perfetto Tool
Browser-based trace viewer with a SQL trace processor, used to inspect PyTorch, Chrome-format, and Linux system traces without uploading them.
Kernel-level profiler for AMD Instinct GPUs that turns hardware counters into speed-of-light, memory-chart, and roofline analyses.
ROCprofiler-SDK and rocprofv3 Tool
ROCm tracing and counter-collection library whose rocprofv3 CLI records HIP API, kernel, and memory-copy timelines; supersedes rocprof and rocprofv2.
XIII.2 Monitoring & Telemetry 6
DCGM Exporter Tool
Exposes GPU utilization, memory, power, clocks, and XID errors from DCGM as Prometheus metrics, typically deployed as a Kubernetes DaemonSet.
NVIDIA DCGM Tool
Data Center GPU Manager library and dcgmi CLI for fleet health checks, active diagnostics, and policy alerts; the telemetry source behind dcgm-exporter.
AMD Device Metrics Exporter Tool
Prometheus exporter for AMD GPU temperature, utilization, memory, power, and PCIe metrics, deployable with Helm on Kubernetes or alongside Slurm.
Reference for the Prometheus metrics vLLM serves, including TTFT and inter-token latency histograms, KV cache usage, prefix-cache hits, and deprecations.
SGLang Production Metrics Docs
Lists the Prometheus metrics SGLang exposes with --enable-metrics, from TTFT and TPOT histograms to cache hit rate, plus a ready Grafana stack.
OpenTelemetry GenAI Semantic Conventions Spec
Draft span, metric, and event names for GenAI clients, servers, agents, and MCP, including server-side time-to-first-token and time-per-output-token metrics.
XIII.3 Correctness & Determinism 6
batch_invariant_ops Library
Triton matmul, log-softmax, and mean kernels swapped in through torch.Library so results do not depend on batch size; includes a deterministic vLLM example.
Explains the beta VLLM_BATCH_INVARIANT mode, its supported NVIDIA, AMD, and Intel GPUs, validated models, and the tensor-parallel all-reduce caveat.
SGLang Deterministic Inference Docs
Covers the --enable-deterministic-inference flag, which attention backends keep radix caching and CUDA graphs, and seeded sampling for repeatable rollouts.
TBIK: Deterministic Inference across Tensor Parallel Sizes Paper
Tree-based invariant matmul and reduction kernels that give bit-identical results across tensor-parallel sizes, aligning vLLM rollouts with FSDP training.
Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inference Paper
Shows how GPU count, GPU type, and batch size change reasoning-model outputs under BF16 greedy decoding, and proposes computing in FP32 over 16-bit weights.
Kimi Vendor Verifier Tool
Moonshot's test suite and public scoreboard checking that third-party Kimi API providers match reference accuracy, tool-call validity, and token accounting.
XIII.4 Cost & Energy Efficiency 5
Zeus Library
Measures energy of code regions on NVIDIA and AMD GPUs, CPUs, DRAM, Apple silicon, and Jetson, and ships optimizers for GPU power limits and batch size.
Kepler Tool
CNCF Sandbox Prometheus exporter that estimates CPU, DRAM, and GPU energy and attributes it to Kubernetes nodes, pods, and containers.
AI Energy Score Benchmark
Relative star ratings for model energy efficiency, based on H100 GPU energy per 1,000 queries across standard tasks, with an open Docker harness.
Silicon Index Service
Daily GPU rental price indices for H100, H200, B200, B300, A100, and MI300X across neoclouds and hyperscalers, plus a blended LLM token price index.
LLM Prices Tool
Calculator and price table for hosted model APIs that totals input, cached-input, and output token costs for a given request mix.
XIII.5 Security & Confidential Inference 6
NVIDIA Confidential Computing Documentation Docs
Guides for running AI workloads inside GPU trusted execution environments as bare metal, confidential VMs, or confidential containers, with attestation.
Apple Private Cloud Compute Security Guide Docs
Design of Apple's server-side inference service, covering stateless processing, hardware-rooted attestation, a transparency log, and a research VM.
LiteLLM PyPI Supply-Chain Compromise Advisory (March 2026) Article
Maintainer advisory on two trojaned PyPI releases that stole cloud, SSH, and Kubernetes credentials via a compromised CI scanner, with indicators and fixes.
Hugging Face Pickle Scanning Docs
Explains why pickle-based checkpoints can run code on load, how the Hub flags risky imports in uploads, and why safetensors avoids the problem.
Fickling Tool
Trail of Bits decompiler and static analyzer for pickle and PyTorch files that flags code-executing payloads before a model is loaded.
vLLM Security Guide Docs
Hardening notes for vLLM deployments covering unauthenticated inter-node traffic, endpoints that --api-key leaves open, and trusted cache directories.