"""Collect host metrics on a run without torch. ``launchhelm.system.start`` runs a daemon thread sampling CPU, memory, disk and network rates plus per-GPU telemetry when NVML is present. It never blocks logging; missing psutil/NVML logs one info line and a status label instead of failing. Requires ``pip install "launchhelm[system]"``. python system_metrics.py """ import time import launchhelm import launchhelm.system with launchhelm.init("quickstart", name="system-demo") as run: launchhelm.system.start(run, interval=2.0) for step in range(8): run.log({"loss": 2.0 / (step + 1)}, step=step) time.sleep(0.5) print("run finished:", run.run_id)