Skip to main content
QUICK REVIEW

[Paper Review] Towards Greener LLMs: Bringing Energy-Efficiency to the Forefront of LLM Inference

Jovan Stojkovic, Esha Choukse|arXiv (Cornell University)|Mar 29, 2024
Metallurgical Processes and ThermodynamicsEngineering13 citations
TL;DR

The paper characterizes energy-efficiency knobs for LLM inference, analyzes their impact on latency, throughput, and energy, and provides insights for sustainable, cost-effective LLM deployment without sacrificing performance.

ABSTRACT

With the ubiquitous use of modern large language models (LLMs) across industries, the inference serving for these models is ever expanding. Given the high compute and memory requirements of modern LLMs, more and more top-of-the-line GPUs are being deployed to serve these models. Energy availability has come to the forefront as the biggest challenge for data center expansion to serve these models. In this paper, we present the trade-offs brought up by making energy efficiency the primary goal of LLM serving under performance SLOs. We show that depending on the inputs, the model, and the service-level agreements, there are several knobs available to the LLM inference provider to use for being energy efficient. We characterize the impact of these knobs on the latency, throughput, as well as the energy. By exploring these trade-offs, we offer valuable insights into optimizing energy usage without compromising on performance, thereby paving the way for sustainable and cost-effective LLM deployment in data center environments.

Motivation & Objective

  • Motivate energy efficiency as a primary goal in LLM inference serving due to rising data center energy concerns.
  • Characterize how workload type, batching, model parallelism, and GPU frequency affect latency, throughput, and energy.
  • Identify practical knobs and trade-offs that enable energy-efficient LLM serving under performance SLOs.
  • Outline requirements for an energy-efficient LLM inference framework and orchestration strategies.

Proposed method

  • Experimentation on Llama-2 70B using NVIDIA DGX-H100 with vLLM as the serving platform.
  • Vary GPU frequency from 800 MHz to 1980 MHz to study latency, throughput, and energy under different workloads.
  • Explore three energy knobs at the platform level: workload type, batching, and model parallelism (tensor parallelism).
  • Use 8-way tensor parallelism as default; analyze TTFT, TBT, throughput, and power/energy across configurations.
  • Analyze effects of workload buckets defined by input/output token lengths (Small, Medium, Large) and different batching sizes.

Experimental results

Research questions

  • RQ1How do workload characteristics (input/output lengths) influence TTFT, TBT, throughput, and energy under frequency scaling?
  • RQ2What are the energy-performance trade-offs when varying tensor parallelism (TP2, TP4, TP8) under realistic LLM workloads?
  • RQ3How does batching interact with frequency scaling to affect latency and energy consumption in LLM inference?
  • RQ4Can energy-efficient configurations be achieved without compromising latency or throughput for typical SLOs?

Key findings

  • Lowering GPU frequency can yield about 20% power reduction for most configurations without impacting latency or throughput.
  • Longer inputs increase prefill pressure and throttle more under frequency caps, while decoding remains memory-bound and less sensitive to frequency changes.
  • Tensor parallelism reduces TTFT and TBT but with diminishing returns due to increased communication overhead; TP2 often offers favorable cost-per-request and can be more energy-efficient than TP8 under certain conditions.
  • Batching interacts with frequency scaling; larger batch sizes may boost throughput but can miss TTFT SLOs, while operating at lower frequencies with moderate batch sizes can yield substantial energy savings (e.g., ~1.6x frequency vs 2.0x) with little throughput loss.
  • Energy efficiency strategies show that optimizing for power, energy, and performance implies different optimal configurations, and some platform-level decisions can improve energy efficiency without performance penalties.
  • In medium-load scenarios, TP8 can be more energy-efficient than TP2 when node-level access is constrained to full DGX-H100 nodes, highlighting regional differences in practical deployments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.