Inference systems · Research feature

Developer Practices in LLM Inference Configuration Revealed

It identifies 345,117 explicit configuration instances across these backends, revealing that while 98.8% of available options appear at least once, 78.9% are used in at most 10% of repositories.

Adapted from research by Nada Zine, Matias Martinez, Romain Rouvoy and colleagues.

arXiv preprint revision · 2026-10-20 · Attribution & reuse
In this article
Editorial illustration of optical fibers.

Editor’s introduction

It identifies 345,117 explicit configuration instances across these backends, revealing that while 98.8% of available options appear at least once, 78.9% are used in at most 10% of repositories. Configuration complexity is low, with a median of two options for Transformers and four for vLLM and OpenAI, though many option combinations appear in only a single repository. The research also finds significant variation in option values and usage patterns across different application contexts, with differences in option adoption reaching 30.7 percentage points. These findings reflect what developers actually configure in practice, not theoretical performance benefits.

Introduction

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.

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.

Configurable LLM Inference Backends

Recent LLM inference backends expose configuration choices spanning model loading, memory management, batching, parallelism, caching, quantization, and generation. These interfaces build on optimization techniques such as continuous batching, PagedAttention, FlashAttention, prefix caching, chunked prefill, prefill–decode separation, and quantization. Depending on the backend, these choices appear as API parameters, command-line arguments, configuration files, or environment variables. Consequently, inference optimization techniques create a large and evolving configuration space.

Experimental Studies of LLM Inference Configurations Prior work has extensively evaluated how inference choices affect performance, efficiency, and output quality. Infrastructure-level studies have examined GPU characteristics, power-management settings, model parallelism, batching, concurrency, placement, and cluster architecture. Model and workload-level studies have investigated model size, quantization, serving frameworks, prompt and generation lengths, request distributions, and task characteristics. Other studies have focused on decoding and generation parameters such as temperature, top-k, top-p, beam search, and speculative decoding. Overall, these studies show that inference behavior depends on interacting choices across models, workloads, hardware, and optimization objectives. However, they primarily evaluate configurations selected a priori by researchers or optimization systems. They therefore address which configuration choices affect inference outcomes, whereas we investigate which parts of the available configuration space developers explicitly configure in real-world application software.

Mining Configuration Practices in Software and Machine Learning Researchers have used repository mining and static analysis to study configuration in software systems from several perspectives. Nadi et al. extracted constraints among configuration options, Sayagh et al. studied how configuration options and frameworks are engineered and maintained, and Bessghaier et al. showed that deployment and runtime configurations can span heterogeneous software artifacts. Related work has mined machine-learning repositories to characterize development practices and architectures.

Study design

We designed our study in accordance with established empirical software engineering practices and prior work on mining software repositories. In particular, we follow a structured study design based on explicit research questions, predefined repository-selection criteria, data extraction and validation procedures, and a reproducible analysis pipeline. To support independent verification and replicability, we provide a complete replication package containing all paper-related data, including the source code of our mining and analysis pipeline, the collected repository metadata, the extracted inference configurations, and the scripts used to produce our results.

Goal & Research Questions

This study analyzes LLM inference configurations in real-world software projects to understand how developers configure LLM inference in practice and to provide insights for software developers, inference backend maintainers, and software engineering researchers studying open-source software. More broadly, our study is guided by the following research question: How is the large configuration space exposed by LLM inference backends actually used by software developers? We investigate this question along three complementary dimensions, reflected in the following research questions.

Selected Inference Backends

For our study, we focus on three widely used LLM inference backends: Hugging Face Transformers library, vLLM, and OpenAI Python SDK. We select these backends because they capture complementary ways of performing LLM inference, respectively covering local model inference, high-throughput model serving, and API-based inference. Hugging Face Transformers is a widely adopted open-source library that provides pretrained and fine-tuned models for a broad range of machine learning tasks and supports both training and inference. It can automatically download model weights and configurations and load them for local inference. vLLM is an open-source LLM inference and serving engine designed for high-throughput and memory-efficient model execution. It can load models from the Hugging Face ecosystem and provides optimized capabilities for offline inference and online serving, making it a state-of-the-art solution for LLM inference and serving. Finally, we include the OpenAI Python SDK to capture API-based inference practices that are common in application-level LLM software. Beyond accessing OpenAI-hosted models, the SDK can be configured to interact with other cloud-based or locally deployed providers that expose an OpenAI-compatible API, including serving engines such as vLLM.

Selected Interfaces and Configuration Options

