Skip to main content

DAG-KV: Universal Position-Decoupled Graph KV Cache with Query-Side Adjoint RoPE & LSE-Bounded Sparse Bridge Repair

PyPI version Open In Colab Hardware: NVIDIA | AMD ROCm | Apple Silicon MPS | CPU Execution: Triton JIT + PyTorch Native Fallback Paper: PDF CI/CD: Multi-Arch Matrix Docker: Multi-Arch amd64/arm64 License: Apache 2.0

DAG-KV vs Standard Prefix Caching Demo

Quickstart  ·  Examples Cookbook  ·  Colab T4 Demo  ·  arXiv Preprint (10-Page PDF)  ·  Research Paper (Summary PDF)  ·  Changelog  ·  Roadmap


Executive Summary

Existing prefix-caching architectures (e.g., vLLM Automatic Prefix Caching, SGLang RadixAttention) suffer a catastrophic 0% cache hit rate when context chunks are dynamically permuted, reordered, or multi-hop composed in Retrieval-Augmented Generation (RAG) and multi-engineer codebase assistant workflows (e.g., [Sys, Doc_A, Doc_B] vs [Sys, Doc_B, Doc_A]). This failure stems from two fundamental blockers:

  1. RoPE Position Coupling: Rotary Position Embeddings bake absolute sequence indices directly into cached Key vectors. Mutating cached keys in HBM to shift position offsets destroys Copy-on-Write (CoW) sharing across concurrent requests.
  2. Missing Cross-Chunk Causal Attention: Chunks prefilled in isolation miss attention interactions with predecessor chunks.

DAG-KV turns graph-structured context caching into a universal, production-ready library across all hardware architectures (NVIDIA, AMD ROCm, Apple Silicon MPS, and Host CPU):

  • Query-Side Adjoint RoPE (GQA + Split-KV FlashDecoding, v0.4.0): Exploits the orthogonal adjoint identity in $SO(2)$ to counter-rotate queries in SRAM registers ($q_{\text{adj}} = \mathcal{R}(-\Delta) \tilde{q}$), grouping all $G = H_q / H_{kv}$ GQA heads per CTA with Split-KV parallel reduction across long contexts (up to 4.16× faster 8K B=1 FP16 decode and 3.55× faster K8V4 decode), leaving physical KV blocks 100% read-only and zero-copy.
  • Tiled Batched Adjoint Prefill & Speculative Verification (v0.4.0): Single-pass BLOCK_M=16 causal prefill over paged canonical pools and multi-token suffixes (append_and_prefill_tokens, 27×–35× faster 128-token suffix prefill) plus speculative draft verification (verify_draft_tokens) with exact CoW tail rollback.
  • Exact Layer-1 $Q_1$ RoPE-Aware LSE & Submodular Pyramid Bridge Repair (v0.4.0): Captures true rotated Layer-1 queries $Q_1$ during isolated prefill and evaluates RoPE-aligned cross-chunk perturbation scalars $\alpha_i = \sigma(\ell_{i \to \text{prior}} - \ell_i^{\text{local}})$ with 1D NMS submodular diversity, adaptive thresholding, and mid-depth pyramid pruning ($4.0% \to 1.5%$) into request-private Copy-on-Write (CoW) Shadow Blocks.
  • Fused Quantize-and-Scatter Kernels (FP8 / INT8 / K8V4 / INT4, v0.4.0): Single-launch Triton quantization, nibble packing, and scatter write (triton_fused_kv_quant_write) with 64-bit physical indexing (>2 GiB pools) and in-SRAM dequantization. K8V4 achieves 2.53× VRAM compression, 3.0× batch concurrency, and FP16-matching multi-hop KL.
  • Zero-Duplication Pool-Backed Cache & 3-Tier NVMe Persistence (v0.4.0): Releases duplicate chunk tensors immediately upon registration, syncs engine metadata via weakref LRU eviction callbacks, spills evicted quantized blocks to model-namespaced NVMe storage (DiskKVCache with LRU disk quotas), and stages reloads via Tier-2 PinnedCPUPool.
  • Multi-GPU Pipeline Sharding & Modern Model Adapters (v0.4.0): First-class ShardedDAGKVEngine with dual-GPU Ping-Pong micro-batch overlap, plus architecture adapters for Qwen-2/2.5/3 (QK-Norm), Llama-2/3, Mistral/Mixtral (SWA), Gemma-2 (logit softcapping + alternating SWA), and DeepSeek-V2/V3.
  • Multi-Language AST Delta & Document Chunkers (v0.4.0–v0.6.0): Core ASTCodeChunker & ASTDeltaCache (Python AST + live-verified tree-sitter-language-pack for TypeScript/JS, Rust, Go, C/C++, Java) plus MarkdownChunker & SlidingDocumentChunker for live IDE re-indexing (92.7% token reuse on pytorch_fallbacks.py, 78.8% reuse / 4.57× faster on block_manager.py).
  • Fused Triton DeepSeek MLA & Static CUDA Graph Decode (v0.5.0–v0.6.0): Decoupled Adjoint RoPE Triton kernel (triton_mla_adjoint_attn.py) rotating only $d_{\text{rope}}=64$ while keeping absorbed compressed latents $c_{KV}$ ($d_c=512$) invariant (152.5× faster than PyTorch at 4K: 1.152 ms, max_diff 1e-6), paired with full-model static CUDA Graph decode (2.17× faster K8V4 B=1 at 63.6 tok/s, 0.000000 diff).
  • Zero-Fork vLLM v0 & v1 Plugin, Tensor Parallelism & 100GbE RoCE RDMA Fabric (v0.6.0–v0.7.0): Auto-discovered vllm.general_plugins entry point (DAGKVvLLMConnector subclassing real KVConnectorBase_V1 + vllm.v1.attention.backend.AttentionBackend, live-verified on H200 vLLM 0.34.0 with 0.0 KV roundtrip diff), Megatron TP=2 (TensorParallelDAGKVEngine), Apple Silicon MLX & sm_89+ Native FP8 Tensor Cores, and a 4-tier Cluster KV Fabric featuring NCCLRDMAKVStore (10.44 GB/s / 83.50 Gbps over live 100GbE RoCE bnxt_re0 from Hopper H200 → Blackwell RTX PRO 6000, 107× faster than HTTP), BinaryStreamKVStore, SharedHTTPKVStore, Redis, S3, and OpenTelemetry tracing.
  • v0.7.0 Flagship Baselines, Real DeepSeek-V2-Lite MLA & 32B Scaling: In a live 3-way H200 head-to-head on Qwen2.5-14B, DAG-KV beats vLLM 0.34.0 APC by 4.77×/4.00× and SGLang 1.0.0 RadixAttention by 4.29×/3.42× (9.2K/18.5K, 3/3 EM) while matching SGLang within 0.47 ms on 18.5K prefix hits. On standardized real LongBench (N=111), DAG-KV (4% → 1.5%) beats CacheBlend-15% in macro score (40.70 vs 40.36) at 2.10× lower TTFT (88.3 ms vs 185.7 ms) and 4.65× faster than Dense Oracle. Scales Qwen2.5-32B-Instruct to 33.8K at 10.03× (8.4K) / 7.00× (33.8K, 3/3 EM) plus 242.0 tok/s (6.50×, lossless) speculative decoding, and runs end-to-end DeepSeekMLADAGKVEngine on real DeepSeek-V2-Lite-Chat (8.89× KV compression, 3/3 EM via Latent-Space CoW Bridge Repair, 8.48× at 32K).

