Ask HN:大规模 GPU 功耗如何测量?

3 分•作者: anax32•4 个月前
在大型(32块GPU)自托管设置或小型多机架设置中,人们如何测量GPU的功耗?我见过一些可以收集和传输数据的PDU(电源分配单元),但我不太清楚具体流程,以及人们是否/如何在小型设备上进行功耗测量。 目前,我通过每100毫秒轮询NVML的`nvmlDeviceGetPowerUsage`来收集推理过程中的数据,并计算每次请求的峰值和平均功耗,得到的数据如下: | 模型 | 平均功耗范围 (W) | 波动范围 | 标准差 | | :----------------------- | :--------------- | :------- | :----- | | qwen3-8b | 114.3-121.9 | 7.6W | 1.17 | | llama-3.1-8b-instruct | 104.7-122.1 | 17.4W | 4.29 | | qwen2.5-1.5b-instruct | 53.7-73.0 | 19.3W | 5.23 | | mistral-7b-instruct-v0.3 | 96.2-120.0 | 23.8W | 6.01 | | qwen2.5-7b-instruct | 88.7-124.5 | 35.8W | 7.73 | | gemma-3-1b-it | 49.4-56.7 | 7.3W | 2.13 | 这是单卡、每GPU的数据——我不知道在机架规模下是否还能进行每次请求的功耗归因,或者说在那里的监控是否完全在PDU/BMC层面进行。
查看原文
How do people measure power usage of GPUs at large (32x) self-hosted setups or small multi-rack setups? I&#x27;ve seen some PDUs which collect and transmit data, but I&#x27;m unsure of the processes and if&#x2F;how people do this on small builds.<p>Currently, I collect NVML nvmlDeviceGetPowerUsage, polled at 100ms during inference, peak and mean per request, and get this type of data:<p>model mean-power range (W) spread stdev<p>qwen3-8b 114.3-121.9 7.6W 1.17<p>llama-3.1-8b-instruct 104.7-122.1 17.4W 4.29<p>qwen2.5-1.5b-instruct 53.7-73.0 19.3W 5.23<p>mistral-7b-instruct-v0.3 96.2-120.0 23.8W 6.01<p>qwen2.5-7b-instruct 88.7-124.5 35.8W 7.73<p>gemma-3-1b-it 49.4-56.7 7.3W 2.13<p>this is per-GPU, single-card data - I don&#x27;t know whether anything like per-request attribution survives at rack scale, or whether monitoring there happens entirely at the PDU&#x2F;BMC level instead.