For Hugging Face Transformers, we extracted parameters associated with the main inference-related classes and functions, including GenerationConfig, pipeline, AutoModelForCausalLM, AutoTokenizer, and AutoModel. For vLLM, we focused on the primary inference and serving interfaces, namely SamplingParams, LLM, EngineArgs, and AsyncEngineArgs. For the OpenAI API, we extracted parameters from the three text-generation endpoints exposed by the OpenAI Python SDK: responses.create, chat.completions.create, and completions.create. We considered the union of parameters accepted by these endpoints to cover both the current recommended endpoint, i.e., Responses API, and the older Chat Completions and Completions interfaces, which may still be used in open-source repositories.

GitHub API Search Strategy

We collected repositories from GitHub using the GitHub Search API. We ran the final mining run in mid-September 2026, providing a snapshot of the GitHub ecosystem at that time. Based on the inference backends defined above, we designed backend-specific search queries for Hugging Face Transformers, vLLM, and OpenAI to identify candidate repositories. For Hugging Face Transformers, the queries include terms such as transformers, huggingface transformers, text generation, llm inference, and causal lm. For vLLM, they include terms related to inference serving, such as vllm, llm serving, openai-compatible, vllm server, and inference server. OpenAI includes both general terms, such as openai and openai api, and API-specific expressions, such as chat.completions and responses.create, from openai import OpenAI, client.chat.completions.create, and openai.ChatCompletion.create.

Source File Selection & Parsing

For each candidate repository, we retrieve its contents and inspect its Python source files. We retain files with a Python extension (.py) and exclude paths unlikely to contain application-level inference code, such as tests and documentation. Each retained source file is parsed into an Abstract Syntax Trees (AST) using Python’s standard ast library. Files that cannot be parsed are skipped and recorded as analysis errors. The resulting ASTs constitute the source representation used by the subsequent static analysis.

Option Extraction

An option is considered explicitly configured only when its name is explicitly specified in the repository together with a value expression and can be linked to a targeted inference interface. Backend defaults and unnamed positional arguments are therefore not counted. However, when a developer explicitly specifies a value equal to the backend default, the option is still considered explicitly configured. The extraction includes, for example, direct keyword arguments such as temperature=0.7, configuration fields such as config.temperature = 0.7, and dictionary entries such as {“temperature”: 0.7}. Options may also originate from command-line arguments or external configuration files when they can be statically linked to the targeted inference interface.

Value Resolution

For each extracted option, the analyzer attempts to resolve its value using several static-resolution strategies. These include following values propagated through variables, dictionaries, configuration objects, command-line parsers, and external configuration files. When a command-line argument is used without being overridden in the repository, its statically defined default value is retained. When an option can take multiple statically observable values, for example across conditional branches, we retain all observed alternatives. For each extracted option, the analyzer records the corresponding inference backend, repository, file location, targeted inference interface, option name, resolved value when available, and the static-resolution strategy used.

Iterative Refinement

The extraction process includes an iterative refinement loop. After an initial analysis pass, we inspect extraction errors, unresolved values, and recurring missed patterns to identify the analyzer’s limitations. When a recurring pattern can be handled statically, we update the analyzer and re-analyze only the previously unresolved cases. This lets us iteratively improve value resolution without repeatedly processing the full dataset. Option values that still cannot be resolved after the run are kept as unresolved. After the final refinement, we re-ran the full process from the beginning to ensure no regressions and to produce the final dataset.

RQ1: Inference-option usage

We analyze each inference backend separately. For each option, we report its number of occurrences and repository-level adoption, and compare adoption across the categories defined in our study. For configured values, we consider only resolved observations and normalize equivalent representations, e.g., 0 and 0.0. To limit the influence of repeated uses within a repository, each distinct value of an option is counted at most once per repository. We characterize value distributions using the most frequent values, the number of distinct values, and normalized Shannon entropy.

RQ3: Usage contexts

We use GitHub repository topics as indicators of application context. Since topics are not standardized, we normalize them and manually group related labels into broader contexts derived from the most frequent topics in our dataset, while excluding labels unrelated to application domain or purpose. The second author reviewed the resulting contexts and topic mappings, and we discussed ambiguous cases until we agreed. We assign a repository to a context when at least one of its normalized topics maps to that context; repositories may belong to multiple contexts.

RQ2: Inference Configuration Structure

Overall, all three backends exhibit high signature diversity, with more than half of their signatures appearing in only one repository. OpenAI is more concentrated around its most frequent signatures, while Transformers and vLLM show similar concentration levels.

Overall, the most frequent signatures differ across inference backends: Transformers frequently combine model-loading options, vLLM includes both small generation signatures and larger combinations, while OpenAI mainly combines request-level and generation options. These differences partly reflect the distinct configuration interfaces and abstraction levels exposed by each backend.

RQ3: Application contexts

