| Post Reply | RetroFed Forum Forum Index » Ask Lemmy |
| Author | Message | ||
|---|---|---|---|
SnausagesinaBlanket
lemmy.world
snausagesinablanket@lemmy.worldJoined: 2023-07-22 |
|
||
| 43 Original | |||
lime!
feddit.nu
lime@feddit.nuJoined: 2024-08-21 |
sure, hardware wattage × time taken per prompt. which model specifically are you referring to and on what hardware? Edit: say, for example, that i'm running a model that takes ten seconds to respond on my Radeon 7900 XTX. it's power limited to 300W, but the rest of the system also pulls power during runtime so let's call it 400. to get watt-hours we take watts times hours. one second is 1/3600th of an hour. that comes out to 400 × 10 ÷ 3600 ≈ 1.11Wh. so that's equivalent of leaving a 6W LED light on for about 11 minutes, or an old-fashioned incandescent bulb on for 80 seconds. |
||
| 16 | |||
|
tyrant
lemmy.world
tyrant@lemmy.world Joined: 2023-07-19 |
I'd imagine it depends on the size of the llm. My local llm is about 20gb and pegs the GPU for maybe 5-10 seconds (6700xt 12gb) so you could probably extrapolate from that based on that. I'm sure these giant AI gpus would be more efficient though so maybe not. |
||
| 3 | |||
empireOfLove2
lemmy.dbzer0.com
empireOfLove2@lemmy.dbzer0.comJoined: 2023-12-22 |
There's no way that I know of to see the per prompt usage for commercially available models. They obviously hide that. I admit I don't research them much but I am assuming each chip is processing prompts one at a time. Its pretty simple arithmetic - if it's running exclusively on a single GPU system, and a prompt takes X seconds to generate on said gpu, then you take the GPUs power over X seconds plus whatever fraction of the datacenter overhead power that gpu uses. For locally run models on your own hardware this is also trivial to calculate. Alternatively, GPU's run at a certain number of "tokens" per second and each prompt is a certain number of tokens being fed into the model, generally scaling with the length of prompt. |
||
| 4 | |||
Scrubbles
poptalk.scrubbles.tech
scrubbles@poptalk.scrubbles.techJoined: 2023-06-02 |
You're looking for tokens. Prompts are broken down into tokens, which then are used to generate tokens in response. All are represented by large integers. The common metric is tokens/second, and if utilized correctly the GPU should pin at 100% usage while generating tokens. Calculate how many tokens per second it's generating and how many tokens you're using, times the wattage per second and you're good. |
||
| 15 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
I'd say "no", if this is from a cloud LLM provider, and you want a lot of precision.
You might get approximate numbers from a provider, and those might be good enough for your use. Like, if someone just wants to know, say, about how much power generation infrastructure is required, it may not be necessary to be spot-on. And I'm sure that you can put some upper and lower bounds on the real value. If you're running an LLM on your own hardware, then you can measure it and constrain the way in which it is computed not to change and such, so then you can probably get values as accurately as you want. |
||
| 4 | |||
|
fizzle
quokk.au
fizzle@quokk.au Joined: 2025-11-21 |
Most of the power consumption comes from training and optimising models. You only interact with the finished product, so power per query is very low compared to that required to develop the LLM. |
||
| 30 | |||
lime!
feddit.nu
lime@feddit.nuJoined: 2024-08-21 |
Most of the power consumption comes from training and optimising models. You only interact with the finished product, so power per query is very low compared to that required to develop the LLM.
while this is true in isolation, the amount of users means that inference now uses more power than training for the large actors. |
||
| 11 | |||
lime!
feddit.nu
lime@feddit.nuJoined: 2024-08-21 |
There's no way that I know of to see the per prompt usage for commercially available models. They obviously hide that. I admit I don't research them much but I am assuming each chip is processing prompts one at a time. Its pretty simple arithmetic - if it's running exclusively on a single GPU system, and a prompt takes X seconds to generate on said gpu, then you take the GPUs power over X secon...
openai actually released some figures on power use per prompt, but the caveat is that a single prompt to their services can trigger multiple responses (the "thinking" mode) so they're not consistent. |
||
| 1 | |||
chicken
lemmy.dbzer0.com
chicken@lemmy.dbzer0.comJoined: 2023-06-30 |
You can use a wattage meter between your outlet and computer. I've tried that, and the usage is around the same as a graphically intensive videogame while it is generating. |
||
| 5 | |||
|
Michal
programming.dev
Michal@programming.dev Joined: 2023-08-09 |
while this is true in isolation, the amount of users means that inference now uses more power than training for the large actors.
The question is about per-prompt, so number of users is not relevant. If anything, number of users will decrease power use per prompt due to economy of scale. |
||
| 8 | |||
|
Michal
programming.dev
Michal@programming.dev Joined: 2023-08-09 |
You can use a wattage meter between your outlet and computer. I've tried that, and the usage is around the same as a graphically intensive videogame while it is generating.
There's a huge difference between a model you can run locally and a chatgpt model. |
||
| 7 | |||
|
Tangent5280
lemmy.world
Tangent5280@lemmy.world Joined: 2023-07-14 |
There's a huge difference between a model you can run locally and a chatgpt model.
Sure, but without actually knowing what kind of hardware the servers are running, what kind of software too, and what their service backend looks like we can't say whether it is going to be higher or lower. |
||
| 1 | |||
|
Michal
programming.dev
Michal@programming.dev Joined: 2023-08-09 |
Sure, but without actually knowing what kind of hardware the servers are running, what kind of software too, and what their service backend looks like we can't say whether it is going to be higher or lower.
I think we can assume it's nvidia H200 which peaks at 700W what what I saw on Google. Multiply that by the turnaround time from your prompt to full response and you have a ceiling value. |
||
| 4 | |||
SnausagesinaBlanket
lemmy.world
snausagesinablanket@lemmy.worldJoined: 2023-07-22 |
You can use a wattage meter between your outlet and computer. I've tried that, and the usage is around the same as a graphically intensive videogame while it is generating.
How does a wattage meter on my computer measure power used by an LLM server someplace else per prompt? |
||
| 2 | |||
chicken
lemmy.dbzer0.com
chicken@lemmy.dbzer0.comJoined: 2023-06-30 |
How does a wattage meter on my computer measure power used by an LLM server someplace else per prompt?
I have a LLM server on my computer, so I can tell how much electricity it is using this way. It's not somewhere else is how |
||
| 1 | |||
SnausagesinaBlanket
lemmy.world
snausagesinablanket@lemmy.worldJoined: 2023-07-22 |
I have a LLM server on my computer, so I can tell how much electricity it is using this way. It's not somewhere else is how
[deleted]
|
||
| -3 | |||
chicken
lemmy.dbzer0.com
chicken@lemmy.dbzer0.comJoined: 2023-06-30 |
[deleted]
You asked if there's a way to tell how much power LLMs use, you didn't specify LLMs on a server you don't have physical access to. |
||
| 4 | |||
|
Evotech
lemmy.world
Evotech@lemmy.world Joined: 2023-10-11 |
It will vary based on the llm, tokens and tool calls |
||
| 1 | |||
|
Treczoks
lemmy.world
Treczoks@lemmy.world Joined: 2023-07-09 |
As it largely depends on the prompt, no. I've seen prompts that ate kilotokens and took ages, and others that barely scratched the budget and returned immediately. You simply cannot give a generalized answer here. It's like asking "How much does a visit to the ER cost?" It depends on if they have to put on a band aid, or put you in the ICU for a few weeks. |
||
| 4 | |||
Tattorack
lemmy.world
Tattorack@lemmy.worldJoined: 2023-10-28 |
As it largely depends on the prompt, no. I've seen prompts that ate kilotokens and took ages, and others that barely scratched the budget and returned immediately. You simply cannot give a generalized answer here. It's like asking "How much does a visit to the ER cost?" It depends on if they have to put on a band aid, or put you in the ICU for a few weeks.
Easy answer: it's free. :D |
||
| 4 | |||
|
spectrums_coherence
piefed.social
spectrums_coherence@piefed.social Joined: 2026-02-15 |
Most of the power consumption comes from training and optimising models. You only interact with the finished product, so power per query is very low compared to that required to develop the LLM.
As far as I know it is still much more expensive compare to alternatives like grammar checker and web search. Just because inference is more efficient than an training, which consumes energy on the scale of nation states, doesn't mean inference itself is econonical. |
||
| 1 | |||
|
spectrums_coherence
piefed.social
spectrums_coherence@piefed.social Joined: 2026-02-15 |
sure, hardware wattage × time taken per prompt. which model specifically are you referring to and on what hardware? Edit: say, for example, that i'm running a model that takes ten seconds to respond on my Radeon 7900 XTX. it's power limited to 300W, but the rest of the system also pulls power during runtime so let's call it 400. to get watt-hours we take watts times hours. one second is 1/3600t...
For additional reference, boiling a liter of water takes just shy of 100Wh (not counting heat absorbed by kettles or heat distributed into the air): https://www.quora.com/How-many-watts-do-I-need-to-heat-1-liter-of-water |
||
| 1 | |||
|
General_Effort
lemmy.world
General_Effort@lemmy.world Joined: 2023-12-18 |
As you can tell from the previous answers: It depends. The bigger an LLM is, the more power it uses. AI models can be quantized or distilled to yield smaller but less capable models. Providers may try to route you to the cheapest model that can handle your prompt. Another question is the length of the output. The length of the input matters less but might be relevant for processing long texts. The energy used for training is relatively insignificant once you average it over its lifetime. The energy efficiency of a particular data center will certainly matter more. Providers like OpenAI claim that the typical query uses about 0.3Wh. That's about the same as an idling phone charger uses in an hour; ie charger plugged into the outlet but not into the phone. |
||
| 2 | |||
|
Treczoks
lemmy.world
Treczoks@lemmy.world Joined: 2023-07-09 |
It's like asking "How much does a visit to the ER cost?" Easy answer: it's free. :D
Yes, here in civilized countries it is, but this was an example for Americans. |
||
| 2 | |||
| Post Reply |
Back to top |