Research Paper & Camera-Ready arXiv Package: Read the compiled 10-page arXiv preprint in paper/dag_kv_arxiv_preprint.pdf (upload-ready source tarball paper/dag_kv_arxiv.tar.gz), the concise summary PDF in paper/dag_kv_paper.pdf, or the v0.7.0 Launch Post.


Universal Hardware Abstraction & Multi-Backend Architecture

DAG-KV abstracts away low-level GPU dependencies, providing automated backend routing based on the host environment:

                            ┌──────────────────────────────────┐
                            │    User API / HTTP Endpoint /    │
                            │   HuggingFace / vLLM Integrations│
                            └─────────────────┬────────────────┘
                                              │
                                              ▼
                            ┌──────────────────────────────────┐
                            │   Hardware Abstraction Layer     │
                            │  DeviceManager & ShardConfig     │
                            └─────────────────┬────────────────┘
                                              │
              ┌───────────────────────────────┴───────────────────────────────┐
              ▼                                                               ▼
  ┌───────────────────────┐                                       ┌───────────────────────┐
  │   High-Performance    │                                       │   Universal Native    │
  │    Triton JIT Path    │                                       │ PyTorch Fallback Path │
  └───────────┬───────────┘                                       └───────────┬───────────┘
              │                                                               │
     ┌────────┴────────┐                                             ┌────────┴────────┐
     ▼                 ▼                                             ▼                 ▼
NVIDIA GPUs        AMD ROCm                                     Apple Silicon       Host CPU
(Hopper, Ada,      (MI200, MI300)                               (M1/M2/M3/M4 MPS)   (x86_64, ARM64)
Ampere, Turing)

1. Triton JIT with Vectorized PyTorch Fallback

  • Triton Execution Path: Maximum throughput on NVIDIA and AMD ROCm GPUs using fused FP16/BF16 kernels (triton_adjoint_paged_attn.py and triton_sparse_stitch.py).
  • PyTorch Native Fallback Path: Pure PyTorch tensor implementation (pytorch_fallbacks.py) supporting Apple Silicon (Metal/MPS), CPU-only servers, and quantized pools with zero external kernel compilation dependencies.
  • Unified Dispatcher: Transparently selects the fastest available backend at runtime via dag_kv.kernels.dispatch.

2. Dynamic Auto-Sharding Topologies

  • Single-Device Mode: Runs prefill and decode on a single accelerator (cuda:0, mps) or CPU.
  • Multi-GPU Disaggregated Pipeline: Pins asynchronous canonical chunk prefill to one GPU (e.g. cuda:1) while serving stitched multi-file decode on another (e.g. cuda:0), synchronizing via page-locked (pinned) Host RAM or P2P DMA.
  • CPU-Offloaded KV Pooling: Keeps model weights on high-speed accelerator HBM while offloading massive shared canonical KV blocks to system RAM with pinned memory staging.

3. Adaptive Quantization & Memory Compression

  • Runtime Quantization Selector: Switch between native floating point (none), INT8 (1.97x), K8V4 (2.53x, INT8 Keys + Group-32 INT4 Values — outlier-safe default for Qwen2.5 and Llama-3.2), and INT4 (3.05x, decoupled K=g8 / V=g32 symmetric quantization), all backed by fused Triton SRAM decode/bridge kernels and native PyTorch fallbacks.
  • Configurable Block Sizes: Dynamic block sizes (BLOCK_SIZE = 8, 16, 32, 64) to balance fragmentation vs. memory efficiency for small contexts or massive codebases.

Real-Weight Quantization Pareto Benchmark (RTX 2080 Ti, v0.3.2)

Model Quant KV Pool (8K slots) Compression Stitch+Repair Decode (ms/tok) Throughput Multi-Chunk EM Top-1 vs HF Mean KL
Qwen2.5-3B-Instruct FP16 288.0 MiB 1.00x 39.8 ms 29.5 ms 33.9 tok/s 6/6 (100%) 100% 0.0308
Qwen2.5-3B-Instruct INT8 146.2 MiB 1.97x 49.0 ms 38.4 ms 26.0 tok/s 6/6 (100%) 100% 0.0429
Qwen2.5-3B-Instruct K8V4 (g32) 113.6 MiB 2.53x 50.5 ms 41.6 ms 24.0 tok/s 6/6 (100%) 100% 0.0515
Qwen2.5-3B-Instruct INT4 (K8g/V32g) 94.5 MiB 3.05x 52.8 ms 44.0 ms 22.7 tok/s 6/6 (100%) 67% 0.8961
Llama-3.2-3B-Instruct FP16 896.0 MiB 1.00x 31.2 ms 29.1 ms 34.3 tok/s 5/6 (83%) 83% 0.2052
Llama-3.2-3B-Instruct INT8 455.0 MiB 1.97x 117.3 ms 39.6 ms 25.2 tok/s 6/6 (100%) 83% 0.2030
Llama-3.2-3B-Instruct K8V4 (g32) 353.5 MiB 2.53x 133.8 ms 42.9 ms 23.3 tok/s 6/6 (100%) 83% 0.2090
Llama-3.2-3B-Instruct INT4 (K8g/V32g) 294.0 MiB 3.05x 158.8 ms 45.6 ms 21.9 tok/s 6/6 (100%) 83% 0.2027

