Instructions to use textilelabs/Loom-Weave-4.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textilelabs/Loom-Weave-4.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="textilelabs/Loom-Weave-4.5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("textilelabs/Loom-Weave-4.5") model = AutoModelForCausalLM.from_pretrained("textilelabs/Loom-Weave-4.5", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use textilelabs/Loom-Weave-4.5 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf textilelabs/Loom-Weave-4.5:Q4_K_M # Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Weave-4.5:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf textilelabs/Loom-Weave-4.5:Q4_K_M # Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Weave-4.5:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf textilelabs/Loom-Weave-4.5:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf textilelabs/Loom-Weave-4.5:Q4_K_M
Use Docker
docker model run hf.co/textilelabs/Loom-Weave-4.5:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use textilelabs/Loom-Weave-4.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "textilelabs/Loom-Weave-4.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "textilelabs/Loom-Weave-4.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/textilelabs/Loom-Weave-4.5:Q4_K_M
- SGLang
How to use textilelabs/Loom-Weave-4.5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "textilelabs/Loom-Weave-4.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "textilelabs/Loom-Weave-4.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "textilelabs/Loom-Weave-4.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "textilelabs/Loom-Weave-4.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use textilelabs/Loom-Weave-4.5 with Ollama:
ollama run hf.co/textilelabs/Loom-Weave-4.5:Q4_K_M
- Unsloth Desktop
- Pi
How to use textilelabs/Loom-Weave-4.5 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf textilelabs/Loom-Weave-4.5:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "textilelabs/Loom-Weave-4.5:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use textilelabs/Loom-Weave-4.5 with Docker Model Runner:
docker model run hf.co/textilelabs/Loom-Weave-4.5:Q4_K_M
- Lemonade
How to use textilelabs/Loom-Weave-4.5 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull textilelabs/Loom-Weave-4.5:Q4_K_M
Run and chat with the model
lemonade run user.Loom-Weave-4.5-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use textilelabs/Loom-Weave-4.5 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf textilelabs/Loom-Weave-4.5:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default textilelabs/Loom-Weave-4.5:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use textilelabs/Loom-Weave-4.5 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf textilelabs/Loom-Weave-4.5:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "textilelabs/Loom-Weave-4.5:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Loom Weave 4.5
- Real replies
- Side by side with Loom Weave 4
- Measured
- Every Loom text model
- Read this before you use it
- Usage โ phone and desktop chat apps (PocketPal, LM Studio, Jan)
- Usage โ the harness (search, calculator, tool menus, chat memory)
- Usage โ Ollama / llama.cpp
- Usage โ transformers
- How it was built
- Files
- License
- Real replies
Loom Weave 4.5
69M parameters ยท 16 layers ยท 2K context ยท runs on laptops and phones ยท Textile Labs
Loom Weave 4.5 is part of the Loom 4.5 family. It is the first 16 layers of Crucible 4.5, polished on its own so it knows its own name and keeps the parent's everyday skills. It works sums out with a calculator, writes the short email you asked for, reads what you paste and shows the sentence it used, and knows what it can't know about you. Trained from scratch on 2 ร T4 (randomly initialised weights, nothing fine-tuned from anyone else's checkpoint). Runs offline on a laptop or phone (44 MB).
The Loom 4.5 family, all from one parent run and released together:
| model | params | layers | phone file (Q4) |
|---|---|---|---|
| Loom Crucible 4.5 | 130M | 32 | 81 MB |
| Loom Tapestry 4.5 | 100M | 24 | 62 MB |
| Loom Weave 4.5 | 69M | 16 | 44 MB |
| Loom Spark 4.5 XL | 54M | 12 | 35 MB |
| Loom Spark 4.5 | 39M | 8 | 26 MB |
Real replies
From the released weights, greedy, repeat penalty 1.0:
| you | Loom Weave 4.5 |
|---|---|
| my name is Reid โฆ what is my name? (tools on) | You said your name is reid. |
| what is 2+2 (tools on) | <tool>calc 2 + 2</tool> |
| write a short email telling the team the meeting moved to Friday | Hi all, Just letting you know the meeting has moved to Friday. Please update your calendars. Best wishes |
| where is England? (tools on) | <lookup>england</lookup> |
| what's my dog called? | I can't know that unless you tell me. |
| Who R u | I'm Loom Weave 4.5, a small model by Textile Labs. |
Side by side with Loom Weave 4
Same prompts, same scripts, same settings.
| Loom Weave 4 | Loom Weave 4.5 | |
|---|---|---|
| everyday checks from real use (12 conversations) | 5/12 | 12/12 |
| does sums through a calculator (40 held-out) | โ | 39/40 |
| acceptance battery | 127/133 | 123/133 (Q4 phone file: 123/133) |
| live search, 20 held-out everyday questions | 10/20 | 6/20 |
Measured
Every test prompt is scrubbed from the training data. Repeat penalty 1.0.
The acceptance battery, row by row:
| row | Loom Weave 4 | Loom Weave 4.5 |
|---|---|---|
| A ยท says its own name | 12/12 | 12/12 |
| B ยท its own name under rough typing | 12/12 | 12/12 |
| C ยท 5-turn conversation stays on thread | 5/5 | 5/5 |
| D ยท answers from a search result | 5/5 | 4/5 |
| E ยท follow-up answered from the same result | 4/5 | 1/5 |
| F ยท says it looked, after a lookup | 5/5 | 5/5 |
| G ยท never claims a lookup it didn't make | 16/16 | 16/16 |
| H ยท admits what it can't know about you | 8/8 | 8/8 |
| I ยท says when a result doesn't contain the answer | 1/5 | 1/5 |
| J ยท never leaks a search tag with tools off | 28/28 | 28/28 |
| K ยท stops on its own | 12/12 | 12/12 |
| L ยท searches when it should, not for your private things | 19/20 | 19/20 |
| total | 127/133 | 123/133 |
Held-out skill tests (frozen before training, same as Crucible 4.5's):
| Loom Weave 4.5 | Crucible 4.5 | |
|---|---|---|
| calculator through the harness (40 sums, percentages, division) | 39/40 | 40/40 |
| reading a short text and answering (2 / 5 / 12 / 45 sentences) | 58% / 42% / 35% / 20% | 68% / 35% / 45% / 40% |
| reading natural text (60 questions, incl. 12 where the answer isn't there) | 12/60 | 11/60 |
| uses what you told it over what it "knows" | 18/30 | 19/30 |
Every Loom text model
| model | params | battery /133 | live search (held-out) | reads real prose | runs in phone apps |
|---|---|---|---|---|---|
| Loom Spark 3.2 | 22.8M | 122โ | 7/20 | curated only | no |
| Loom Tapestry 3 | 69.2M | 123 | 12/20 | yes + multi-hop | no |
| Loom Crucible Preview | 155.0M | 125โ | 10/20 | yes | no |
| Loom Weave 4 | 55.6M | 127โ | 10/20 | yes | yes |
| Loom Crucible 4.5 | 130M | 123โ | 9/20 | yes, quotes its source | yes |
| Loom Weave 4.5 | 69M | 123โ | 6/20 | yes, quotes its source | yes |
โ scored on a battery with every test prompt scrubbed from training. Earlier rows are each model's release score. Never compare scores from different command lines.
Read this before you use it
Every point here was measured.
- It is not the top scorer on our old quiz. 123/133 is below Loom Weave 4 (127): it lost points on answers from a search result; follow-up answered from the same result. We release it because it is more useful in real conversations (see the side-by-side table above).
- Reading is still the weak spot. On natural text it answers 12/60 correctly. It quotes a sentence before answering, but often the wrong one. Check the quote.
- Live search is weaker than Loom Weave 4's: 6/20 everyday questions answered right end to end (Loom Weave 4: 10/20). It searches every time and usually finds the right text, then often picks the wrong part of it. The harness's
--showprints what it read. - Tool menus: use
pick_tool()in the harness, which matches the line it quoted, not the name it writes. - No world knowledge to speak of. With tools off it declines most fact questions, by design. Turn tools on.
- Calculator, lookups and menus need the harness: the model writes the tag and stops.
Usage โ phone and desktop chat apps (PocketPal, LM Studio, Jan)
Download loom-weave-4.5-q4_k_m.gguf (44 MB) or loom-weave-4.5-q8_0.gguf (74 MB) and load it. The chat template and the stop token are inside the file. Set repeat penalty 1.0.
Usage โ the harness (search, calculator, tool menus, chat memory)
python3 harness.py "whats the capital of peru"
python3 harness.py "what's 15% of 1150" # the calculator
python3 harness.py --show "who wrote hamlet" # see what it searched and read
python3 harness.py # chat: it remembers the conversation; /new to start over
Stdlib only; Wikipedia needs no key. Never feed a failed lookup back as a result: the model answers from the error text.
Usage โ Ollama / llama.cpp
ollama run hf.co/textilelabs/Loom-Weave-4.5 "who are you"
llama-cli -m loom-weave-4.5-q8_0.gguf --jinja -cnv # uses the template in the GGUF
template (whole conversations, so it remembers earlier turns) and params are read automatically by Ollama. Do not add a repetition penalty.
Usage โ transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("textilelabs/Loom-Weave-4.5")
model = AutoModelForCausalLM.from_pretrained("textilelabs/Loom-Weave-4.5").eval()
prompt = tok.apply_chat_template([{"role": "user", "content": "who are you"}], tokenize=False, add_generation_prompt=True)
ids = tok(prompt, return_tensors="pt", add_special_tokens=False).input_ids
out = model.generate(ids, max_new_tokens=160, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Raw format: <tools:off>\n<user>\n{message}\n<|eot|>\n<loom>\n (or <tools:on> to allow search and the calculator).
How it was built
| architecture | Llama: 16 layers ร 512, FFN 2,048, GQA 8 heads / 2 KV, RoPE, tied embeddings |
| parameters | 69,222,912 |
| vocabulary | 16,384 BPE, single digits (same tokenizer as every Loom 4.5) |
| parent | Loom Crucible 4.5, trained from scratch with extra exits at layers 8/12/16/24 so its first layers already work as a smaller model |
| cut | the first 16 layers of the released Crucible 4.5, unchanged |
| polish | ~40โ60 min on 2 ร T4, ~55M tokens of the parent's own data, with the frozen parent as teacher (KL) and its own name taught; learning rate falling from the start |
| optimiser | Muon on hidden matrices, AdamW on embeddings and norms; per-conversation attention masking |
| hardware | Kaggle, 2 ร NVIDIA T4 |
Files
model.safetensors / config.json the model (transformers)
tokenizer.json / tokenizer_config.json tokenizer + chat template
loom-weave-4.5-f16.gguf full precision GGUF (139 MB)
loom-weave-4.5-q8_0.gguf / -q4_k_m.gguf phone builds (74 MB / 44 MB)
template / params / Modelfile Ollama
harness.py search + calculator + tool menus + chat memory, stdlib only
banner.jpg / logo.jpg / launch.gif images (shared by the whole Loom 4.5 family)
ATTRIBUTION.md required credits for the training data
License
Model: MIT. Training data keeps its original licences, see ATTRIBUTION.md.
- Downloads last month
- -
Model tree for textilelabs/Loom-Weave-4.5
Base model
textilelabs/Loom-Crucible-4.5