For OpenAI, differences are observed across several contexts. Agent-oriented repositories more frequently configure tools and tool_choice, which control tool availability and selection during inference. Conversational assistants and serving and deployment repositories more frequently configure stream; serving repositories also more frequently configure stream_options. These options control streamed response delivery. Evaluation and benchmarking repositories more frequently configure generation controls such as max_tokens and temperature, while code and software engineering repositories show higher adoption of reasoning_effort. In contrast, multimodal and vision repositories configure streaming and tool-related options less frequently, while text and document processing repositories also show lower adoption of tools.

Answer to RQ3: Configuration practices differ across application contexts, but the differences are concentrated in a subset of options. Some of these differences involve options whose function directly matches the context, such as feature_extractor in speech and audio repositories, limit_mm_per_prompt in multimodal repositories, tools and tool_choice in agent-oriented repositories, and streaming options in conversational and serving repositories. Other contexts differ instead in broader generation, model-loading, or execution options.

The Configuration Space Used in Practice

Our results characterize the part of the configuration space that developers explicitly manipulate, rather than identifying which options matter most for inference. How often an option is configured, or how often a particular value is selected, should therefore not be interpreted as a measure of its importance or impact on inference behavior. Frequently configured options may simply be more visible because they are more commonly documented, discussed, or studied. Conversely, rarely configured options may still matter because developers can rely on defaults, may be unaware of the option or its effect, or may need it only in specific situations.

Frequent Option Signatures The recurring option signatures observed in RQ2 further show that configuration choices are often organized around groups of related options. Frequent signatures combine model-loading options in Transformers, generation and serving-related options in vLLM, and request-level and generation options in OpenAI. Such recurring combinations may reflect functional relationships between options, but they may also result from shared examples, documentation, reused code, or common configuration practices. Their frequency should therefore not be interpreted as evidence that these combinations are optimal or deliberately selected as a unit. Rather, they reveal recurring structures in how developers configure inference in practice.

Application Context Influence Application context measurably but selectively influences the inference options developers configure. Only a subset of options shows substantial and statistically significant differences across contexts. Some of these differences directly match the corresponding application needs, such as tool-related options in agent applications, streaming options in conversational and serving repositories, or multimodal-specific options in multimodal applications. For many other options, however, configuration practices remain relatively similar across contexts. One explanation is that many inference decisions are generic enough to be reused across application contexts. Another is that configuration choices may be driven more strongly by factors such as workload scale, hardware constraints, model characteristics, or deployment environment than by application context itself. The limited differences observed across contexts may also reflect limited context-specific adaptation: developers may reuse similar options even when different application contexts could benefit from different choices, particularly because it remains unclear whether the same options and values have comparable effects on metrics such as latency, energy consumption, or output quality across contexts.

Construct Validity

Internal Validity Implementation errors may affect option extraction, resolution, or classification, particularly when handling aliases, wrappers, or **kwargs. Our analysis also focuses primarily on Python code and selected configuration formats; configurations defined in notebooks, shell scripts, deployment manifests, Docker files, YAML files, or environment variables may therefore be missed or only partially captured.

External Validity We consider only public GitHub repositories and restrict our dataset to Python projects with recent activity and at least 50 stars. These repositories may not represent smaller, older, non-Python, private, or industrial projects. Repository discovery also depends on GitHub search queries, metadata, and filtering criteria, which may miss projects whose backend usage is not easily searchable. Finally, we study only Hugging Face Transformers, vLLM, and OpenAI; other inference backends may exhibit different configuration practices.

Conclusion Validity Our context analysis relies on GitHub topics, which may be incomplete, outdated, or overly general. Context-level findings should therefore be interpreted as trends rather than exhaustive classifications. Consider differences in repository counts across backends when interpreting cross-backend comparisons.

Conclusion & Future Work

LLM inference configuration is becoming an increasingly important aspect of deploying LLM-based software, with growing research interest in understanding how configuration choices affect performance, energy consumption, and accuracy. In this paper, we complement these studies with a large-scale empirical analysis of the inference options developers explicitly configure in open-source LLM inference software.

Our results reveal a clear gap between the large configuration spaces exposed by inference backends and the much smaller set of options that developers use frequently. Across the studied repositories, nearly all documented options in scope appear at least once, yet approximately 80% are explicitly configured in at most 10% of repositories using the corresponding backend. Individual configurations are small relative to the available configuration spaces, while the combinations of options used across projects remain highly diverse and reflect the different abstractions each backend exposes. Our exploratory context analysis further identifies selected associations between application contexts and option adoption. These findings characterize configuration practice, not configuration effectiveness: frequently observed choices are not necessarily optimal, and rarely explicit options may remain important through backend defaults. Future work can connect these observed practices with controlled measurements of latency, throughput, energy consumption, monetary cost, and output quality to determine whether the options developers frequently manipulate are also the most consequential and whether rarely configured options represent overlooked optimization opportunities.