# vLLM Qwen2.5 7B on an NVIDIA A40

Measured: 20 November 2026

This directory preserves the second sweep from the first Compare AI Cost
inference-engine benchmark. Each JSON file is an unchanged export from
`vllm bench serve` at one maximum-concurrency setting.

## Configuration

- Provider: RunPod Secure Cloud, on-demand, CA-MTL-1
- Hardware: one NVIDIA A40 with 48 GB of GPU memory
- Cost basis: $0.60 per hour, the total RunPod showed at deploy ($0.59 GPU
  plus $0.007 container disk); see `evidence/runpod_a40_deploy_summary.png`
- Runtime template: RunPod PyTorch 2.8.0 with CUDA 13.2
- Serving engine: vLLM 0.34.0 in a `uv` virtual environment
- Model: `Qwen/Qwen2.5-7B-Instruct` in BF16
- Load generator: `vllm bench serve` on the same Pod
- Request shape: 512 input tokens and 256 output tokens
- Maximum concurrency: 1, 8, 32 and 64

## Files

- `a40_qwen7b_c1.json`: 50 requests at maximum concurrency 1
- `a40_qwen7b_c8.json`: 80 requests at maximum concurrency 8
- `a40_qwen7b_c32.json`: 320 requests at maximum concurrency 32
- `a40_qwen7b_c64.json`: 640 requests at maximum concurrency 64
- `summary.csv`: selected measured fields plus derived GPU-cost figures

All four raw files report zero failed requests. These files preserve the second
sweep.

## Repeatability (recorded corroboration)

The same configuration was swept twice. The first sweep's raw JSON exports
are not published because a later rerun, started after the server had
stopped, overwrote the concurrency 64 file. That rerun is excluded from all
results. Only the second sweep has raw JSON and checksums. The first sweep is
recorded corroboration, preserved as the `vllm bench serve` terminal
output captured at the time, cropped to the result block, in `evidence/`.

| Max concurrency | Sweep 1 output tok/s | Sweep 2 output tok/s |
| --------------: | -------------------: | -------------------: |
|               1 |                35.19 |                35.16 |
|               8 |               263.00 |               262.91 |
|              32 |               861.85 |               862.88 |
|              64 |             1,438.80 |             1,449.25 |

## Evidence screenshots

- `evidence/sweep1_a40_qwen7b_c1.png`, `_c8.png`, `_c32.png`, `_c64.png`:
  first-sweep result blocks. Cropped to remove the shell prompt, host name
  and the full argument dump; no figures were edited.
- `evidence/runpod_a40_deploy_summary.png`: RunPod's deploy summary for the
  Pod, showing $0.59 per hour GPU cost plus $0.007 per hour container disk,
  $0.60 per hour in total. This is the source of the rounded cost basis.
- `evidence/runpod_billing_2026-11-20.json`: RunPod's pod billing record for
  the benchmark Pod in hourly buckets, retrieved from the RunPod v2 billing
  API. GPU $0.6975, disk $0.0081, total $0.7056 for about 1.2 hours,
  consistent with the $0.59 and $0.007 hourly rates. The pod ID is replaced
  with a label; no other field was changed.

## Derived cost formula

The summary uses a rounded GPU cost of $0.60 per hour.

```text
GPU cost per 1M output tokens =
  hourly GPU cost * 1,000,000 / (output tokens per second * 3,600)
```

```text
GPU cost per 1,000 requests =
  hourly GPU cost * (1,000 * 256 output tokens)
  / (output tokens per second * 3,600)
```

## Evidence boundary

This benchmark covers one GPU, model, engine and synthetic request profile.
The load generator ran on the same Pod as the server and shared its CPU.
The derived figures attribute the full hourly compute cost to output tokens.
Complete production cost also depends on storage, transfer, startup time, idle
capacity, retries, observability and engineering work.
