Code
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.
- Venue
- N8python (GitHub)
- Source
- github
- Access
- free
- License
- CC0-1.0
- License family
- Permissive
- Purpose
- Library for tree-of-thought LLM inference via fragment KV-cache looms
- 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.
- Time period
- GitHub created 2025-02-04; pushed 2025-02-11; updated 2026-05-20. Discord posted 2025-02-06.
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Repository
- N8python/n8loom
- Created
- Feb 4, 2025
- Last push
- Feb 11, 2025
- Stars
- 80
- Forks
- 3
- Main language
- Python
Tags
Topics
tree-of-thought inference, KV cache, LLM serving
Research 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.
Similar entries
- Paper Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse
- Other Shard: getting to 10x KV cache compression
- Idea KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)
- Thread Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)
- Paper Full-Pipeline Inference Optimization for MiMo-V2.5 Series: Pushing Hybrid SWA Efficiency to the Limit
- Code VBR: Variable Bit-Rate KV Cache for llama.cpp