Skip to content

Add torch_dma_kv_cache_benchmark.py under examples/microbenchmarks/ providing PyTorch parity with jax_dma_kv_cache_benchmark.py: - #871

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_976038290
Sep 25, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_976038290

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Add torch_dma_kv_cache_benchmark.py under examples/microbenchmarks/ providing PyTorch parity with jax_dma_kv_cache_benchmark.py:

  • Single-host raw PCIe DMA microbenchmark testing KVCacheManager D2H and H2D throughput and latency across variable layers and dtypes (bf16, fp32, int32, fp8).
  • Implements comparative baselines against native PyTorch pinned host memory (pin_memory=True, non_blocking=True) and standard unpinned host memory.

@google-cla

google-cla Bot commented Sep 6, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…/` providing PyTorch parity with `jax_dma_kv_cache_benchmark.py`:

- Single-host raw PCIe DMA microbenchmark testing KVCacheManager D2H and H2D throughput and latency across variable layers and dtypes (bf16, fp32, int32, fp8).
- Implements comparative baselines against native PyTorch pinned host memory (`pin_memory=True`, `non_blocking=True`) and standard unpinned host memory.

PiperOrigin-RevId: 988471685
@copybara-service
copybara-service Bot merged commit b628116 into main Sep 25, 2026
1 of 2 checks passed
@copybara-service
copybara-service Bot deleted the test_976038290 branch September 25, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants