Instructions to use textilelabs/Loom-Crucible-4.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textilelabs/Loom-Crucible-4.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="textilelabs/Loom-Crucible-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-Crucible-4.5") model = AutoModelForCausalLM.from_pretrained("textilelabs/Loom-Crucible-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-Crucible-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-Crucible-4.5:Q4_K_M # Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Crucible-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-Crucible-4.5:Q4_K_M # Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Crucible-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-Crucible-4.5:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf textilelabs/Loom-Crucible-4.5:Q4_K_M
Use Docker
docker model run hf.co/textilelabs/Loom-Crucible-4.5:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use textilelabs/Loom-Crucible-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-Crucible-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-Crucible-4.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/textilelabs/Loom-Crucible-4.5:Q4_K_M
- SGLang
How to use textilelabs/Loom-Crucible-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-Crucible-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-Crucible-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-Crucible-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-Crucible-4.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use textilelabs/Loom-Crucible-4.5 with Ollama:
ollama run hf.co/textilelabs/Loom-Crucible-4.5:Q4_K_M
- Unsloth Desktop
- Pi
How to use textilelabs/Loom-Crucible-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-Crucible-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-Crucible-4.5:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use textilelabs/Loom-Crucible-4.5 with Docker Model Runner:
docker model run hf.co/textilelabs/Loom-Crucible-4.5:Q4_K_M
- Lemonade
How to use textilelabs/Loom-Crucible-4.5 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull textilelabs/Loom-Crucible-4.5:Q4_K_M
Run and chat with the model
lemonade run user.Loom-Crucible-4.5-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use textilelabs/Loom-Crucible-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-Crucible-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-Crucible-4.5:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use textilelabs/Loom-Crucible-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-Crucible-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-Crucible-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 Crucible 4.5
- What it can do that no Loom could before
- New in 4.5, side by side with 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
- What it can do that no Loom could before
Loom Crucible 4.5
130M parameters ยท 32 layers ยท 2K context ยท runs on laptops and phones ยท Textile Labs
The first model of the Loom 4.5 family, and the first Loom you can hand ordinary jobs to: it works sums out with a calculator, remembers what you told it, writes the email you asked for, reads what you paste and shows you the sentence it used, and picks a tool from your app's menu. Trained from scratch on 2 ร T4 โ randomly initialised weights, nothing fine-tuned from anyone else's checkpoint. Runs offline on a laptop or phone (81 MB).
What it can do that no Loom could before
These are real replies from the released model (Q8 file, through harness.py):
| you | Loom Crucible 4.5 |
|---|---|
| what's 15% of 1150? (tools on) | <tool>calc 15 / 100 * 1150</tool> โ harness โ 172.5. (sure) |
| my name is Tavi โฆ what is my name? | You said your name is Tavi. |
| write a short email telling the team the meeting moved to Friday | Hi all, Just letting you know the meeting has moved to Friday. Everything else stays the same. Thanks |
| (a paragraph about a windmill) Who built it? | <think>The Ardley windmill was built in 1832 by Thomas Fenn.</think> The text gives Thomas Fenn. (sure) |
| my cousin is called Wren โฆ what's my cousin's name? | You said Wren. (sure) |
| where is England? (tools on) | <lookup>england</lookup> โ searches the subject, not the question |
| what's my dog called? | I don't know that about you. โ it never invents your personal details |
| what can you do? | I can answer questions about text you give me, look things up when tools are on, do sums with the calculator, write short emails and messages, and remember what you tell me in this chat. I'm small, so I do get things wrong sometimes. |
What it's for
- A private offline helper โ short emails, messages, reminders and replies, on your own device, nothing sent anywhere.
- Sums you can trust โ it hands the arithmetic to a real calculator instead of guessing (40/40 on our held-out sums).
- Answers from text you give it โ paste a note, an article or a page; it quotes the sentence it used, so you can check.
- A tool picker for your app โ give it your list of actions;
pick_tool()returns the one that fits. - A small search assistant โ with the harness it looks things up on Wikipedia and says where the answer came from.
- The base of a family โ trained with exits at layers 8, 12, 16 and 24, so six smaller 4.5 models come from this one run.
New in 4.5, side by side with Weave 4
Same prompts, same settings, both models.
| Loom Weave 4 | Loom Crucible 4.5 | |
|---|---|---|
| size | 55.6M | 130M (32 layers ร 512) |
| everyday checks from real use (12 conversations) | 5/12 | 12/12 |
| does sums through a calculator | โ | 40/40 |
| remembers what you said earlier in the chat | 0/2 | 2/2 |
| writes a short email or message when asked | 0/2 ("I can't reach your phone or accounts") | 2/2 |
| "what is 2+2" (tools off ร2, tools on ร1) | 0/3 ("That's 44") | 3/3 |
| reading natural text (60 held-out questions) | 5/60 | 11/60 |
| uses what you told it over what it "knows" | 2/30 | 19/30 |
| quotes the sentence it used before answering | no | yes |
| picks a tool from an app's menu | โ | 25/45 via the harness |
| honesty rows (never fakes a lookup, admits what it can't know, no tag leaks, stops by itself) | all perfect | all perfect |
Measured
Every test prompt is scrubbed from the training data. Repeat penalty 1.0. Rows marked โ are run through the transformers weights; the battery is also run on the Q4 phone file.
The acceptance battery โ our long-running quiz of Loom habits. Weave 4 still leads it by four points (127 vs 123): it is better at follow-up questions about a search result; Crucible 4.5 is the one that can do the jobs above. Row by row:
| row | Loom Weave 4 | Loom Crucible 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 | 5/5 |
| E ยท follow-up answered from the same result | 4/5 | 2/5 |
| F ยท says it looked, after a lookup | 5/5 | 4/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 | 18/20 |
| total | 127/133 | 123/133 (Q4 phone file: 123/133 too) |
Live search, end to end โ 20 held-out everyday questions, live Wikipedia, the model writing its own query: 9/20 answered right (Weave 4: 10/20). It searched every time and wrote its own query (only 2 of 20 pasted the question); the right text came back 12 times and it read it correctly 9 times.
Held-out skill tests โ (frozen before training):
| Loom Crucible 4.5 | |
|---|---|
| calculator through the harness (40 mixed sums, percentages, division) | 40/40 |
| reading a short text and answering (2 / 5 / 12 / 45 sentences) | 68% / 35% / 45% / 40% |
| reading natural text (60 questions, incl. 12 where the answer isn't there) | 11/60 (Weave 4: 5/60) |
| uses what you told it over what it "knows" | 19/30 (Weave 4: 2/30) |
| picks the right tool from a menu, via the harness's line matching | 25/45 |
| replies that stop by themselves | 75% |
Every Loom text model
| model | params | battery /133 | live search (held-out) | reads real prose | runs in phone apps |
|---|---|---|---|---|---|
| Loom Spark 2 | 19.9M | ~97 | 2/20 | no | no |
| Loom Tapestry 2 | 22.8M | 107 | โ | curated only | no |
| Loom Tapestry 3 Flash | 7.18M | 112 | 3/20 | curated only | no |
| Loom Spark 3 Flash | 7.18M | 119 | 5/20 | curated only | no |
| Loom Spark 3 | 12.2M | 120 | 7/20 | curated only | no |
| Loom Spark 3.2 | 22.8M | 122โ | 7/20 | curated only | no |
| Loom Weave 3 | 31.5M | 120 | 6/20 | yes | 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 |
โ scored on a battery with every test prompt scrubbed from training. Earlier rows are each model's release score.
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 Weave 4 (127) and Crucible Preview (125). It lost points on follow-up questions about a search result (2/5) and on saying a result doesn't hold the answer (1/5). We released it because it is more useful in real conversations, not because it wins that test.
- Reading is still the weak spot. On natural text it answers 11 of 60 correctly. It quotes a real sentence before answering, but often the wrong one, and it sometimes answers when the text doesn't say. Check the quote it gives.
- "(sure)" is not a guarantee. Only 23 of its 75 "(sure)" reading answers were right.
- Tool menus: don't trust the tool name it writes. It usually finds the right line but copies the name wrongly.
Use
pick_tool()in the harness, which matches the line it quoted (right tool 25/45) instead of the name it writes (17/45). Still check the choice before running anything that matters. - Long writing drifts. Emails and messages are short and on point; asked for something longer, it can repeat
itself. A quarter of longer replies don't stop by themselves โ keep
num_predictat 256. - Rules from examples are weak (4 of 40 new combinations). It can follow a rule you state; it rarely infers one.
- Live search: about half. 9 of 20 everyday questions answered right end to end; the harness's
--showprints what it read. - No world knowledge to speak of. With tools off it will decline 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-crucible-4.5-q4_k_m.gguf (81 MB) or loom-crucible-4.5-q8_0.gguf (139 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
Tool menus from your own code:
from harness import pick_tool
name, raw = pick_tool("Put the heating up to 22", {
"set_heating(temperature)": "set the heating to a temperature in degrees C",
"lock_door()": "lock the front door"})
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-Crucible-4.5 "who are you"
llama-cli -m loom-crucible-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-Crucible-4.5")
model = AutoModelForCausalLM.from_pretrained("textilelabs/Loom-Crucible-4.5").eval()
prompt = "<tools:off>\n<user>\nwho are you\n<|eot|>\n<loom>\n"
ids = tok(prompt, return_tensors="pt", add_special_tokens=False).input_ids
out = model.generate(ids, max_new_tokens=160, do_sample=False, eos_token_id=0, pad_token_id=1)
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: 32 layers ร 512, FFN 2,048, GQA 8 heads / 2 KV, RoPE, tied embeddings |
| parameters | 130,056,704 |
| vocabulary | 16,384 BPE, single digits |
| run 1 | 8.2 h from random init, 445M tokens: reading, skills, replies, Loom behaviour and general text at 1K, then 2K. An extra loss at layers 8/12/16/24 so smaller models can be cut out of it |
| run 2 | 1.5 h on its own weights, 86M tokens: follow-ups, tool menus, memory, short emails, sums, searching for the subject โ each taught with its contrast, replayed with the run-1 data |
| released weights | a 30/70 average of run 1's best save and run 2 โ keeps run 2's new skills and most of run 1's reading |
| 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
loom-crucible-4.5-f16.gguf full precision GGUF (261 MB)
loom-crucible-4.5-q8_0.gguf / -q4_k_m.gguf phone builds (139 / 81 MB)
template / params / Modelfile Ollama
harness.py search + calculator + tool menus + chat memory โ stdlib only
banner.jpg / logo.jpg / launch.gif images
ATTRIBUTION.md required credits for the training data
License
Model: MIT. Training data keeps its original licences โ see ATTRIBUTION.md.
- Downloads last month
- 139