Instructions to use textilelabs/Loom-Swift-Micro-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textilelabs/Loom-Swift-Micro-3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="textilelabs/Loom-Swift-Micro-3") 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-Swift-Micro-3") model = AutoModelForCausalLM.from_pretrained("textilelabs/Loom-Swift-Micro-3", 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-Swift-Micro-3 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-Swift-Micro-3:F16 # Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Swift-Micro-3:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf textilelabs/Loom-Swift-Micro-3:F16 # Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Swift-Micro-3:F16
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-Swift-Micro-3:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf textilelabs/Loom-Swift-Micro-3:F16
Use Docker
docker model run hf.co/textilelabs/Loom-Swift-Micro-3:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use textilelabs/Loom-Swift-Micro-3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "textilelabs/Loom-Swift-Micro-3" # 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-Swift-Micro-3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/textilelabs/Loom-Swift-Micro-3:F16
- SGLang
How to use textilelabs/Loom-Swift-Micro-3 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-Swift-Micro-3" \ --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-Swift-Micro-3", "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-Swift-Micro-3" \ --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-Swift-Micro-3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use textilelabs/Loom-Swift-Micro-3 with Ollama:
ollama run hf.co/textilelabs/Loom-Swift-Micro-3:F16
- Unsloth Desktop
- Pi
How to use textilelabs/Loom-Swift-Micro-3 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-Swift-Micro-3:F16
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-Swift-Micro-3:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use textilelabs/Loom-Swift-Micro-3 with Docker Model Runner:
docker model run hf.co/textilelabs/Loom-Swift-Micro-3:F16
- Lemonade
How to use textilelabs/Loom-Swift-Micro-3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull textilelabs/Loom-Swift-Micro-3:F16
Run and chat with the model
lemonade run user.Loom-Swift-Micro-3-F16
List all available models
lemonade list
- Hermes Agent
How to use textilelabs/Loom-Swift-Micro-3 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-Swift-Micro-3:F16
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-Swift-Micro-3:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use textilelabs/Loom-Swift-Micro-3 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-Swift-Micro-3:F16
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-Swift-Micro-3:F16" \ --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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf textilelabs/Loom-Swift-Micro-3:F16# Run inference directly in the terminal:
llama cli -hf textilelabs/Loom-Swift-Micro-3:F16Build 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-Swift-Micro-3:F16# Run inference directly in the terminal:
./build/bin/llama cli -hf textilelabs/Loom-Swift-Micro-3:F16Use Docker
docker model run hf.co/textilelabs/Loom-Swift-Micro-3:F16- Loom Swift Micro 3
- What changed from Swift Micro 2
- Measured against Swift Micro 2
- 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, date)
- Usage β Ollama / llama.cpp
- Usage β transformers (4.50 or newer)
- How it was built
- Files
- License
- What changed from Swift Micro 2
Loom Swift Micro 3
1,172,832 parameters Β· 12 layers Γ 96d Β· 2K context Β· runs on phones Β· Textile Labs
Loom Swift Micro 3 is the smallest Loom, now a better talker. It remembers what you told it earlier in the chat, answers follow-up questions, says where an answer came from, and admits what it can't know, while still saying who it is, declining what it can't check, and writing calculator and date calls. It runs in phone apps straight from the GGUF.
It continues Loom Swift Micro 2 (same size, same shape) with two more 5-minute training rounds on Kaggle's two T4 GPUs. The Swift line was trained from scratch: randomly initialised weights, nothing fine-tuned from anyone's checkpoint.
Read this first
This is a tiny model for tiny jobs: about a million parameters, one 2.5 MB file. It chats briefly and kindly, knows its limits, and decides when a tool is needed. It is not a reader, a calculator or an extractor. The "Read this before you use it" section lists every miss we measured.
What changed from Swift Micro 2
| Loom Swift Micro 2 | Loom Swift Micro 3 | |
|---|---|---|
| everyday conversation (our 30-item chat test) | 7/30 | 18/30 |
| remembers what you told it | rarely | often |
| says it looked something up when asked | 0/5 | 2/5 (battery) Β· 4/4 (chat test) |
| size, shape, tokenizer, context | 1.17M Β· 12 Γ 96 Β· 4,096 Β· 2,048 | unchanged |
| training | 5 minutes from scratch | + 2 Γ 5 minutes, continued from Swift Micro 2 |
Measured against Swift Micro 2
Same tests, same scripts, same settings (repeat penalty 1.0, greedy), through Ollama. Every test prompt is scrubbed from the training data.
The Loom acceptance battery, row by row:
| row | Swift Micro 2 | Swift Micro 3 |
|---|---|---|
| A Β· says its own name | 11/12 | 11/12 |
| B Β· its own name under rough typing | 11/12 | 12/12 |
| C Β· 5-turn conversation stays on thread | 5/5 | 5/5 |
| D Β· answers from a search result | 3/5 | 2/5 |
| E Β· follow-up answered from the same result | 0/5 | 1/5 |
| F Β· says it looked, after a lookup | 0/5 | 2/5 |
| G Β· never claims a lookup it didn't make | 16/16 | 16/16 |
| H Β· admits what it can't know about you | 5/8 | 4/8 |
| I Β· says when a result doesn't contain the answer | 3/5 | 3/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 | 16/20 | 15/20 |
| total | 110/133 | 111/133 |
Conversation (new frozen test, 30 hand-written chats, written before any Swift 3 data):
| Swift Micro 2 | Swift Micro 3 | |
|---|---|---|
| remembers what you told it (6) | 0 | 3 |
| follow-up from a search result (6) | 0 | 1 |
| says where an answer came from (4) | 0 | 4 |
| admits what it can't know (5) | 1 | 3 |
| kind, short replies (5) | 3 | 4 |
| who it is, rough typing (4) | 3 | 3 |
| total | 7/30 | 18/30 |
The Swift jobs (275 held-out items, the same frozen set Swift 2 was measured on):
| job | Swift Micro 2 | Swift Micro 3 |
|---|---|---|
| everyday chat | 11/15 | 13/15 |
| declining an unknown fact, tools off | 18/20 | 17/20 |
| ignoring an instruction inside a passage | 4/10 | 2/10 |
| labelling (topic / language / sentiment / toxic / route) | 28/60 | 35/60 |
| calculator call correct | 13/40 | 11/40 |
| date arithmetic | 3/10 | 4/10 |
| reading a retrieved passage | 4/60 | 8/60 |
| typed extraction | 0/30 | 0/30 |
| redaction (exact match) | 0/30 | 0/30 |
| saying "(sure)" and being right | 22% | 47% of 34 |
No job fell by more than 2 items (our "lose nothing" rule for a new version).
One file, full precision. At this size a quantised file saves only a megabyte or so and loses a few items (we measured it), so we ship just the best version: loom-swift-micro-3-f16.gguf, 2.5 MB.
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 β best curated reader | no |
| Loom Weave 4 | 55.6M | 127β | 10/20 | yes | yes |
| Loom Swift Mini (original) | 2.0M | 110β‘ | β | no | no |
| Loom Swift Micro (original) | 1.16M | 110β‘ | β | no | no |
| Loom Swift Mini 2 | 2.0M | 120 | not measured | barely (12%) | yes |
| Loom Swift Micro 2 | 1.17M | 110 | not measured | barely (7%) | yes |
| Loom Swift Micro 3 | 1.17M | 111 | not measured | barely (13%) | yes |
β scored on a battery with every test prompt scrubbed from training. β‘ the two original Swifts re-scored with the same script and settings as the Swift 2s. Earlier rows are each model's release score. Never compare scores from different command lines.
Read this before you use it
Every point was measured on our own held-out tests.
- It is a talker, not a worker. Calculator calls 11/40, dates 4/10, reading a passage 8/60, extraction and redaction 0. Do not use it for calculation, extraction or redaction.
- Two small slips against Swift Micro 2, each within our 2-item allowance: ignoring an instruction hidden inside a passage (4/10 β 2/10) and calculator calls (13/40 β 11/40). On the battery it admits an unknowable 4/8 (was 5/8).
- Its "(sure)" is still unreliable: right 47% of the time it says it.
- It remembers what you said within one chat (2,048 tokens); it has no memory between chats. Its copying is imperfect: "I'm Tavira", "My name is Oskar" and "call me Bree" come back right, but "I am Tavira" comes back as "Your name is am Tavira".
- Replies are one or two short sentences.
Usage β phone and desktop chat apps (PocketPal, LM Studio, Jan)
Download loom-swift-micro-3-f16.gguf (2.5 MB) and load it. The chat template and the stop token are inside the file.
Set repeat penalty 1.0. The model only writes tool calls (<tool>calc 482 + 539</tool>); a chat app will not run them for you β use the harness for that.
Usage β the harness (search, calculator, date)
python3 harness.py "whats the capital of peru"
python3 harness.py "what is 482 + 539"
python3 harness.py --show "who wrote hamlet" # see what it searched and read
python3 harness.py --no-tools "who are you"
Stdlib only; Wikipedia needs no key. Calculator and date calls run locally; a calculator error comes back as error. 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-Swift-Micro-3 "who are you"
llama-cli -m loom-swift-micro-3-f16.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 (4.50 or newer)
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("textilelabs/Loom-Swift-Micro-3")
model = AutoModelForCausalLM.from_pretrained("textilelabs/Loom-Swift-Micro-3").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=120, do_sample=False)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Raw format (tools on or off): <tools:off>\n<user>\n{message}\n<|eot|>\n<loom>\n.
How it was built
| architecture | Gemma-3 layout: 12 layers Γ 96d (10 sliding-window 512 + 2 global), 2 query heads / 1 KV head of 32, GeGLU 160, tied embeddings, QK-norm |
| parameters | 1,172,832 |
| vocabulary | 4,096 byte-level BPE, single digits, Qwen2-style pre-tokenizer (identical tokens in llama.cpp) |
| starting point | Loom Swift Micro 2 (5 minutes from random init) |
| round 1 | 5 minutes, 48M tokens: conversation skills plus four experimental jobs (commands, routing, form filling, privacy redaction) |
| round 2 | 5 minutes, 46M tokens: conversation skills plus every Swift 2 job in its own format; the round-1 jobs that missed their bars were removed |
| optimiser | continuation settings: Muon (β€ 0.01) on 2-D hidden matrices, AdamW (β€ 3e-4) on embeddings and norms, learning rate decaying from the start; per-conversation attention masking |
| attention check | before each run, the trainer's attention is checked against the reference implementation (loss and gradients identical) |
| hardware | Kaggle, 2 Γ NVIDIA T4 |
Files
model.safetensors / config.json the model (transformers)
tokenizer.json / tokenizer_config.json tokenizer + chat template
loom-swift-micro-3-f16.gguf full precision GGUF (2.5 MB): phones, desktop apps, Ollama, llama.cpp
template / params / Modelfile Ollama
harness.py runnable harness β search, calculator, date; stdlib only
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-Swift-Micro-3
Base model
textilelabs/Loom-Swift-Micro-2
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf textilelabs/Loom-Swift-Micro-3:F16# Run inference directly in the terminal: llama cli -hf textilelabs/Loom-Swift-Micro-3:F16