# Same-card A40 run, Qwen2.5 7B, 25 November 2026

Measured: 25 November 2026

This directory preserves a run on one NVIDIA A40 that measured the prefix
cache's effect on the A40 directly, for all three engines in the Compare AI
Cost A40 field tests (vLLM, SGLang and TensorRT-LLM). It supports the
[RTX 6000 Ada vs A40 comparison](https://www.compareaicost.com/research/rtx-6000-ada-vs-a40)
and the cold-prompt notes on the three A40 reports.

## Configuration

- Provider: RunPod Secure Cloud, on-demand, EU-SE-1
- Hardware: one NVIDIA A40, driver 595.112.07, ECC off, 49,140 MiB visible
  (`gpu.txt`). The A40 in the TensorRT-LLM field test showed 46,068 MiB,
  which is what an A40 reports with ECC on.
- Cost basis: $0.60 per hour, rounded ($0.59 GPU plus disk)
- Image: `nvcr.io/nvidia/tensorrt-llm/release:1.2.1`; vLLM 0.34.0 and SGLang
  0.5.23 in their own virtual environments; TensorRT-LLM 1.2.1 from the image
- Model: `Qwen/Qwen2.5-7B-Instruct` in BF16
- Load generator: `vllm bench serve` 0.34.0, random dataset, 512 input and
  256 output tokens, concurrency 1, 8, 32 and 64

## Run order, per engine

1. Cold run: start the server, send one first-request probe, then one sweep
   with a new seed at each level (1000 + concurrency), so every prompt is new.
2. Stop the server, then start it again.
3. Warm method: send one first-request probe, then two sweeps with seed 0 at
   every level, the method used in the published A40 field tests.

## Results at concurrency 1 and 64

| Engine | Concurrency | Warm sweep 1 tok/s | Warm sweep 2 tok/s | Cold tok/s |
|---|---|---|---|---|
| vLLM | 1 | 41.85 | 42.14 | 41.87 |
| vLLM | 64 | 1,673.05 | 2,031.65 | 1,411.30 |
| SGLang | 1 | 42.44 | 42.45 | 42.41 |
| SGLang | 64 | 1,675.95 | 1,667.50 | 1,394.47 |
| TensorRT-LLM | 1 | 41.41 | 41.71 | 41.43 |
| TensorRT-LLM | 64 | 1,732.91 | 1,732.39 | 1,436.30 |

At concurrency 1 this card was about 20% faster than the A40s in the
published field tests. TensorRT-LLM's first request after the first start
waited 74.9 seconds; after the restart, 123 milliseconds.

## Files

- `<engine>/sweep1/`, `<engine>/sweep2/`, `<engine>/cold/`: benchmark
  exports trimmed to the shape of the earlier A40 exports (every summary field
  plus per-request `latencies` and `queue_times`)
- `<engine>/probe_before_cold_*.json` and `probe_before_warm_*.json`: the two
  first-request probes
- `<engine>/environment/`: server logs from both starts, `pip freeze`, and the
  TensorRT-LLM engine version
- `summary.csv`: every run, with derived cost at $0.60 an hour;
  `raw_file_sha256` is the hash of the full, unchanged export
- `a40_qwen7b_2026-11-25.tar.gz`: the complete, unchanged output copied off the
  Pod, including per-request text and token timings. SHA-256
  `9036303d534551a41d8e9885648c336f6168143d81a7d69d54b092c0b666a2dc`, matching
  the hash recorded on the Pod. Inside, `a40-cold/SHA256SUMS` and
  `a40-warm/SHA256SUMS` list each export's hash.

Every run reports zero failed requests and the full 256 output tokens per
request. The random prompt generator produces arbitrary text, which can contain
fragments that look like words, URLs or keys; they are generated tokens, not
data.

## Derived cost

Cost per 1M output tokens = 0.60 x 1,000,000 / (output tokens per second x
3,600). It excludes idle hours, transfer, retries and engineering time.
