11 comments

  • dan_sbl4 hours ago
    &gt; For example, when the GPU is fully idle, nvidia-smi tells me that it’s only pulling 88W of power.<p>I haven&#x27;t used a non-laptop GPU in some time, but that is a crazy amount of &quot;idle&quot; power consumption. Is this normal for cards like this?
    • Aurornis4 hours ago
      Server cards are not optimized for idle power usage. They’re expected to be fully utilized.<p>For server gear it’s more common to have less dynamic power and voltage switching because it produces more predictable performance and latency.
      • cmovq3 hours ago
        For GeForce cards you can get similar behavior by setting “Prefer maximum performance” which disables some of the low power states.
    • wildzzz3 hours ago
      If my gpu is sitting idle, and I mean idle with nothing loaded into its memory, it&#x27;s sitting at about 18W. If I load in model that uses nearly all of the memory but that model is idle, it&#x27;s at 36W. If that model is actively thinking, it&#x27;s like 118W. I think this is likely due to the GPU being aware that there is real data loaded into memory and turning up the DRAM refresh rate whereas when nothing is loaded, the dynamic power is as low as possible.
    • legitronics2 hours ago
      Yes, I have some of these cards and AFAICT the HBM2e chips just always run at full speed. I have different variants of the pcie cards and while I can get the gpu itself into a lower power state the memory just runs full tilt. Though I see 40w on my “normal” cards and 60w on the Frankenstein card that thinks it’s an sxm4.
    • umanwizard3 hours ago
      I suspect the act of running nvidia-smi itself prevents the GPU from being put into a low-power state.
      • zacmps2 hours ago
        From memory this is true and nvml (Nvidia management library) is the way to get stats that doesn&#x27;t cause the GPU to wake.
  • ggambetta2 hours ago
    I&#x27;d have guessed multiply-by-0 and multiply-by-1 can be special-cased to run much faster and simpler code paths, like you&#x27;d do when writing MUL for a processor that doesn&#x27;t have it (I &lt;3 z80)
    • Thorondor2 hours ago
      Hardware engineer here. Special casing the multiply by 0 and multiply by 1 paths is harder than it sounds. In software, the cost of adding special cases is simply performance. You&#x27;re adding more instructions that execute in sequence on a CPU that already physically exists. Doing this for your multiply case is worthwhile because the speedup is large for 0 and 1 while the cost is not that large (relative to the time taken for the whole multiplication operation) for other values.<p>Hardware is different. Every operation that can be performed in hardware by a chip needs dedicated circuitry. Special casing 0 and 1 means adding at least OR reduction on each operand and a dedicated multiplexer for every bit of the output. Those transistors use power even when they&#x27;re not in use (leakage power is a huge issue on modern semiconductor processes). They also degrade timing by adding more gates on critical paths through the multipliers. (The timing issue here is that all operations that happen between one flip-flop and another flip-flop need to finish within one clock cycle.) And unless there are whole blocks of 0&#x27;s and 1&#x27;s (this does happen in certain neural networks), you typically won&#x27;t see a direct speedup anyway. In software terms, the matrix multiply is scheduled as many parallel operations that cannot be accelerated much overall by skipping a few operations in some &quot;threads.&quot;<p>All of this makes zero skipping a nontrivial topic. People do still try to do it but it needs serious consideration as, depending on the application, the case is rarely one-sided.
      • nomel59 minutes ago
        You didn&#x27;t touch on the most important aspect for cost: die area!<p>How much die space ($) will that circuitry, that&#x27;s probably statistically near zero chance for you main customers workload (who has model weight of 0 or 1!?), add. And, if you can stomach the cost, what <i>else</i> could you put there instead?
        • Thorondor26 minutes ago
          Weights should not be 0 (at least not frequently) but in a ReLU-based neural network, activations are 0 pretty often. You&#x27;re absolutely right about die area though.
  • nzach5 hours ago
    I went in expecting to find &#x27;branch prediction&#x27;[0] as the answer, but apparently things are even more complex nowadays.<p>[0] - <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;11227809&#x2F;why-is-conditional-processing-of-a-sorted-array-faster-than-of-an-unsorted-array" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;11227809&#x2F;why-is-conditio...</a>
    • gruez4 hours ago
      &gt;I went in expecting to find &#x27;branch prediction&#x27;[0]<p>GPUs do branch prediction? I thought they didn&#x27;t bother and try to minimize wasted effort by using high amounts of concurrent threads?
      • jayd163 hours ago
        They do texture prefetching, which is sorta similar.
    • kangalioo4 hours ago
      To be fair, the culprit in the article is _less complex_ than branch prediction: &quot;with random data, bits are flipped often, and bit flips in transistors inherently draw power&quot; is less mental gymnastics than &quot;with random data, the cpu fails to predict the future, causing redundant speculative execution&quot;
      • eff-nix16 minutes ago
        But why do we expect random data to result in more bit flips? That seems harder to argue than the mechanics of a basic branch prediction system.
    • bee_rider3 hours ago
      I expected a “torch is smart enough to keep track of cases where it just initialized the C in C &lt;= A*B+C to zero, avoiding the add” type situation but I was wrong.
    • ryanisnan3 hours ago
      That&#x27;s exactly what I thought.
  • jetsamflotsam3 hours ago
    I feel like many of the comments missed the point or didn&#x27;t read the article. What I believe this article is stating (and I&#x27;ve read this many times during my PhD for various reasons), is that the input data distributions affect how many transistor state changes there are during multiplication. Since these events are a large portion of energy loss&#x2F;heat generation, the clocks won&#x27;t be throttled as much for certain data patterns.<p>There was a workshop paper from SC24 that did more experiments around this I believe. I can&#x27;t find it now though.
  • jayd164 hours ago
    I can&#x27;t tell from the blog, is this actually verified or is it theory and then numbers showing plausibility?<p>I could certainly come up with alternative theories about memory compression and prefetching if we were talking about texture reads.
  • amelius4 hours ago
    Sounds like a side channel attack waiting to happen.
    • unglaublich3 hours ago
      So I guess we&#x27;ll all be applying a random rotation to our matrices now to obscure their contents, like TurboQuant does. <a href="https:&#x2F;&#x2F;arkaung.github.io&#x2F;interactive-turboquant&#x2F;#rotation" rel="nofollow">https:&#x2F;&#x2F;arkaung.github.io&#x2F;interactive-turboquant&#x2F;#rotation</a>
      • buildbot3 hours ago
        Not that it super matters, but random hadamards for quantization have been a thing since way before turboquant.<p><a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2404.00456" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2404.00456</a>
        • DiabloD335 minutes ago
          Which llama.cpp now does.
  • gdevenyi6 hours ago
    People have been noticing the effects of this in local LLM inference. Power limiting seems to improve overall performance!
    • Aurornis5 hours ago
      This is not observable from LLM inference, where you would not encounter uniform matrices.<p>Power limiting does not improve performance but it does improve efficiency. You might be able to get 90% of the performance for only 70% of the power usage, for example. It does not make the card go faster though.
      • Lerc4 hours ago
        When thermal throttling occurs you can perform faster by running slower.<p>This is precicely because of the efficiency. The lower efficiency of the higher speed triggers a much lower performance sooner.
        • Aurornis3 hours ago
          &gt; When thermal throttling occurs you can perform faster by running slower.<p>This is not true unless the throttling algorithm is so broken that it&#x27;s oscillating between extremes.<p>The parts have a curve of clock speed versus voltage. More clock speed means higher performance. That goes further up the voltage curve, meaning more power.<p>Throttling just moves the card further down the voltage to clock speed curve. It reduces clock speed, reducing performance.<p>The cards don&#x27;t &quot;perform faster by running slower&quot;. If you run the card slower, it performs slower.
          • PcChip3 hours ago
            with a lower power cap set, it runs cooler, which sometimes allows the GPU to reach higher boost speeds. This is a real effect on gaming GPUs - however I have no idea if it applies to datacenter GPUs
    • gchamonlive6 hours ago
      In general, constraints require optimizations and rearchitectures. I&#x27;d also expect the ram shortage for instance to have a big impact on the software industry as a whole, specially in games. They will need to make do with what people have, a ps5&#x2F;pro or similar in PC power.
      • aNoob70005 hours ago
        I actually think it is a good thing to introduce constraints to AI and the overall tech industry. Hopefully everyone will have to look at improving performance without having to add RAM or increase CPU&#x2F;GPU performance.
        • gchamonlive4 hours ago
          As long as these constraints are for everyone and not just for thee and not for me, and become an instrument for big tech to keep consumers dependent on their infra.
  • bitwize4 hours ago
    It wouldn&#x27;t surprise me to see some ML algorithm <i>in silico</i> somewhere to select faster matmul paths on favorable data. Yo dawg, I heard you like AI, so we put some AI in your AI so you can infer while you&#x27;re inferring.
    • Nevermark3 hours ago
      Here is one: An adjustment to weight updates, that makes it more likely for weights to stay uniformly distributed.<p>~257.5 teraflops for normal distribution, versus ~268 teraflops uniform, reported on the first graph.<p>I would have liked to see a straight graph of performance vs. clock speed, for each type of data. Pick your data statistics, then pick the peak performance clock speed accordingly.<p>And for actual runs, from a pre-run sampled curve.
    • falcor844 hours ago
      And there&#x27;s at least one more level of inception at the data center level, where they use AI to optimize power usage (particularly by predictively controlling cooling, and adaptively rescheduling tasks).
  • evanjrowley5 hours ago
    Designing for predictable execution flow is one of the advantages of Tenstorrent hardware.<p><a href="https:&#x2F;&#x2F;clehaxze.tw&#x2F;gemlog&#x2F;2025&#x2F;04-21-programming-tensotrrent-processors.gmi" rel="nofollow">https:&#x2F;&#x2F;clehaxze.tw&#x2F;gemlog&#x2F;2025&#x2F;04-21-programming-tensotrren...</a><p><a href="https:&#x2F;&#x2F;clehaxze.tw&#x2F;gemlog&#x2F;2026&#x2F;01-22-the-real-tenstorrent-tensix-programming-model.gmi" rel="nofollow">https:&#x2F;&#x2F;clehaxze.tw&#x2F;gemlog&#x2F;2026&#x2F;01-22-the-real-tenstorrent-t...</a><p><a href="https:&#x2F;&#x2F;arxiv.org&#x2F;html&#x2F;2604.03279" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;html&#x2F;2604.03279</a>
  • cold_harbor5 hours ago
    [dead]