Fused Triton KV-Write + Decode Attention Crossover (v0.3.3, 28 Layers, RTX 2080 Ti)

Fusing quantization, nibble packing, and paged scatter into a single Triton launch (triton_fused_kv_quant_write) cuts 28-layer KV write latency from 6.4–11.9 ms to 1.44–1.95 ms, letting quantized tiers beat FP16 in both memory and latency from 2K tokens onward:

Context Length FP16 (1.00x) INT8 (1.97x) K8V4 (2.53x) INT4 (3.05x) Peak Speedup vs. FP16
512 5.23 ms 4.92 ms 4.90 ms 4.60 ms 1.14x (INT4)
1,024 4.51 ms 4.87 ms 4.93 ms 4.66 ms 0.97x (INT4)
2,048 9.67 ms 8.88 ms 8.40 ms 7.30 ms 1.32x (INT4)
4,096 18.89 ms 19.42 ms 19.36 ms 14.38 ms 1.31x (INT4)
8,192 37.34 ms 35.17 ms 29.34 ms 23.64 ms 1.58x (INT4) / 1.27x (K8V4)

Batched Concurrency & VRAM Ceiling (v0.3.4, 28 Layers, RTX 2080 Ti with 6.0 GiB Reserved for 3B FP16 Weights)

With 64-bit physical block indexing across all Triton kernels, quantized KV pools scale cleanly past 2 GiB—delivering up to 3.5x higher concurrency and 1.98x higher peak KV+Attention throughput before physical OOM:

Context Mode Max Batch Concurrency KV Pool B=1 Step Peak KV+Attn tok/s vs. FP16
4,096 FP16 (none) 8 1.00x 3,584 MiB 18.87 ms 230.9 tok/s 1.00x
4,096 INT8 20 2.50x 4,550 MiB 14.68 ms 199.7 tok/s 0.86x
4,096 K8V4 (g32) 24 3.00x 4,242 MiB 14.87 ms 400.7 tok/s 1.74x
4,096 INT4 (K8g/V32g) 28 3.50x 4,116 MiB 12.03 ms 370.0 tok/s 1.60x
8,192 FP16 (none) 4 1.00x 3,584 MiB 28.96 ms 90.7 tok/s 1.00x
8,192 INT8 8 2.00x 3,640 MiB 29.46 ms 100.5 tok/s 1.11x
8,192 K8V4 (g32) 12 3.00x 4,242 MiB 29.77 ms 179.2 tok/s 1.98x
8,192 INT4 (K8g/V32g) 12 3.00x 3,528 MiB 24.30 ms 156.8 tok/s 1.73x

Head-to-Head vs. Live vLLM 0.6.6.post1 Automatic Prefix Caching (benchmarks/bench_vs_vllm_apc.py, RTX 2080 Ti)

Head-to-Head vLLM APC vs DAG-KV on RTX 2080 Ti

Workload (Qwen2.5-3B-Instruct FP16, RTX 2080 Ti) Live vLLM 0.6.6 APC DAG-KV (K8V4 + GQA-SplitKV Prefill + Prefix Bypass + CUDA Graphs) Measured Advantage
Same-Order Prefix Hit (control) 51.9 ms 54.0 ms Hybrid Prefix-Chain Bypass + GQA-SplitKV (4.11× faster than v0.6.0, within 2.1 ms of C++ vLLM)
Permuted RULER 2.7K Document Cache Hit 0% 100% +100 pp cache reuse
Permuted RULER 2.7K TTFT 379.4 ms 93.7 ms 4.05× faster vs. C++ vLLM | 3/3 EM (FP16, INT8 & K8V4)
Live IDE Single-Function Edit (pytorch_fallbacks.py) 427.2 ms 147.7 ms 2.89× faster vs. C++ vLLM | 92.7% AST reuse

Flagship v0.7.0 Evaluation: External Baselines (vLLM, SGLang, LongBench/CacheBlend), Qwen2.5-32B, Real DeepSeek-V2-Lite MLA & 100GbE RoCE RDMA

DAG-KV v0.7.0 Flagship Evaluation: Live 3-Way vLLM/SGLang, LongBench vs CacheBlend, DeepSeek-V2-Lite MLA, Qwen2.5-32B, and 100GbE RoCE RDMA

1. Live 3-Way Head-to-Head on NVIDIA H200 NVL (141 GB): vLLM 0.34.0 APC vs. SGLang 1.0.0 RadixAttention vs. DAG-KV (K8V4, 100% hit, 3/3 EM):

Model & Workload (NVIDIA H200 NVL sm_90) vLLM 0.34.0 APC SGLang 1.0.0 RadixAttn DAG-KV (K8V4) Measured Advantage
Qwen2.5-3B — 4.6K Permuted RULER 60.81 ms (0%) 53.87 ms (0%) 23.70 ms (100%) 2.57× vs vLLM / 2.27× vs SGLang | 3/3 EM
Qwen2.5-3B — 9.2K Permuted RULER 121.89 ms (0%) 103.26 ms (0%) 37.36 ms (100%) 3.26× vs vLLM / 2.76× vs SGLang | 3/3 EM
Qwen2.5-3B — 18.5K Permuted RULER 298.16 ms (0%) 263.95 ms (0%) 99.52 ms (100%) 3.00× vs vLLM / 2.65× vs SGLang | 3/3 EM
Qwen2.5-3B — 18.5K Same-Order Prefix Hit 32.28 ms 24.57 ms 25.04 ms (Bypass) 1.29× faster than vLLM (within 0.47 ms of SGLang)
Qwen2.5-14B — 9.2K Permuted RULER 487.09 ms (0%) 437.92 ms (0%) 102.06 ms (100%) 4.77× vs vLLM / 4.29× vs SGLang | 3/3 EM
Qwen2.5-14B — 18.5K Permuted RULER 1,168.91 ms (0%) 1,000.38 ms (0%) 292.18 ms (100%) 4.00× vs vLLM / 3.42× vs SGLang | 3/3 EM
Qwen2.5-14B — Live IDE Edit (pytorch_fallbacks.py) 157.36 ms (miss) 68.27 ms 71.15 ms (AST Delta) 2.21× faster than vLLM | 92.7% AST reuse

