Manuscript Offprint

arXiv:2610.27945

How Developers Configure LLM Inference: A Large-Scale Study of Real-World Practices

Nada Zine, Matias Martinez, Romain Rouvoy, Clément Quinton

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

NADA ZINE, Univ. Lille, CNRS, Inria, UMR 9189 CRISTAL, France

MATIAS MARTINEZ, Universitat Politècnica de Catalunya, Spain

ROMAIN ROUVOY, Univ. Lille, CNRS, Inria, UMR 9189 CRISTAL, France

CLÉMENT QUINTON, Univ. Lille, CNRS, Inria, UMR 9189 CRISTAL and IUF, France

Large Language Models (LLMs) are increasingly integrated into software systems, making deployment and inference configuration a recurring software engineering task. Inference backends expose many options that affect model loading, generation, serving, and request processing. Yet little is known about which of these options developers explicitly configure in practice. In this paper, we present a large-scale empirical study of LLM inference configuration practices in open-source software using Hugging Face Transformers, virtual Large Language Model (vLLM), and the OpenAI API. We analyze 5,398 GitHub repositories using at least one of these backends and identify 345,117 explicitly configured option occurrences. Our results show that developers use only a small part of the available configuration space regularly. Although 98.8% of the documented backend-specific options appear at least once, 78.9% are configured in at most 10% of repositories using the corresponding backend. Configurations are also small, with a median of 2 options for Transformers and 4 for vLLM and OpenAI, but the combinations of options vary widely: 56.8–61.6% of multi-option signatures appear in only one repository. We also observe recurring option values as well as substantial variation in how values are chosen. Finally, configuration practices differ across application contexts, with option-adoption differences reaching 30.7 percentage points. These findings characterize the configuration surface developers make explicit rather than the importance or optimality of individual options. They provide empirical evidence for prioritizing future studies of inference configuration and for improving backend documentation and configuration support.

Additional Key Words and Phrases: Large Language Model, Inference, Variability, Configuration, Mining

1 Introduction

Large Language Models (LLMs) such as GPT-series [2], Qwen [49], and Mistral [20] are increasingly integrated into modern software systems across applications such as coding assistants, content generation, search, and healthcare [8, 29]. Integrating these models requires running LLM inference, during which a trained model processes an input prompt or context to generate an output, typically token by token. As inference becomes a recurring software engineering task, developers must make configuration choices that can directly affect latency, throughput, energy consumption, monetary cost, and output quality [19, 39]. These choices are particularly important because inference accounts for over 90% of overall LLM compute cycles [35]. Developers must therefore carefully configure inference to balance application efficiency and behavior.

These choices are complicated by the large configuration spaces of modern inference backends. For example, Hugging Face Transformers [48], virtual Large Language Model (vLLM) [23], Ollama [27], llama.cpp [1], and the OpenAI API 1^{1} expose dozens to hundreds of options spanning model loading, decoding, resource management, serving, and request processing [34]. Developers must decide which options to configure, which defaults to retain, which values to select, and which options to combine, while the available choices also differ across backends.

This large configuration space is difficult to study exhaustively. Evaluating all options, values, and their interactions is infeasible because of the combinatorial number of possible configurations and the cost of running such experiments. Existing empirical studies therefore focus on selected subsets of configuration options and values [55].

1^{1}https://developers.openai.com/api/reference/python

Nada Zine, Matias Martinez, Romain Rouvoy, and Clément Quinton

However, these studies tell us little about which parts of the configuration space developers actually use in real software. Options that strongly affect performance in controlled experiments may rarely be configured in practice, while commonly configured options or combinations may receive comparatively little attention. Despite the growing body of work on LLM inference, we therefore lack a systematic understanding of which options developers configure, which values they select, how they combine options, and how these practices vary across backends and application contexts. Without this evidence, it is difficult to assess how well inference research reflects developer practice and which parts of the configuration space deserve further investigation or better tooling support.

In this paper, we address this gap by studying how LLM inference is configured in open-source software. We study three widely used inference backends: Hugging Face Transformers, vLLM, and the OpenAI API. We analyze 5,398 GitHub repositories using at least one of these backends and identify 345,117 explicitly configured option occurrences. We study what developers configure, how they compose configurations, and how configuration practices vary across application contexts.

Our results show a clear difference between the options available to developers and those they commonly configure. While 98.8% of the documented backend-specific options appear at least once in our dataset, 78.9% are configured in at most 10% of repositories using the corresponding backend. Developers generally create small configurations, with a median of 2 options for Transformers and 4 for vLLM and OpenAI, but the combinations they use vary widely: 56.8–61.6% of multi-option signatures occur in only one repository. We also observe recurring option values alongside substantial variation in value choices, as well as differences across application contexts of up to 30.7 percentage points in option adoption. Together, these results provide a first large-scale view of real-world LLM inference configuration practices and identify concrete opportunities for future studies, tooling, and backend support.

The main contributions of this paper are:

(i) Empirical characterization. We provide the first large-scale characterization of LLM inference configuration practices across 5,398 open-source Github repositories, covering option adoption, value distributions, recurring combinations, and application contexts;

(ii) Configuration patterns. We show that most available options are rarely configured, while individual configurations remain small but their option combinations are highly diverse. We further identify backend- and context-specific configuration patterns;

(iii) Mining pipeline and dataset. We develop a static-analysis pipeline for extracting explicitly configured inference options, values, and combinations from thousands of projects, and release the resulting dataset and replication package.

Our study targets software developers, inference backend maintainers, and researchers seeking to understand real-world configuration practices, improve configuration support, and prioritize future studies of LLM inference.

References (21)