{
  "id": 631,
  "kind": "code",
  "title": "VBR: Variable Bit-Rate KV Cache for llama.cpp",
  "summary": "spiritbuun llama.cpp fork (buun-llama-cpp) ships VBR as the default KV cache. Cache starts FP16 and degrades one (layer, side) tensor at a time down a price-ordered ladder (f16 → turbo8 → turbo4 → turbo3_tcq → turbo2_tcq → turbo1_tcq) using TurboQuant/TCQ codecs, following per-model KLD degrade tables. Default implicit VBR floors at turbo4; explicit -ct vbr opens the full ladder to t1. Budget is leftover VRAM after weights/compute; -c caps context so the budget is spent on quality instead of max length. CUDA-first with ROCm/HIP mirror. Related to TurboQuant (papers_local 606/640) but this is a dynamic controller, not a new codec paper.",
  "body": "",
  "notes": "Primary: GitHub fork. Discord/X https://x.com/spiritbuun/status/2075624663598629284 via fxtwitter (1/15 thread; video demo). Related fork spiritbuun/llama-cpp-turboquant-cuda. Enable with -ct vbr / --vbr-floor / --vbr-vram. Inference kernel/code item, not a hosted corpus, so no datasets_local row. papers_local 640 (Shard) and 606 (TurboVec) are different KV-compression artifacts.",
  "url": "https://github.com/spiritbuun/buun-llama-cpp",
  "links": [],
  "authors": [
    "buun"
  ],
  "tags": [
    "vbr",
    "kv-cache",
    "llama-cpp",
    "turboquant",
    "quantization",
    "inference",
    "x"
  ],
  "topics": "KV cache compression, llama.cpp inference",
  "venue": "GitHub",
  "publisher": "",
  "source": "web",
  "language": "en",
  "access": "free",
  "license": "MIT",
  "published_year": 2026,
  "added_at": "2026-08-14T19:35:00.000Z",
  "verified_at": "2026-08-14T19:35:00.000Z",
  "attrs": {
    "scale": "GitHub 743 stars / 82 forks at check. Tweet ~212 likes / 26 retweets / ~46k views at fetch.",
    "purpose": "Dynamically degrade KV precision layer-by-layer as context grows so a session stays at the highest quality that still fits VRAM",
    "author_type": "human",
    "time_period": "Repo created 2026-03-26. Tweet 2026-07-10. Discord posted 2026-07-15. Pushed 2026-08-14."
  },
  "enrichment": {
    "github": {
      "forks": 97,
      "stars": 881,
      "pushed": "2026-10-03",
      "created": "2026-03-26",
      "license": "MIT",
      "archived": false,
      "language": "C++",
      "full_name": "spiritbuun/buun-llama-cpp",
      "fetched_at": "2026-10-03T14:33:38.464Z"
    }
  },
  "enriched_at": "2026-10-03T14:33:38.505Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "650",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:38.505Z",
  "page": "https://papers.projxon.ai/entries/631",
  "markdown": "https://papers.projxon.ai/entries/631.md",
  "api": "https://papers.projxon.ai/api/entries/631",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 621,
      "kind": "other",
      "title": "Shard: getting to 10x KV cache compression",
      "summary": "Engineering writeup of Shard, a drop-in HuggingFace Cache. Reimplementing TurboQuant stalled around 4-6x; authors split K and V: undo RoPE then PCA+int4 on K (rank 192/1024, DP bit allocation with a 4x drop penalty) and Hadamard + 4-d vector quantization on V. Attention scores run on int4 PCA coeffs via a relative-Delta RoPE identity; V Hadamard is applied after the weighted sum. 4 FP16 sink tokens + 64-token recency window. Decode stream uses data-oblivious Hadamard+Lloyd-Max (8-bit path 750/750 FP16 match at 150 tokens). Llama-3.1-8B: 10x at 8K / 11.2x at 32K, NIAH recall 1.000 across 4K-32K, LongBench-E avg 16.19 vs FP16 16.24, WikiText-2 PPL +0.26%. Decode throughput 0.39-0.49x FP16, so a memory win not a latency win. Code krish1905/shard.",
      "url": "https://krishgarg.com/shard",
      "authors": [
        "Krish Garg"
      ],
      "tags": [
        "shard",
        "kv-cache",
        "turboquant",
        "pca",
        "vector-quantization",
        "llama",
        "inference",
        "blog",
        "x"
      ],
      "venue": "krishgarg.com",
      "source": "web",
      "license": "MIT",
      "published_year": null,
      "added_at": "2026-08-14T19:20:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/621",
      "markdown": "https://papers.projxon.ai/entries/621.md",
      "api": "https://papers.projxon.ai/api/entries/621"
    },
    {
      "id": 740,
      "kind": "thread",
      "title": "Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)",
      "summary": "An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.",
      "url": "https://x.com/RampLabs/status/2104634941405266021?s=20",
      "authors": [
        "@RampLabs"
      ],
      "tags": [
        "kv-cache",
        "compression",
        "inference",
        "long-context",
        "x-thread",
        "unverified-claim"
      ],
      "venue": "X (Twitter)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/740",
      "markdown": "https://papers.projxon.ai/entries/740.md",
      "api": "https://papers.projxon.ai/api/entries/740"
    },
    {
      "id": 1118,
      "kind": "paper",
      "title": "WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference",
      "summary": "arXiv 2512.22737. Proposes WeDLM: Topological Reordering places observed tokens in the physical prefix while preserving RoPE logical positions so masked recovery works under a strict causal mask; Dual-Stream Masking reduces train–inference gap; Streaming Parallel Decoding commits confident left-to-right prefixes with a dynamic sliding window. Instantiated on Qwen2.5-7B and Qwen3-8B (100B continued pretrain + SFT). Reports ~3× speedups on reasoning vs vLLM-served AR and up to ~10× in low-entropy regimes while matching/improving quality. Code/models: github.com/Tencent/WeDLM; HF tencent/WeDLM collection; project wedlm.github.io.",
      "url": "https://arxiv.org/abs/2512.22737",
      "authors": [
        "Aiwei Liu",
        "Minghua He",
        "Shaoxun Zeng",
        "Sijun Zhang",
        "Linhao Zhang",
        "Chuhan Wu",
        "Wei Jia",
        "Yuan Liu",
        "Xiao Zhou",
        "Jie Zhou"
      ],
      "tags": [
        "wedlm",
        "diffusion-lm",
        "causal-attention",
        "kv-cache",
        "tencent",
        "qwen3",
        "arxiv-2512.22737",
        "inference"
      ],
      "venue": "arXiv / WeChat AI (Tencent); Peking University; Tsinghua University",
      "source": "arxiv",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-09-02T17:40:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 44,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1118",
      "markdown": "https://papers.projxon.ai/entries/1118.md",
      "api": "https://papers.projxon.ai/api/entries/1118"
    },
    {
      "id": 829,
      "kind": "paper",
      "title": "Disaggregated Quantization: Specializing LLM Prefill and Decode",
      "summary": "Disaggregated quantization (DQ): separate computation formats, weights, and storage placement specialized to prefill vs decode -- low-precision arithmetic accelerates prompt processing, compact weights reduce memory traffic during generation. Removing activation quantization on decode improves accuracy on decode-heavy tasks without added inference cost (Qwen 3, Gemma 3). Separate compute-native prefill weights accelerate prompt processing vs weight-only inference while matching/exceeding its accuracy at 2-3-bit decode. Training an NVFP4 prefiller improves 1-bit accuracy by 32.5 points on MMLU-Pro and 35.3 on MMMU-Pro without modifying the decode checkpoint (Qwen3.8-27B GGUF decoder). \"Offloaded disaggregated prefill\" (ODP) streams the extra prefill checkpoint from SSD, amortizing loading over prompt length: 1.78x time-to-first-token speedup over the weight-only baseline at 8K prompt length in llama.cpp. Accuracy evaluated under disaggregated serving in vLLM; shared-weight format disaggregation validated via PTQ on models up to 2.8T parameters.",
      "url": "https://huggingface.co/papers/2609.26333",
      "authors": [
        "Andrei Panferov",
        "Maximilian Kleinegger",
        "Sweta Priyadarshi",
        "Tijmen Blankevoort",
        "Dan Alistarh"
      ],
      "tags": [
        "quantization",
        "inference",
        "prefill",
        "decode",
        "nvfp4",
        "low-bit-inference",
        "serving"
      ],
      "venue": "IST Austria Distributed Algorithms and Systems Lab (arXiv 2026-09-21; HF #2 Paper of the Day)",
      "source": "paper_page",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/829",
      "markdown": "https://papers.projxon.ai/entries/829.md",
      "api": "https://papers.projxon.ai/api/entries/829"
    },
    {
      "id": 570,
      "kind": "paper",
      "title": "SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration",
      "summary": "PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.",
      "url": "https://arxiv.org/abs/2410.02367",
      "authors": [
        "Jintao Zhang",
        "Jia Wei",
        "Haofeng Huang",
        "Pengle Zhang",
        "Jun Zhu",
        "Jianfei Chen"
      ],
      "tags": [
        "sageattention",
        "int8",
        "flashattention",
        "quantization",
        "triton",
        "iclr",
        "tsinghua",
        "inference"
      ],
      "venue": "arXiv / Tsinghua University",
      "source": "",
      "license": "CC BY 4.0",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 185,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/570",
      "markdown": "https://papers.projxon.ai/entries/570.md",
      "api": "https://papers.projxon.ai/api/entries/570"
    },
    {
      "id": 642,
      "kind": "paper",
      "title": "Automated Tensor Scheduling for Hybrid CPU-GPU LLM Inference on Consumer Devices",
      "summary": "ATSInfer (Nanjing University) extends llama.cpp (~15k C++ lines) for consumer hybrid inference. Static knapsack placement uses measured empirical performance density (latency per byte) plus backend-switch costs; load-aware dynamic transfer promotes CPU-resident tensors when PCIe overlap can hide the copy; async coordination splits compute vs copy-engine streams. Vs llama.cpp under the same VRAM budget: prefill up to 1.94×, decode up to 3.29× (laptop) / 3.12× (RTX 4090), ~70% higher average decode SM utilization. Also beats vLLM offload and KTransformers on the models those support. Hardware: RTX 3060 6GB+32GB (Qwen3-14B INT4, Qwen3-30B-A3B INT4, GPT-OSS-20B MXFP4, GLM-Z1-9B FP16) and RTX 4090 24GB+64GB (Llama 3.1-70B INT4, Qwen3-Next-80B-A3B INT4, Qwen3.5-122B-A10B INT4, GPT-OSS-120B MXFP4). No public code linked in the paper.",
      "url": "https://arxiv.org/abs/2607.10183",
      "authors": [
        "Yangyijian Liu",
        "Hongyi Ye",
        "Mingyang Li",
        "Wu-Jun Li"
      ],
      "tags": [
        "atsinfer",
        "llama-cpp",
        "offloading",
        "hybrid-inference",
        "moe",
        "nju",
        "x"
      ],
      "venue": "arXiv / Nanjing University",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-08-14T19:15:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/642",
      "markdown": "https://papers.projxon.ai/entries/642.md",
      "api": "https://papers.projxon.ai/api/entries/642"
    }
  ]
}
