LatentPort benchmarks

KV cache and inference benchmarks.

See what LatentPort measured for KV cache compaction, long-context replay, and cross-model handoff, with the model, setup, and source for each result.

KV cache compaction.

Storage and retrieval were measured in separate evaluations on different models.

Qwen3.8-27B · 128K

8×

Less attention KV tensor storage

Reducing 128K positions to 16K cut BF16 attention KV tensor storage from 8 GiB to 1 GiB. This result measures the snapshot’s attention tensors. Total GPU memory depends on the rest of the runtime and model.

Read the storage validation

Qwen3.6-35B-A3B · BF16 · 128K

61/64

Correct answers on a paired retrieval panel

On a synthetic 128K retrieval panel, the compacted model answered 61 of 64 probes correctly, compared with 53 of 64 at full memory. The evaluation used one selector training seed and eight probes per history across eight histories.

Read the retrieval evaluation

Qwen3.5-4B · BF16 · NVIDIA L40S

Replaying 1 million input tokens on one GPU.

The model read one million input tokens in chunks, compacting its snapshot four times along the way. The final snapshot held 82,496 physical KV positions.

How the replay worked

The input was a repeated, tokenized text block. Qwen3.5-4B appended the tokens in bounded chunks. Whenever the physical cache filled, LPCompact retained one eighth of the positions and kept the logical clock advancing from the original history. The run finished on a single NVIDIA L40S in BF16.

What the run establishes

After releasing and restoring the final snapshot, the session accepted token 1,000,001. The run measured sequential ingestion and continuation from a bounded snapshot. The model attended to the retained positions, and retrieval accuracy at one million tokens remains unmeasured.

Try the replay loop

From a checkout with the BF16 backend installed, point the replay example at your own UTF-8 input. The logical position limit leaves room for continuation after the input.

Replay a history · Shell
python examples/replay.py Qwen/Qwen3.5-4B history.txt --backend bf16 --max-logical-positions 1048576 --output saved-state

4B to 27B research preview

Cross-model handoff latency.

2.19×

Paired speedup to the first emitted token

About 16K context · RTX 5090 · warm, resident models

Median warm time to first emitted token

The 2.19× is the geometric estimate across paired timings (95% confidence interval 2.15–2.23×). The chart shows the two warm medians. Timings include source prefill, state translation, state installation, and the first emitted token. The experiment used earlier research weights and measured first-token latency. Full-answer latency, decode throughput, and the current checkpoint require their own measurements.

Task success on a separate 64-task panel

ConfigurationSuccessful tasks
Native Qwen3.5-4B11/64
LatentPort 4B to 27B23/64
Native Qwen3.8-27B29/64