2. Standardized Real LongBench (N = 111, Qwen2.5-14B-Instruct, K8V4 on H200) vs. CacheBlend HKVD 15%:

LongBench Task (N, Metric) Dense Oracle Isolated 0% CacheBlend HKVD 15% DAG-KV 4% → 1.5% Speedup vs. Dense / CB-15%
HotpotQA (28, F1) 29.72 (405.0 ms) 35.14 (40.9 ms) 37.86 (145.7 ms) 35.14 (42.5 ms) 9.52× / 3.42×
2WikiMultihopQA (29, F1) 58.65 (370.9 ms) 26.77 (26.4 ms) 30.72 (144.2 ms) 30.22 (43.2 ms) 8.59× / 3.34×
MuSiQue (24, F1) 30.47 (425.8 ms) 38.34 (28.4 ms) 39.74 (156.6 ms) 38.69 (42.3 ms) 10.06× / 3.70×
RepoBench-P (30, Edit-Sim) 55.90 (439.3 ms) 60.52 (212.0 ms) 53.10 (296.5 ms) 58.74 (225.0 ms) 1.95× / 1.32×
Macro Avg (N = 111) 43.69 (410.3 ms) 40.19 (76.9 ms) 40.36 (185.7 ms) 40.70 (88.3 ms) Beats CB-15% @ 2.10× / 4.65× Dense

3. Qwen2.5-32B, Real DeepSeek-V2-Lite-Chat Absorbed MLA, vLLM v1 GPU Verification & Live 100GbE RoCE RDMA:

Benchmark / Hardware (H200 NVL & RTX PRO 6000 Blackwell) Baseline DAG-KV (v0.7.0) Verified Gain / Fidelity
H200 Qwen2.5-32B (64 GB) 8.4K / 33.8K Permuted (Native FP8) 1,199.6 / 6,741.3 ms 119.6 / 963.7 ms 10.03× (8.4K) / 7.00× (33.8K) | 3/3 EM
H200 Qwen2.5-32B Prompt-Lookup Speculative (48 tok) 1,289.9 ms (37.2 tok/s) 198.3 ms (242.0 tok/s) 6.50× faster | 40 accepted | 100% lossless
H200 Real DeepSeek-V2-Lite-Chat Absorbed MLA (6-Doc / 32.0K) 1/3 EM (0%) / 1,695.1 ms 3/3 EM / 199.8 ms 8.89× KV compression | 8.48× @ 32K
2-Node 100GbE RoCE RDMA: H200 → Blackwell (bnxt_re0, 64/256 MB) 99.9 MB/s (1GbE HTTP) 6.25 / 23.96 ms (10.44 GB/s) 83.50 Gbps (91.8% of ib_write_bw, 107× HTTP, bit-exact)
Live H200 vLLM 0.34.0 v1 Plugin (KVConnectorBase_V1 + v1 Attn) vLLM v1 Reference 0.0 KV diff / 0.000488 Attn PASSED (zero-fork 7-method v1 lifecycle)
H200 Qwen2.5-14B 36.8K Permuted (Native FP8 sm_90) 4,432.75 ms (Dense HF) 860.26 ms (61.9 ms bypass) 5.15× permuted / 71.6× bypass | 3/3 EM
H200 Qwen2.5-14B Prompt-Lookup Speculative (48 tok) 762.19 ms (standard) 151.31 ms (352.1 tok/s) 5.04× faster | 39/39 accept | 100% lossless
RTX PRO 6000 Blackwell (sm_120) 64K GQA-SplitKV (36L) 47.87 ms (FP16) 33.27 ms (K8V4, Q=32) 1.44× faster than FP16 @ 64K (41.8 ms Q=128)
DeepSeek-V3 MLA Kernel (d_c=512, d_r=64, 16K / 64K) 209.4 / 215.0 ms (PT 16K) 2.14 ms (H200) / 2.00 ms (Blackwell) 98× (H200) / 107× (Blackwell, 8.01 ms @ 64K)
Native FP8 Tensor Core Parity (sm_90 & sm_120) Exact PyTorch Ref max_diff 0.000824 (prefill) max_diff 0.000031 (decode)

DAG-KV Multi-Generation Silicon Evaluation on NVIDIA H200 NVL and RTX PRO 6000 Blackwell

v0.4.0–v0.6.1 End-to-End, GQA-SplitKV, Speculative, MLA, CUDA Graph & Multi-GPU Evaluation (Dual RTX 2080 Ti)

Benchmark / Configuration (RTX 2080 Ti) Baseline DAG-KV v0.6.1 Measured Gain / Fidelity
Prompt-Lookup Speculative Decode (Qwen2.5-3B, K8V4, 48 tok) 873.79 ms (standard) 494.61 ms (104.28 tok/s) 1.77× faster | 3.36 tok/step | 100% lossless
Batched Ragged Multi-Request Suffix Prefill (B=4, K8V4) 153.23 ms (serial) 60.44 ms (batched) 2.54× faster
Long-Context 16K GQA-SplitKV Prefill (36L, Q=32 / Q=128) 16K Context 75.86 / 294.64 ms (FP16) 75.98 / 278.97 ms (INT8) | 96.16 / 380.70 ms (K8V4)
Dual-GPU cuda:0 → cuda:1 NIXLRDMAKVStore (59.38 MB) Host file copy 11.04 ms (cuda_p2p) 5.25 GB/s direct tensor transfer
Async CUDA-Stream NVMe→GPU Prefetch (2 chunks, 72.7 MB) 86.32 ms (serial sum) 48.36 ms (overlapped) 1.79× stream overlap
Native vLLM DAGKVvLLMAttentionBackend (Live vllm 0.6.6) PyTorch Exact Oracle DAG_KV_ADJOINT max_diff 3.05e-5 (decode & prefill)
DeepSeek-V3 Absorbed MLA Decode (4K, d_c=512, d_r=64) 175.69 ms (PyTorch) 1.152 ms (Triton MLA) 152.5x faster | max_diff 1e-6
Qwen2.5-3B B=1 Decode — CUDA Graph (K8V4) 34.08 ms/tok (29.3 tok/s) 15.72 ms/tok (63.6 tok/s) 2.17x faster | 0.000000 max_diff
2-GPU Megatron Tensor Parallelism (cuda:0 + cuda:1) 1× GPU FP16 Oracle TP=2 (½ KV/GPU) max_diff 4.9e-4 | 100% top-1
8K B=1 Attention Decode — FP16 (GQA+SplitKV) 0.930 ms (1-split) 0.223 ms (GQA+Split8) 4.16x faster
8K B=1 Attention Decode — K8V4 (SplitKV-4) 0.903 ms (1-split) 0.255 ms (Split4) 3.55x faster
Qwen2.5-3B Suffix Prefill (Q=128, K8V4) 4,764.8 ms (serial) 134.7 ms (batched) 35.38x faster
Llama-3.2-3B Suffix Prefill (Q=128, K8V4) 3,896.2 ms (serial) 140.6 ms (batched) 27.71x faster
Qwen2.5-3B RULER Permuted Multi-Needle (2.7K, K8V4) 1,059.9 ms (Dense) 205.6 ms (DAG) 5.16x TTFT | 3/3 (100%) EM
Qwen2.5-3B Multi-Hop Permuted RAG (K8V4 Submod 4%+Pyr) KL 0.0406 (8% FP16) KL 0.0348 (4% K8V4) 6/6 (100%) EM | 2.53x VRAM
Llama-3.2-3B Multi-Hop Permuted RAG (K8V4 Submod 4%+Pyr) KL 0.3482 (8% FP16) KL 0.4844 (4% K8V4) 5/6 EM (matches Dense Oracle)
Core ASTDeltaCache Live Edit (block_manager.py) 1,552.9 ms (full) 339.9 ms (delta) 4.57x faster | 78.8% reuse

