Inference Engineering

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

  1. 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.

  2. Nsight Compute Tool

    Kernel profiler that reads hardware counters to report roofline position, memory-hierarchy throughput, occupancy, and warp stall reasons per CUDA kernel.

  3. Compute Sanitizer Tool

    CUDA toolkit checkers (memcheck, racecheck, initcheck, synccheck) that catch out-of-bounds accesses, shared-memory races, and synchronization misuse.

  4. 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.

  5. Holistic Trace Analysis Tool

    Analyzes PyTorch profiler traces across ranks, splitting GPU time into compute, communication, and idle, with overlap and critical-path reports.

    MIT · 566 stars · Updated 2026-11

  6. Perfetto Tool

    Browser-based trace viewer with a SQL trace processor, used to inspect PyTorch, Chrome-format, and Linux system traces without uploading them.

    Apache-2.0 · 6.8k stars · Updated 2026-11

  7. ROCm Compute Profiler Tool

    Kernel-level profiler for AMD Instinct GPUs that turns hardware counters into speed-of-light, memory-chart, and roofline analyses.

    568 stars · Updated 2026-11

  8. 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.

    568 stars · Updated 2026-11

XIII.2 Monitoring & Telemetry 6

  1. DCGM Exporter Tool

    Exposes GPU utilization, memory, power, clocks, and XID errors from DCGM as Prometheus metrics, typically deployed as a Kubernetes DaemonSet.

    Apache-2.0 · 1.9k stars · Updated 2026-11

  2. 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.

    Apache-2.0 · 820 stars · Updated 2026-11

  3. 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.

    Apache-2.0 · 71 stars · Updated 2026-11

  4. vLLM Production Metrics Docs

    Reference for the Prometheus metrics vLLM serves, including TTFT and inter-token latency histograms, KV cache usage, prefix-cache hits, and deprecations.

    Apache-2.0 · 97k stars · Updated 2026-11

  5. 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.

    Apache-2.0 · 39k stars · Updated 2026-11

  6. 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.

    experimental · Apache-2.0 · 560 stars · Updated 2026-11

XIII.3 Correctness & Determinism 6

  1. 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.

    MIT · 1.1k stars · Updated 2025-11

  2. vLLM Batch Invariance Docs

    Explains the beta VLLM_BATCH_INVARIANT mode, its supported NVIDIA, AMD, and Intel GPUs, validated models, and the tensor-parallel all-reduce caveat.

    experimental · Apache-2.0 · 97k stars · Updated 2026-11

  3. 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.

    Apache-2.0 · 39k stars · Updated 2026-11

  4. 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.

    ICML 2026 · Code

  5. 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.

    NeurIPS 2025 · Code

  6. 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.

    MIT · 211 stars · Updated 2026-11

XIII.4 Cost & Energy Efficiency 5

  1. 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.

    Apache-2.0 · 389 stars · Updated 2026-11

  2. Kepler Tool

    CNCF Sandbox Prometheus exporter that estimates CPU, DRAM, and GPU energy and attributes it to Kubernetes nodes, pods, and containers.

    Apache-2.0 · 1.6k stars · Updated 2026-11

  3. 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.

    MIT · 44 stars · Updated 2025-12

  4. 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.

    freemium

  5. 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.

    201 stars · Updated 2026-11

XIII.5 Security & Confidential Inference 6

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Fickling Tool

    Trail of Bits decompiler and static analyzer for pickle and PyTorch files that flags code-executing payloads before a model is loaded.

    LGPL-3.0 · 678 stars · Updated 2026-11

  6. vLLM Security Guide Docs

    Hardening notes for vLLM deployments covering unauthenticated inter-node traffic, endpoints that --api-key leaves open, and trusted cache directories.

    Apache-2.0 · 97k stars · Updated 2026-11