﻿# Adapter diversity inside a batch changes the usable serving portfolio

Test how per-batch adapter limits interact with request ordering, state retention and useful inference capacity for an unchanged LoRA portfolio.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-adapter-batch-diversity-capacity/
Language: en

## The portfolio fits but its batches differ

A service hosts many compatible adapters around a common base model. All artifacts fit the intended inventory, yet interleaved requests form less effective execution groups than clustered traffic. The question is how per-batch adapter diversity affects accepted service under fixed resources. This is narrower than counting adapter files or measuring a cold switch. Keep the same task portfolio while investigating the scheduling boundary, so a change in which tenants receive service cannot masquerade as an efficiency improvement.

## Read the batch limit in its own unit

The [vLLM LoRA configuration](https://docs.vllm.ai/en/latest/api/vllm/config/lora/) defines max_loras as a maximum number of adapters in one batch, while max_cpu_loras describes CPU retention. Its [serving guide](https://docs.vllm.ai/en/latest/features/lora/) provides the request-side adapter selection context. These quantities are not interchangeable. Preserve the installed version, compatible base and adapter revisions, ranks and effective settings. The documented configuration does not establish actual active adapter count for every step; use observed execution evidence where available and label any inference from configuration.

## Replay diversity without changing delivered tasks

Build a finite collection with fixed adapter identities, task checks and request lengths. Compare clustered and interleaved schedules with the same submitted portfolio, explicitly labeling their changed arrival order. Within each schedule compare eligible batch-diversity settings independently. Preserve deadlines and tenant priorities. Do not group every adapter's work indefinitely to improve batch formation while ignoring waiting requirements. Include a control where selected adapters are already available so loading overhead can be distinguished from the execution-group effect.

## Account for the complete scheduling path

Record actual batch membership where observable, adapter admissions, waiting, loads, evictions and accepted completions. Measure pool and host-state occupation through drain. Keep warmup and optional graph-specialization work visible rather than attributing every difference to the batch limit. A larger supported diversity setting can alter preparation resources as well as runtime grouping. Report neighboring base-only requests separately; an aggregate improvement for adapted work may conceal displacement of another required class sharing the same base worker.

## Test the minority-adapter failure

Include an infrequent adapter whose request arrives amid a popular cohort. Inspect waiting age and task acceptance rather than only average throughput. A policy that improves dominant adapter batches can make the rare required adapter effectively unusable. Also include an incompatible adapter fixture, preserving its expected rejection as distinct from capacity loss. The resource comparison must operate within valid compatibility, not treat fallback to the wrong base behavior as a successfully served inexpensive alternative.

## Deliver a batch-aware capacity boundary

Save portfolio identities, schedules, effective limits, observed groups and service outcomes. [LoRA serving capacity](/journal/lora-serving-capacity/) inventories compatibility and switching; [continuous batching](/journal/continuous-batching/) explains changing groups. This article adds an adapter-diversity experiment with retained arrival-order effects and minority waiting. It supports a measured boundary for the selected portfolio, without equating catalog size, CPU cache slots and simultaneous batch diversity or promising that a larger setting universally increases useful service.