3 Core Mathematical Pillars

Pillar 1: Query-Side Adjoint RoPE in $\mathrm{SO}(2)$

Let document chunk $c$ be prefilled once at local positions $p \in [0, L_c - 1]$ yielding canonical key vectors $\tilde{\mathbf{k}}_p = \mathcal{R}(p)\mathbf{k}_p$. When chunk $c$ is dynamically placed at global offset $\Delta_c$ in a prompt DAG, its tokens sit at global positions $m = p + \Delta_c$.

Because 2D RoPE rotation matrices form a one-parameter subgroup of $SO(2)$: $$\mathcal{R}(p + \Delta_c) = \mathcal{R}(\Delta_c)\mathcal{R}(p) \quad \text{and} \quad \mathcal{R}(\Delta_c)^T = \mathcal{R}(-\Delta_c)$$

The attention score between query $\mathbf{q}_n$ at global position $n$ and cached key $\tilde{\mathbf{k}}_p$ satisfies the exact adjoint identity: $$\text{Score}(n, p; \Delta_c) = \big\langle \mathcal{R}(n)\mathbf{q}_n, , \mathcal{R}(p + \Delta_c)\mathbf{k}_p \big\rangle = \big\langle \mathcal{R}(-\Delta_c)\tilde{\mathbf{q}}_n, , \tilde{\mathbf{k}}_p \big\rangle$$

Standard System (Mutates Keys in HBM - Destroys Sharing):
  HBM Memory: [ R(0)k0, R(1)k1, ... ]  ---> In-place mutate to [ R(1024)k0, R(1025)k1, ... ] (Corrupts concurrent batch!)

DAG-KV (Query-Side Adjoint - 100% Zero-Copy HBM):
  Query in SRAM:  q_adj = q * cos(Δ) - rotate_half(q) * sin(Δ)
  HBM Memory:     [ R(0)k0, R(1)k1, ... ]  (Never modified, 100% read-only shared pool!)

Pillar 2: Canonical Sink Prefix (Solving Norm Pathology)

Autoregressive language models concentrate massive attention softmax mass ("attention sinks") onto the first 1–4 tokens. If a chunk is prefilled at raw token index 0, its first token absorbs abnormal sink activation norms that corrupt cross-attention representations when shifted to position $\Delta_c > 0$.

Mechanism: Every chunk is prefilled with a standardized 4-token system sink prefix (<|im_start|>system\n) at indices [0, 1, 2, 3], placing the chunk's payload at canonical positions [4, ..., L_c + 3]. After prefill, the 4 sink KV slots are sliced away, storing only the payload KV alongside its local causal Log-Sum-Exp vector $\ell_i^{\text{local}}$.

Pillar 3: Layer-1 LSE Perturbation Bound & Submodular Bridge Selection

When concatenating reordered chunks [Chunk_A, Chunk_B], tokens in Chunk_B missed attending to Chunk_A. Via Online Softmax decomposition: $$\alpha_i = \frac{\exp(\ell_{i \to \text{prior}})}{\exp(\ell_i^{\text{local}}) + \exp(\ell_{i \to \text{prior}})} = \sigma\big(\ell_{i \to \text{prior}} - \ell_i^{\text{local}}\big)$$

By the Cauchy-Schwarz bound on attention outputs: $$|\mathbf{o}_i^{\text{exact}} - \mathbf{o}_i^{\text{cached}}|_2 \le 2\alpha_i \max_j |\mathbf{v}_j|_2$$

Rather than greedy top-$k$ selection, DAG-KV maximizes a spatial quality-diversity objective via 1D neighborhood non-maximum suppression ($r=2$), selecting 4.0% bridge tokens on Stage 0 (cuda:0, Layers 0–13) and pruning to 1.5% before crossing PCIe to Stage 1 (cuda:1, Layers 14–27). Repaired KVs are written into request-private Copy-on-Write (CoW) Shadow Blocks, achieving 4.66x faster stitching while reusing 96% of the canonical KV cache untouched.


Ecosystem Integrations (Hugging Face, vLLM, LangChain, LlamaIndex & MCP)

1. Hugging Face Drop-In Wrapper (patch_hf_model)

Use DAG-KV with standard Hugging Face causal language models (Qwen2/2.5/3, Llama-2/3, Mistral, Gemma-2, DeepSeek) in 3 lines of code:

from transformers import AutoModelForCausalLM, AutoTokenizer
from dag_kv import patch_hf_model

model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")

# Wrap model with DAG-KV position-decoupled caching (auto-detects hardware)
dag_model = patch_hf_model(model, tokenizer, quantization="k8v4", block_size=16, bridge_strategy="submodular")

# Prefill documents once in isolation (or incrementally via AST delta sync)
chunk_a = dag_model.prefill_chunk("File A: Authentication service implementation...")
chunk_b = dag_model.prefill_chunk("File B: Database schema definitions...")

