Inference economics of language models

Ege Erdil
6/5/2025
cs.LGcs.DC

No confident code implementation found for this paper.

Abstract

We develop a theoretical model that addresses the economic trade-off between cost per token versus serial token generation speed when deploying LLMs for inference at scale. Our model takes into account arithmetic, memory bandwidth, network bandwidth and latency constraints; and optimizes over different parallelism setups and batch sizes to find the ones that optimize serial inference speed at a given cost per token. We use the model to compute Pareto frontiers of serial speed versus cost per token for popular language models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{erdil2025inference,
  title  = {Inference economics of language models},
  author = {Ege Erdil},
  year   = {2025},
  eprint = {2506.04645},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.04645v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.04645.svg)](https://codeofpaper.com/paper/2506.04645)

Discussion