{
  "id": 595,
  "kind": "code",
  "title": "n8loom",
  "summary": "Python library (mlx_lm + Transformers) that stores per-node KV-cache fragments and concatenates the ancestor path when generating, so many ToT branches can share prefix cache without duplicating the full prompt cache at each node. Core types are Heddle (a reasoning node) and Loom (chat-root Heddle); ramify/crown helpers batch- or stream-expand children. Llama-architecture only. pip install n8loom; optional FastAPI example server. CC0.",
  "body": "",
  "notes": "Primary: GitHub README + API (CC0-1.0, Python, 80 stars / 3 forks at check). Discord posted the repo (readme basic-script-example fragment). Inference library, not a new hosted corpus, so no datasets_local row.",
  "url": "https://github.com/N8python/n8loom",
  "links": [],
  "authors": [
    "N8python"
  ],
  "tags": [
    "n8loom",
    "tree-of-thought",
    "kv-cache",
    "mlx",
    "llama",
    "loom",
    "heddle"
  ],
  "topics": "tree-of-thought inference, KV cache, LLM serving",
  "venue": "N8python (GitHub)",
  "publisher": "",
  "source": "github",
  "language": "",
  "access": "free",
  "license": "CC0-1.0",
  "published_year": 2025,
  "added_at": "2026-08-14T18:35:00.000Z",
  "verified_at": "2026-08-14T18:35:00.000Z",
  "attrs": {
    "scale": "80 stars; 3 forks at check. Python package n8loom 0.2.0. Example ramify n=8 then n=2 reflection on Llama-3.2-3B-Instruct-4bit.",
    "purpose": "Library for tree-of-thought LLM inference via fragment KV-cache looms",
    "time_period": "GitHub created 2025-02-04; pushed 2025-02-11; updated 2026-05-20. Discord posted 2025-02-06."
  },
  "enrichment": {
    "github": {
      "forks": 3,
      "stars": 80,
      "pushed": "2025-02-11",
      "created": "2025-02-04",
      "license": "CC0-1.0",
      "archived": false,
      "language": "Python",
      "full_name": "N8python/n8loom",
      "fetched_at": "2026-10-03T14:33:37.014Z"
    }
  },
  "enriched_at": "2026-10-03T14:33:37.064Z",
  "license_class": "permissive",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "614",
    "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:37.064Z",
  "page": "https://papers.projxon.ai/entries/595",
  "markdown": "https://papers.projxon.ai/entries/595.md",
  "api": "https://papers.projxon.ai/api/entries/595",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 450,
      "kind": "paper",
      "title": "Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse",
      "summary": "Shows within-family matched-KV pairs (shared KV head count and head dim) have substantial linear structure: on Qwen3 14B->32B one source layer explains 56%/32% of target key/value variance, 79%/65% with multiple layers. A closed-form per-head ridge mapper with top-k cross-layer source selection and RoPE-stripped content-space keys retains 73-98% of standalone-prefill accuracy on four of six pairs (Qwen3, Llama 3.1, Ministral 3) and is 2.7-25x faster than re-prefill; two Ministral pairs collapse and a nonlinear MLP recovers up to +37 pp HellaSwag. Attention-output cosine predicts retention better than reconstruction R^2.",
      "url": "https://arxiv.org/abs/2608.03893",
      "authors": [
        "Taekyung Heo",
        "Rasoul Shafipour",
        "Ritchie Zhao",
        "Maximilian Golub",
        "Mohammad Mahdi Kamani",
        "Ritika Borkar",
        "Makesh Tarun Chandran",
        "Pantea Zardoshti",
        "Bita Darvish Rouhani"
      ],
      "tags": [
        "kv-cache",
        "prefill",
        "ridge-regression",
        "rope",
        "serving",
        "qwen3",
        "llama",
        "ministral",
        "nvidia"
      ],
      "venue": "arXiv / NVIDIA",
      "source": "arxiv",
      "license": "CC BY 4.0",
      "published_year": 2026,
      "added_at": "2026-08-14T16:24:56.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 9,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/450",
      "markdown": "https://papers.projxon.ai/entries/450.md",
      "api": "https://papers.projxon.ai/api/entries/450"
    },
    {
      "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": 1066,
      "kind": "idea",
      "title": "KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)",
      "summary": "Single long X note_tweet + diagram (2026-09-25) by @techNmak explaining that during inference model weights are mostly fixed while per-request KV state grows with every cached token across attention layers. Frames context length and concurrency as GPU-memory costs; notes GQA/MQA (fewer KV heads), KV quantization (fewer bytes), and sliding-window attention (bounded history) as levers; stresses caching avoids recomputing old K/V projections but full attention still reads the cache each decode step. Diagram gives KV bytes = 2×B×T×L×H_kv×d_k×s (example: 8K tokens ≈ 1 GiB at L=32, H_kv=8, d_k=128, FP16). Pure original explainer — no primary paper; one reply promo-linked github.com/kvcachestore/kvcdn-cli.",
      "url": "https://x.com/techNmak/status/2103488645642793165",
      "authors": [
        "Tech with Mak (@techNmak)"
      ],
      "tags": [
        "kv-cache",
        "llm-serving",
        "gpu-memory",
        "gqa",
        "mqa",
        "kv-quantization",
        "sliding-window",
        "attention",
        "prefill-decode",
        "technmak",
        "x-thread",
        "idea"
      ],
      "venue": "X / Tech with Mak",
      "source": "x",
      "license": "n/a (X post / educational graphic)",
      "published_year": 2026,
      "added_at": "2026-09-26T12:56: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/1066",
      "markdown": "https://papers.projxon.ai/entries/1066.md",
      "api": "https://papers.projxon.ai/api/entries/1066"
    },
    {
      "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": 468,
      "kind": "paper",
      "title": "Full-Pipeline Inference Optimization for MiMo-V2.5 Series: Pushing Hybrid SWA Efficiency to the Limit",
      "summary": "Engineering report for MiMo-V2.5 / V2.5-Pro Hybrid Sliding Window Attention (example: 70 layers, 10 full + 60 SWA, W=128; ~7× less attention FLOPs and KV vs full attention) plus sparse MoE and vision/audio/video encoders. Dual-pool KV with strict O(W) SWA storage, layerwise prefetch, SWA-aware prefix cache trees, GCache L3 (RDMA, co-deployed on GPU nodes), KVCache-affinity router (~+25% L2 hit, ~+30% input throughput), length bucketing, halved EP after SWA storage (~40% e2e), MTP in prefill (2.3× on first 128 decode tokens), GPU image preprocess and parallel video decode (1-hour video 156s→23s). Reports ~93% production KV hit rate. Positions as the first large-scale serving system covering Hybrid SWA+MoE+multimodal. Not a dataset.",
      "url": "https://arxiv.org/abs/2607.13095",
      "authors": [
        "Anqi Liu",
        "Aoxin Ma",
        "Bo Chen",
        "Bo Yang",
        "Chen Wang",
        "Chen Zhang",
        "Chengda Tang",
        "Chengwei Wang",
        "Chiheng Lou",
        "Depeng Yan",
        "Fuli Luo",
        "Gang Wang",
        "Hailin Zhang",
        "Jiale Sun",
        "Kang Zhou",
        "Rui Huang",
        "Shaohui Liu",
        "Shen Huang",
        "Shijie Cao",
        "Shuaishuai Fan",
        "Tianling Zhou",
        "Xiangwei Deng",
        "Xueyang Xie",
        "Xuli Wang",
        "Yingchun Lai",
        "Yu Yang",
        "Yuan Zhang",
        "Zhen Tang",
        "Zhonghua Deng",
        "Zihan Jiang"
      ],
      "tags": [
        "mimo",
        "hybrid-swa",
        "kv-cache",
        "sglang",
        "moe",
        "serving",
        "xiaomi",
        "multimodal",
        "gcache"
      ],
      "venue": "arXiv / Xiaomi MiMo",
      "source": "arxiv",
      "license": "arXiv perpetual non-exclusive license 1.0 (paper); MIT (XiaomiMiMo/MiMo-V2.5 weights)",
      "published_year": 2026,
      "added_at": "2026-08-14T16:40:00.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 2,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/468",
      "markdown": "https://papers.projxon.ai/entries/468.md",
      "api": "https://papers.projxon.ai/api/entries/468"
    },
    {
      "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.",
      "url": "https://github.com/spiritbuun/buun-llama-cpp",
      "authors": [
        "buun"
      ],
      "tags": [
        "vbr",
        "kv-cache",
        "llama-cpp",
        "turboquant",
        "quantization",
        "inference",
        "x"
      ],
      "venue": "GitHub",
      "source": "web",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-08-14T19:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 881,
      "page": "https://papers.projxon.ai/entries/631",
      "markdown": "https://papers.projxon.ai/entries/631.md",
      "api": "https://papers.projxon.ai/api/entries/631"
    }
  ]
}