# Query in any permutation with 100% KV reuse: [Chunk_B, Chunk_A]
response = dag_model.generate([chunk_b, chunk_a], prompt_suffix="Question: What DB is used?")
print(response)

2. vLLM BlockManager, Attention Adapter & KVConnector Plugins

Integrate DAG-KV's Content-SHA256 registry, offset block table, adjoint attention wrapper (DAGKVvLLMAttentionAdapter), and vLLM v1 KVConnector lifecycle (DAGKVvLLMKVConnector):

from dag_kv.integrations.vllm import (
    DAGKVvLLMBlockManagerPlugin,
    DAGKVvLLMAttentionAdapter,
    DAGKVvLLMKVConnector,
)

plugin = DAGKVvLLMBlockManagerPlugin(block_size=16)

# Hash and register pre-computed physical blocks
hash_a = plugin.hash_tokens(chunk_a_tokens)
plugin.register_chunk(hash_a, physical_block_ids=[12, 13, 14])

# Dynamically assemble sequence mappings with RoPE delta offsets
seq_blocks = plugin.assemble_sequence_mapping(
    seq_id="request_101",
    chunk_hashes_and_lengths=[(hash_b, 128), (hash_a, 256)],
)

3. LangChain, LlamaIndex & MCP Server (Claude Code / Cursor / Cline)

# LangChain LCEL Runnable
from dag_kv import DAGKVLangChainRunnable
answer = DAGKVLangChainRunnable(engine).invoke({"documents": retrieved_docs, "question": "What DB is used?"})

# LlamaIndex Response Synthesizer (order-invariant across rerankers)
from dag_kv import DAGKVResponseSynthesizer
res = DAGKVResponseSynthesizer(engine).synthesize("What DB is used?", reranked_nodes)
# Connect any MCP-compatible IDE/coding agent via stdio
dag-kv mcp --model Qwen/Qwen2.5-3B-Instruct --quantization k8v4

See examples/ for 5 runnable recipes, a local drag-and-drop visualizer (examples/interactive_visualizer.py), and deploy/docker-compose.yml for 1-command Prometheus + Grafana observability.


CLI & Production Serving

Install directly from PyPI:

pip install dag-kv

Inspect Discovered Hardware

dag-kv info

Output:

============================================================
 DAG-KV Hardware Abstraction Layer (HAL) Report
============================================================
CUDA Available:       True
CUDA Device Count:    2
Apple Silicon MPS:    False
Triton JIT Available: True
Primary Compute Dev:  cuda:0
------------------------------------------------------------
Discovered Devices:
 [0] CUDA | NVIDIA GeForce RTX 2080 Ti       | Total: 10.75 GB | Free: 10.30 GB | CC: sm_75
 [1] CUDA | NVIDIA GeForce RTX 2080 Ti       | Total: 10.75 GB | Free: 10.59 GB | CC: sm_75
 [2] CPU  | Host CPU (48 cores, x86_64)      | Total: 187.54 GB | Free: 93.77 GB | CC: N/A
------------------------------------------------------------
Recommended Topology:
 Mode:         pipeline
 Compute Dev:  cuda:0
 KV Device:    cuda:0
 Dtype:        torch.float16
 Block Size:   16
============================================================

Launch Multi-Node Shared Cluster KV Cache Node & Serving Replicas

# 1. Start a shared Tier-4 Cluster KV Cache Node (HTTP/1.1 + Bearer auth + LRU quotas)
dag-kv cache-node --host 0.0.0.0 --port 9100 --cache-dir /var/lib/dagkv-cluster --max-disk-gb 128

# 2. Connect GPU serving replicas (or attach --redis-url / --s3-bucket)
dag-kv serve --host 0.0.0.0 --port 8000 \
  --model Qwen/Qwen2.5-7B-Instruct --sharded \
  --quantization k8v4 --bridge-strategy lse_hybrid --bridge-top-k 0.04 \
  --cuda-graphs --disk-cache /tmp/dag_kv_cache --max-disk-gb 16 \
  --remote-cache-url http://127.0.0.1:9100

Supported endpoints: /v1/chat/completions (SSE streaming, sampling controls, structured dag_chunks / documents / ### FILE:), /v1/models, /v1/cache/prefill (supports AST delta mode), /v1/cache/invalidate, /metrics (Prometheus text exposition), and /health.

Query the endpoint:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Qwen/Qwen2.5-7B-Instruct",
    "messages": [
      {"role": "user", "content": "### FILE: auth.py\n...\n### FILE: db.py\n...\nQuestion: What DB is used?"}
    ],
    "max_tokens": 16
  }'

Empirical Benchmark Results

DAG-KV Architecture and Empirical Benchmarks

Summary of Performance Gains on $2\times$ NVIDIA RTX 2080 Ti (Qwen2.5-7B-Instruct)

Dimension Standard Serving Baseline (vLLM / SGLang) DAG-KV Stitched Engine (Ours) Measured Gain
Context Stitch Latency (4K Toks) 1,441.8 ms (Dense 7B Prefill) 309.5 ms (Submodular $4% \to 1.5%$) 4.66x Faster
Multi-User KV VRAM (12 Sessions) 2,522.1 MB (Private copies) 258.2 MB (Shared Pool + INT8) 9.8x Less VRAM
Decode Throughput ($B=4\times 2$) 23.1 tok/s (Sequential $B=1$) 100.4 tok/s (Ping-Pong Overlap) 4.35x Throughput
Live IDE Save Re-Indexing 994.4 ms (Full re-prefill) 79.3 ms (AST Function-Delta) 12.5x Faster
Reordered File Cache Hit Rate 0.0% (Prefix cache miss) 100.0% (Zero-copy canonical hit) $\infty$
Codebase QA Accuracy N/A 100.0% (12/12 Exact Answers) 1.000 F1

Repository Architecture

