# Sharing prompt KV pages across eight adapters

**All eight cells completed, but the long-context output checks failed.**
The 513-token fixtures produced identical outputs across stock, grouped and
deduplicated layouts. At 4,097 tokens, grouped output differed from stock for
five of eight adapters, and deduplicated output differed from grouped for all
eight. The complete screen therefore did not qualify a capacity or speed claim.

This is a mechanical experiment on one A100 SXM4 40 GB, using eight distinct
top-layer adapters of Qwen3-4B. Prompts were constructed from the first eight
existing calibration token windows. They are not natural long-context customer
documents, a heldout task-quality benchmark or eight unrelated base models.

| Fixed comparison | Exact completed outputs |
| --- | ---: |
| Stock versus grouped, 513-token prompt | 8 of 8 |
| Grouped versus deduplicated, 513-token prompt | 8 of 8 |
| Stock versus grouped, 4,097-token prompt | 3 of 8 |
| Grouped versus deduplicated, 4,097-token prompt | 0 of 8 |
| Grouped versus deduplicated, short cancellation fixture | 7 of 7 survivors |

Each completed output contains 256 generated tokens. The cancellation fixture
explicitly cancels adapter 0 after step 12; its ten-token partial output remains
in the event journal and is not counted as a completed request. The strict
generated-token equality requirement was not changed after the run.

## What the memory observation establishes

For the ordinary short fixture, the largest recorded live KV-page occupancy
fell from **864 MiB to 374 MiB** between grouped and deduplicated layouts.
The 490 MiB difference equals 1,960 remapped pages of 262,144 bytes each. All
eight outputs matched in that fixture.

Both layouts still reserved a **2 GiB physical KV pool**. These are samples
after engine steps and remaps, not continuous memory peaks or memory returned
to CUDA. Stock uses a slightly smaller rounded backing allocation. The
long-context failures prevent treating increased observed residency as a
qualified density result. No requests-per-GPU-hour, latency or customer gain
is claimed.

The mechanism compares full GPU page bytes before sharing, keeps the adapted
layer and generated tails private, and retains command acknowledgements,
table readbacks, stale-generation refusals and final reference counts. The
eight-cell packet includes all 20 remap transactions and 19,600 compared
pages. These mechanical observations do not override failed output checks.
Grouping alone already changed long-context outputs; this run does not isolate
arithmetic variation from an implementation error.

## Workload, clocks and controls

All arms use the same BF16 model, adapters, prompt construction, eager synchronous
execution, prefix caching, chunked prefill and configured 2 GiB pool budget.
The released stock runtime is bound to the retained image and source hashes.
This is a fixed mechanism screen, not a sweep of the strongest serving settings.
It does not compare customer workloads against tuned KV offload or HiCache.

The observation JSON retains full parent cell intervals as well as nested model
load, inference and shutdown times. Full parent time includes validation and
observed process/device cleanup. Nested phases must not be added again to that
interval. The exact host and task key were released after the run; final invoice
and per-arm allocation cost are not established by these timings.

## Original evidence and reconstruction

The new study manifest reconstructs **323 files, 38,686,519 bytes**. It preserves
all 128 original host files, including every output array and event journal;
113 exact scientific source blobs; selected original allocation, runtime and
cleanup evidence; guard receipts; task and adapter exports; and notices.
The source tar and prior input ZIPs are containers whose relevant contained
files and original identities remain recorded, not additional experiments.

A small new supplement supplies 194 files. Another 129 files are byte-identical
to the existing offline-study companion and are reused through explicit
origin/path/hash mappings. Reusing those bytes does not relabel the older
offline calibration or its rejection as part of this mechanical result.

The original prepared task is archived. The ready task is the **pre-run
deterministic derivation**, matched to actual staging digests; its executed
host file was not archived. The manifest preserves that distinction.
Checkpoint, safetensors and inherited ZIP files remain inert bytes throughout
reconstruction: no model, tokenizer, pickle or tensor loader runs.

Download the [manifest](kv-residency-evidence-manifest.json),
[bounded downloader](kv-residency-download.py) and
[scalar recomputation](kv-residency-recompute.py):

```sh
python3 kv-residency-download.py --output kv-originals
python3 kv-residency-recompute.py --originals kv-originals
```

The downloader verifies the two immutable inputs, bounds XZ memory and output,
rejects duplicate paths/keys, concatenated streams and trailing bytes, and
hashes all selected originals. Recomputation checks cumulative generated-token
prefixes, all five comparisons, remap acknowledgements and readbacks, sampled
memory accounting and original cell/cleanup clocks. It preserves the failed
overall gate rather than turning a completed run into a performance ranking.

Qwen3 and UltraChat notices accompany the reused inputs. The inherited SciFact
ZIP is not this study's prompt corpus; the existing
[SciFact/BEIR attribution and distinct license notice](inference-calibration-observations.md)
applies separately to that unchanged archive.

The six retained runtime Python source files keep their original headers.
`notices/pytorch-LICENSE` and `notices/pytorch-NOTICE` come from the observed
Torch Git revision `08187d9e0fba026dc8217405802ab5381dc88d90`;
`notices/transformers-LICENSE` comes from the official Transformers 5.20.2
tag at `18329f1065382e54db698e242cf98bd3f3e5a766`.
`notices/runtime-source-provenance.json` records their exact primary URLs,
byte hashes and scope. These notices accompany the actual installed source
bytes; they do not assert that each installed file equals an upstream Git blob.
