Batch size for whole Agent Probe traces
I used a controlled local retrieval-agent workload on an NVIDIA H100 80GB GPU, with Llama-3.1-8B-Instruct-AWQ-INT4 served through vLLM 0.23.0.
What I ran
I used a probe-driver script to run one independent retrieval agent in each batch slot. Every trace was asked: “Why does the Cheshire Cat say that everyone in Wonderland is mad, and what happens to the Cat at the end of its conversation with Alice?”
The system prompt asked the model to state a short search query, then answer from supplied local-book text. Each trace had two model turns and two tool turns. The first model input was 99 tokens on average, after retrieval, the second was 484 tokens. Generation was capped at 128 new tokens per turn, temperature was 0, and the model context limit was 4,096 tokens.Batch size N means N independent traces running together. Once a trace finishes, it would leave later model batches, in this controlled two-turn workload, all traces follow the same two-turn structure.Agent Probe here is a Python driver script. For a batch of N, the script creates N independent retrieval-agent requests. On model turn 1, it submits the N prompts to vLLM together. It then runs the local search and passage-reading tools for each trace, appends those tool results to that trace’s conversation, and submits the second-turn prompts together. The reported batch time starts before the first model requests and ends after every trace has completed its second model turn.
Trace flow
Results so far
Across this controlled workload, increasing the number of concurrent traces increases GPU power draw and eventually increases end-to-end completion time. Mean GPU power rose from 283 W at N=1 to 512 W at N=32, while mean batch completion rose from 0.771 s to 1.358 s. The N=2 batch was slightly faster than N=1 in this four-run sample, but the upward trend is clear from N=4 onward.
The higher-power phase is expected after retrieval. The first model turn uses a 99-token input and generates a short 32-token search request, while the second processes 484 input tokens and generates up to 128 tokens. The CPU-based tools take only 7–10 ms, but the retrieved passages make the following model call more GPU-intensive.
The model keeps key/value (KV) cache entries for tokens already processed in each active trace. More concurrent traces and a longer second-turn context both increase the amount of active KV cache and attention work. However, this experiment changes N while keeping the retrieval context fixed, so it does not by itself prove how much of the power increase comes from KV cache versus more concurrent decode work. Local tool execution took about 7–10 ms per trace and does not itself use the GPU, the higher GPU power is observed during the model turns.
Although local tool calls take only 7–10 ms and do not directly use the GPU, the retrieved text increases the next model turn’s context, requiring additional prefill, KV-cache storage, and attention work. vLLM can reuse earlier cached context, but the newly retrieved tokens still add GPU power and energy use.
Future work
Next, I will repeat this protocol with different Agent Probe designs and different tools. I will compare search, document retrieval, database lookup, and slower remote-style tool backends, record per-tool latency, model input growth, GPU power, and trace completion time, and test whether each tool type produces a repeatable scaling pattern as batch size increases.
I will also test whether the time between model turns changes the cost of resuming a trace. Holding the retrieved text fixed, I will vary the delay between the tool return and turn 2, while recording KV-cache residency, re-prefill tokens, completion time, GPU power, and energy. If the KV cache remains resident, waiting should not add model work. However, under memory pressure, a longer delay may cause cache eviction, forcing the model to rebuild context and increasing latency and GPU use.