dag-kv/
├── dag_kv/
│   ├── core/
│   │   ├── rope_adjoint.py           # Adjoint RoPE R(-Delta) implementation and mathematical proofs
│   │   ├── sink_canonicalizer.py     # 4-token sink prefix canonicalization, SHA256 & pool-backed chunks
│   │   ├── lse_probe.py              # Exact RoPE-aware Layer-1 LSE bound + Submodular NMS & Adaptive selectors
│   │   ├── block_manager.py          # Paged Block Pool, OffsetBlockTable, LRU eviction callbacks & CoW shadows
│   │   └── quantizer.py              # Vectorized symmetric FP8 / INT8 / K8V4 / INT4 KV cache quantizer
│   ├── chunkers/
│   │   ├── ast_chunker.py            # Multi-language AST/symbol chunker & live-edit ASTDeltaCache
│   │   └── document_chunker.py       # Markdown heading-aware & sliding paragraph document chunkers
│   ├── devices/
│   │   ├── shard_config.py           # Pluggable topologies: Single-GPU, Pipeline, MPS, CPU Offload
│   │   └── device_manager.py         # Hardware Abstraction Layer auto-discovery & VRAM probing
│   ├── kernels/
│   │   ├── dispatch.py               # Dynamic dispatch between Triton and PyTorch fallbacks
│   │   ├── pytorch_fallbacks.py      # Universal PyTorch kernels (MPS, CPU, CPU-offloaded blocks, softcap, SWA)
│   │   ├── triton_adjoint_paged_attn.py # GQA-grouped & Split-KV FlashDecoding PagedAttention (FP16/BF16/FP8/INT8/INT4)
│   │   ├── triton_k8v4_paged_attn.py # Fused K8V4 Split-KV decode kernel (INT8 Keys + Group-32 INT4 Values)
│   │   ├── triton_adjoint_prefill.py # Tiled BLOCK_M=16 Batched Adjoint Prefill + sm_89+ native FP8 Tensor Cores
│   │   ├── triton_gqa_prefill.py     # GQA-Grouped Split-KV Tiled Prefill (BLOCK_M=64, FP16/INT8/K8V4)
│   │   ├── triton_mla_adjoint_attn.py# Fused Triton DeepSeek-V2/V3 MLA Decoupled Adjoint RoPE (152.5x speedup)
│   │   ├── triton_kv_write.py        # Single-launch fused quantize, nibble-pack, and paged scatter write
│   │   ├── triton_sparse_stitch.py   # Fused ragged micro-prefill kernel for Bridge Tokens
│   │   └── mlx_backend.py            # Native Apple Silicon MLX Adjoint PagedAttention backend
│   ├── integrations/
│   │   ├── huggingface.py            # Drop-in DAGKVModelWrapper, patch_hf_model & AST-delta chat APIs
│   │   ├── vllm.py                   # DAGKVvLLMBlockManagerPlugin, AttentionAdapter & vLLM v1 KVConnector
│   │   ├── vllm_plugin.py            # Zero-fork `vllm.general_plugins` (`DAGKVvLLMConnector` + `DAGKVvLLMAttentionBackend`)
│   │   ├── langchain.py              # LangChain LCEL Runnable integration
│   │   ├── llamaindex.py             # LlamaIndex order-invariant Response Synthesizer
│   │   └── mcp_server.py             # Model Context Protocol (MCP) stdio server (`dag-kv mcp`)
│   ├── models/
│   │   ├── base_engine.py            # Model-agnostic DAGKVEngine (Q1 LSE, Neural-IDF, Prefix Bypass, Speculative, Batched Prefill)
│   │   ├── tensor_parallel_engine.py # In-process Megatron Tensor Parallelism (`TensorParallelDAGKVEngine`, TP=2)
│   │   ├── sharded_engine.py         # Multi-GPU pipeline-sharded ShardedDAGKVEngine with Ping-Pong overlap
│   │   ├── auto_engine.py            # AutoDAGKVEngine dynamic architecture & multi-GPU router
│   │   ├── qwen2_dag_patch.py        # Alibaba Qwen-2 / Qwen-2.5 DAG-KV engine
│   │   ├── qwen3_engine.py           # Alibaba Qwen-3 QK-Norm DAG-KV engine
│   │   ├── llama_engine.py           # Meta Llama-2 / Llama-3 / Llama-3.2 DAG-KV engine
│   │   ├── mistral_engine.py         # Mistral / Mixtral (SWA) DAG-KV engine
│   │   ├── gemma_engine.py           # Google Gemma-2 (logit softcapping + alternating SWA) DAG-KV engine
│   │   ├── deepseek_engine.py        # DeepSeek-V2 / V3 standard + MLA helper engine
│   │   └── deepseek_mla_engine.py    # Real absorbed-weight DeepSeek-V2-Lite/V3 MLA engine (8.89x KV, Latent CoW Bridge)
│   ├── observability/
│   │   └── tracing.py                # OpenTelemetry distributed tracing spans with graceful no-op fallback
│   ├── persistence/
│   │   ├── disk_cache.py             # Frozen Schema v1 (`1.0`) 4-tier NVMe DiskKVCache with LRU quotas & lazy spill
│   │   ├── pinned_cpu_pool.py        # Tier-2 Page-locked (pinned) Host RAM LRU chunk cache & DMA staging
│   │   ├── remote_store.py           # Tier-4 Cluster KV Fabric (`DAGKVCacheNodeServer`, HTTP, Redis, S3)
│   │   ├── async_prefetch.py         # Async CUDA-Stream Tier-3/4 Background Prefetcher (`AsyncTierPrefetcher`)
│   │   └── rdma_store.py             # 100GbE RoCE NCCL Direct RDMA (`10.44 GB/s`), BinaryStreamKV & NIXL/UCX/P2P Store
│   ├── serving/
│   │   ├── scheduler.py              # Interleaved ContinuousBatchingScheduler, batched burst prefill & Prometheus
│   │   ├── speculative.py            # Zero-VRAM Prompt-Lookup & Draft-Model Speculative Decoding (`352 tok/s` 14B / `242 tok/s` 32B)
│   │   └── async_server.py           # Asyncio HTTP/1.1 & SSE server (/v1/chat/completions, /v1/cache/*, /metrics)
│   ├── worker/
│   │   ├── universal_pipeline.py     # Universal single/dual device & CPU-offloaded pipeline
│   │   └── dual_gpu_pipeline.py      # Dedicated Dual-GPU async prefill-decode pipeline
│   ├── cli.py                        # CLI (`dag-kv info`, `serve`, `cache-node`, `mcp`, `benchmark`)
│   └── server.py                     # Threaded OpenAI-compatible HTTP server backed by AutoDAGKVEngine
├── demo/                             # Interactive Gradio / Hugging Face Spaces Playground (`app.py`, `requirements.txt`)
├── examples/                         # 5 runnable recipes, interactive web visualizer & Colab T4 notebook
├── docs/                             # MkDocs Material documentation site + `launch_post.md` (v0.7.0 Launch Kit)
├── deploy/                           # One-command Docker Compose stack (DAG-KV + Prometheus + Grafana)
├── configs/
│   └── hw_rtx2080ti.yaml             # Turing SM75 tile configs, memory constraints, dual-GPU pipeline
├── paper/
│   ├── arxiv/                        # Self-contained arXiv LaTeX package (`main.tex`, `references.bib`, `figures/`)
│   ├── dag_kv_arxiv_preprint.pdf     # Compiled 10-page camera-ready arXiv LaTeX preprint (v0.7.0)
│   ├── dag_kv_arxiv.tar.gz           # Upload-ready arXiv submission source archive
│   ├── dag_kv_paper.pdf              # Compiled summary research paper PDF (v0.7.0, publication-grade)
│   └── build_paper.py                # Reproducible ReportLab + Matplotlib math PDF compiler
├── assets/
│   ├── dag_kv_demo.gif               # Animated hero demo (Prefix Cache 0% vs DAG-KV 100% + LSE heatmap)
│   ├── dag_kv_v1_flagship.png        # Flagship v0.7.0 4-panel chart (3-way vLLM/SGLang, LongBench, MLA/32B, 100GbE RoCE)
│   ├── dag_kv_h200_blackwell.png     # Multi-generation Hopper H200 NVL + Blackwell RTX PRO 6000 evaluation chart
│   ├── dag_kv_vs_vllm.png            # Live head-to-head RTX 2080 Ti benchmark: vLLM 0.6.6 APC vs. DAG-KV
│   └── dag_kv_benchmarks.png         # High-resolution benchmark overview chart
├── CHANGELOG.md                      # Complete release history through v0.7.0 GA
├── .github/workflows/
│   ├── ci.yml                        # GitHub Actions Multi-Platform CI workflow (17 test modules)
│   ├── docs.yml                      # Automated MkDocs Material GitHub Pages deployment
│   └── publish.yml                   # PyPI OIDC Trusted Publisher workflow
├── Dockerfile                        # Multi-Arch Production Dockerfile (linux/amd64, linux/arm64)
├── tests/                            # 123 Tests (122 RTX 2080 Ti + Hopper/Blackwell sm_90/sm_120 FP8 & vLLM v1 Verified)
└── benchmarks/                       # H200, Blackwell, 100GbE RoCE, LongBench, SGLang 1.0, vLLM 0.34, 32B & DeepSeek MLA Suites

