# n8loom

- **ID:** 595
- **Kind:** code
- **URL:** https://github.com/N8python/n8loom
- **Authors:** N8python
- **Venue:** N8python (GitHub)
- **Published:** 2025
- **Source:** github
- **Access:** free
- **License:** CC0-1.0
- **License family:** Permissive (auto-classified)
- **Tags:** n8loom, tree-of-thought, kv-cache, mlx, llama, loom, heddle
- **Topics:** tree-of-thought inference, KV cache, LLM serving
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/595

## 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.

## Attributes

- **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.

## From the source (fetched 2026-10-03)

- **Repository:** N8python/n8loom (GitHub)
- **Created:** Feb 4, 2025 (GitHub)
- **Last push:** Feb 11, 2025 (GitHub)
- **Stars:** 80 (GitHub)
- **Forks:** 3 (GitHub)
- **Main language:** Python (GitHub)

## 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

- [Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse](https://papers.projxon.ai/entries/450) (paper, #450)
- [Shard: getting to 10x KV cache compression](https://papers.projxon.ai/entries/621) (other, #621)
- [KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)](https://papers.projxon.ai/entries/1066) (idea, #1066)
- [Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)](https://papers.projxon.ai/entries/740) (thread, #740)
- [Full-Pipeline Inference Optimization for MiMo-V2.5 Series: Pushing Hybrid SWA Efficiency to the Limit](https://papers.projxon.ai/entries/468) (paper, #468)
- [VBR: Variable Bit-Rate KV Cache for llama.cpp](https://papers.projxon.ai/entries/631) (code, #631)
