--- title: Loom(s) description: Interfaces for branching text-completion with base models. image: https://media.fjpaz.net/projects/loom/python-cli-lineage.4eec2189.webp canonical: https://fjpaz.net/loom markdown: https://fjpaz.net/loom.md section: projects year: 2024–26 tags: - LLMs --- # Loom(s) Interfaces for branching text-completion with [base models](https://www.tumblr.com/nostalgebraist/785766737747574784/the-void). Year: 2024–26 · Tags: LLMs ## [Python CLI](https://fjpaz.net/loom#python-cli) Python library + CLI, with a small TUI for tree navigation. ### [python-cli-clip](https://fjpaz.net/loom#python-cli-clip) · video ![Writing in nvim and zed beside loom in a terminal](https://media.fjpaz.net/projects/loom/python-cli.poster.743350cb.webp) Video: [python-cli.5e70f3d1.webm](https://media.fjpaz.net/projects/loom/python-cli.5e70f3d1.webm) · 1281×818 Loom-assisted writing. ### [python-cli-renders](https://fjpaz.net/loom#python-cli-renders) · row of 2 #### [python-cli-lineage](https://fjpaz.net/loom#python-cli-lineage) · image ![Two tmux panes. Left, loom show --lineage prints five nodes as panels. Right, three combinations of temperature, each with two outputs](https://media.fjpaz.net/projects/loom/python-cli-lineage.4eec2189.webp) Regions: 1. [loom show --lineage](https://fjpaz.net/loom?region=command#python-cli-lineage) · top left Print a node's whole lineage, root first, one panel per node. 2. [Split nodes](https://fjpaz.net/loom?region=splits#python-cli-lineage) · left Short nodes left by splitting a text at chosen points. 3. [Outputs, three combinations](https://fjpaz.net/loom?region=sweep#python-cli-lineage) · right The same input run at temperature 1.2, 1.5 and 1.8 on Llama 3.1 405B, two completions each. 4. [Parameters per combination](https://fjpaz.net/loom?region=params#python-cli-lineage) · top #### [python-cli-sweep](https://fjpaz.net/loom#python-cli-sweep) · image ![loom inference with a temperature range and a min_p list, expanded into a table of 14 combinations, then the first output](https://media.fjpaz.net/projects/loom/python-cli-sweep.a98362f1.webp) Regions: 1. [Ranges on the command line](https://fjpaz.net/loom?region=command#python-cli-sweep) · top `--temperature "0.8~2*0.2" --min-p "0.1,0.4"`: a range and a list. 2. [Combinations](https://fjpaz.net/loom?region=grid#python-cli-sweep) · left The loom expands them into 14 combinations and runs each in turn. 3. [First output](https://fjpaz.net/loom?region=output#python-cli-sweep) · bottom Combination 1 of 14, with its parameters above it. Two renders from August 2024. Left: a node's lineage, and one input run at three temperatures. Right: a temperature range and a min_p list expanded into fourteen runs. - [jmpaz/loom](https://github.com/jmpaz/loom) ## [Loom Web](https://fjpaz.net/loom#pwa) React app exploring various desktop + mobile patterns for base model interaction. ### [pwa-context](https://fjpaz.net/loom#pwa-context) · image ![Loom Web's tree panel with nested nodes and breadcrumbs, beside a context panel showing the focused node's text from the root](https://media.fjpaz.net/projects/loom/pwa-context.b9b997df.webp) Regions: 1. [Breadcrumbs](https://fjpaz.net/loom?region=breadcrumbs#pwa-context) · left Traversable path to the focused node. 2. [Tree](https://fjpaz.net/loom?region=tree#pwa-context) · bottom left Nested nodes, each with its id; the focused node is highlighted. 3. [Context](https://fjpaz.net/loom?region=context#pwa-context) · top right The focused node's full text from the root, with each node's span marked. 4. [Children](https://fjpaz.net/loom?region=children#pwa-context) · right Continuations of the focused node. ### [pwa-details](https://fjpaz.net/loom#pwa-details) · row of 2 #### [pwa-split](https://fjpaz.net/loom#pwa-split) · image ![A dialog: Split → run inference? Split this node at the cursor, then run inference from the original node](https://media.fjpaz.net/projects/loom/pwa-split.aabd32d0.webp) #### [pwa-mobile-context](https://fjpaz.net/loom#pwa-mobile-context) · image ![On a phone, the context panel as a drawer over the tree, with Context and Inference tabs and the node's children](https://media.fjpaz.net/projects/loom/pwa-mobile-context.889dce9e.webp) Split at the cursor, then run from the original node. On a phone, the context panel becomes a drawer that also moves through the tree. ## [loom-rs](https://fjpaz.net/loom#loom-rs) Rust CLI / rewrite (WIP) ### [loom-rs-lens](https://fjpaz.net/loom#loom-rs-lens) · image ![loom show draws a branch of a base-model tree, then one node printed with a bar under each token for its entropy](https://media.fjpaz.net/projects/loom/loom-rs-lens-light.f8d31b63.webp) Regions: 1. [loom show](https://fjpaz.net/loom?region=tree#loom-rs-lens) · top A branch of a 33-node tree. 2. [Entropy lens](https://fjpaz.net/loom?region=lens#loom-rs-lens) · bottom 3. [Legend](https://fjpaz.net/loom?region=legend#loom-rs-lens) · bottom left ### Related - [Receipt Loom](https://fjpaz.net/receipt-loom) - [loom](https://fjpaz.net/on-loom) Previous: [Receipt Loom](https://fjpaz.net/receipt-loom) · Next: [Annotate](https://fjpaz.net/annotate)