Test Suite (123 Tests Verified Across Turing sm_75, Hopper sm_90 & Blackwell sm_120)

Run the entire test suite across hardware backends:

pytest -v tests/

Output (Dual NVIDIA RTX 2080 Ti sm_75; test_hopper_blackwell_native_fp8_prefill_and_decode_parity & live vLLM 0.34.0 v1 plugin verified on H200 sm_90 & RTX PRO 6000 Blackwell sm_120):

tests/test_brutal_stress.py (6 tests) .............. PASSED
tests/test_continuous_batching.py (2 tests) ........ PASSED
tests/test_core_components.py (3 tests) ............ PASSED
tests/test_device_manager.py (3 tests) ............. PASSED
tests/test_disk_persistence.py (4 tests) ........... PASSED
tests/test_dual_gpu_pipeline.py (1 test) ........... PASSED
tests/test_dynamic_blocks.py (5 tests) ............. PASSED
tests/test_fused_int4.py (11 tests) ................ PASSED
tests/test_hf_integration.py (2 tests) ............. PASSED
tests/test_lru_eviction.py (3 tests) ............... PASSED
tests/test_model_generalization.py (4 tests) ....... PASSED
tests/test_pytorch_fallback.py (3 tests) ........... PASSED
tests/test_quantization.py (3 tests) ............... PASSED
tests/test_rope_adjoint.py (13 tests) .............. PASSED
tests/test_sparse_bridge_e2e.py (1 test) ........... PASSED
tests/test_triton_sm75.py (9 tests) ................ PASSED
tests/test_v04_upgrades.py (12 tests) .............. PASSED
tests/test_v05_ecosystem.py (6 tests) .............. PASSED
tests/test_v06_production.py (13 tests) ............ PASSED
tests/test_v061_optimizations.py (15 tests) ........ 14 PASSED, 1 sm_89+ FP8 (PASSED on H200 & Blackwell)
tests/test_v07_flagship.py (4 tests) .............. PASSED (vLLM v1, BinaryStreamKV, RDMA, DeepSeekMLADAGKVEngine)

================== 122 passed, 1 skipped (sm_89+ verified on H200/Blackwell) ==================

Citation & License

@software{dag_kv_2026,
  title={{DAG-KV: Universal Position-Decoupled Graph KV Cache with Query-Side Adjoint RoPE & LSE-Bounded Sparse Bridge Repair}},
  author={Nandaniya, Kaushal and Collaborators},
  year={2026},
  url={https://github.com/kaushalnandaniya/dag-kv}
}

Licensed under the Apache 2.0 License.

Metadata

Release files for dag-kv 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dag-kv 0.7.0
File Size Uploaded Provenance Actions
dag_kv-0.7.0.tar.gz 259.8 kB With provenance Details for dag_kv-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dag-kv 0.7.0
File Interpreter ABI Platform Actions
dag_kv-0.7.0-py3-none-any.whl Python 3 none any Details for dag_kv-0.7.0-py3-none-any.whl

Total release size: 477.6 kB

Release files / dag_kv-0.7.0.tar.gz

Download URL dag_kv-0.7.0.tar.gz
Size 259.8 kB
Tags Source
SHA-256 checksum
How to use checksums
de0d9c09e7b54f9e99981efd22642fb0b2986bc617e03facf12a2b0b68b09752
BLAKE2b-256 checksum
How to use checksums
dd6850c05cc727848f33e4f6278faaada527778ecda1d8870a921ba164c8e22b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / dag_kv-0.7.0-py3-none-any.whl

Download URL dag_kv-0.7.0-py3-none-any.whl
Size 217.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69ba503611587fb9a34a75793d97b07ee44ded68c9c0f6ade4cc345e8cfcbd55
BLAKE2b-256 checksum
How to use checksums
1017f0a0e9db12a20ab1adbf4dfa681a6ee93be90353428631409180e5aa5adf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for dag-kv 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dag_kv-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page