Reproducible benchmark of Qwen3-1.7B-Base prefix caching on RTX 3070 Laptop (8 GB, BF16, memory-bound regime). Hand-written reference inference loop + vLLM v1 comparison.
Status: π§ work-in-progress β Phase A baseline data coming.
Most LLM inference benchmarks run on A100 / H100. This repo measures what prefix caching actually buys you on consumer-grade hardware (3070 Laptop, 8 GB) in the memory-bound regime that Qwen3-1.7B occupies.
Three questions:
- What's the break-even prompt length where prefix cache amortization wins over prefill?
- How does prefix hit ratio shape the TTFT / TPOT trade-off curve?
- Where's the launch-overhead vs memory-bandwidth bound boundary on this hardware?
- Hardware: RTX 3070 Laptop (8 GB VRAM, GDDR6 ~256 GB/s)
- Model: Qwen3-1.7B-Base (BF16), via ModelScope
- Runtime: vLLM v0.x (version pinned in
requirements.txt) - Matrix:
concurrency β {1, 2, 4, 8} Γ prompt_len β {128, 512} Γ output_len β {64, 128} Γ prefix_hit_ratio β {0.0, 0.5, 1.0} - Metrics: TTFT (p50, p99), TPOT (p50, p99), inter-token latency, GPU mem util, SM util
benchmarks/ # benchmark drivers
results/ # data.csv, plots, trace samples
reference/ # hand-written inference loop, for understanding (NOT production)
docs/ # methodology, findings notes
(Filled in after Phase A baseline lands.)
MIT