bots-garden/mini-mepublic Fork
⑂ feature/llamacpp-fallback
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. 99e21b0 · on feature/llamacpp-fallback · k33g · 28d ago
README.en.md · 69 lines · 3.0 KBmarkdown
Blame HistoryOpen raw

Auto-pull — mm downloads the missing models at start-up

Version française

With autoPull: true, mm checks at start-up that llmman has the models it will use, and downloads the missing ones before the first question, showing the progress (ticket 61). The models here are tiny (SmolLM2 135M, about 100 MB each): the downloads take seconds.

File Model What it shows
agent.yaml SmolLM2 135M Q5_K_M the agent's own model pulled at start-up
agent.team.yaml + agent.helper.yaml Q5_K_M for the coordinator, Q6_K for the helper the mmConfigs agents' models pulled too, one after the other
agent.typo.yaml a misspelt name mm stops at once with llmman's message

Run

Start llmman (llmman serve), then:

cd demos/auto-pull
mm -config agent.yaml -p "Say hello in three words."

The first run downloads the model. On a terminal, one line is rewritten in place on stderr:

⬇ pulling hf.co/unsloth/SmolLM2-135M-Instruct-GGUF:Q5_K_M — 52 MB / 105 MB (49 %)

then:

⬇ pulled hf.co/unsloth/SmolLM2-135M-Instruct-GGUF:Q5_K_M in 3.4s

🤖 Hello!

Run it again: the model is in the store, nothing is pulled, the answer comes straight away. llmman list (or curl -s :17434/v1/models) shows the new model.

The team

mm -config agent.team.yaml -p "Ask helper to say hello."

Two downloads: the coordinator's Q5_K_M (instant if agent.yaml already pulled it), then the helper's Q6_K. The helper pulls nothing itself when it is asked: its asker already did. Talk to it with mm -config agent.team.yaml --ask helper -p "say hello", or /ask-helper say hello in the REPL — a 135M model rarely calls ask_agent on its own.

A wrong name

mm -config agent.typo.yaml -p "hi"
⬇ pulling hf.co/unsloth/SmolLM2-135M-Instruct-GUFF:Q4_K_M
[engine error: autoPull: hf.co/unsloth/SmolLM2-135M-Instruct-GUFF:Q4_K_M: the server says: HF model info: GET https://huggingface.co/api/models/unsloth/SmolLM2-135M-Instruct-GUFF: HTTP 401 ]

Exit code 1. Without autoPull, the same file starts with a warning and the first question fails.

See the download again

llmman keeps a deleted model's file in its cache: after llmman rm (or DELETE /api/delete), pulling the same model again is instant. To watch a real download, put another quantization in model: — Q3_K_M, Q2_K, F16… (all listed on the model page).

Limits

  • The same key works with Ollama and Docker Model Runner; with llama.cpp it can only say what to do (start llama-server with -hf). This demo uses llmman.
  • mm --ask does not pull: start the coordinator once (-p or the REPL) to pull the team's models.
  • In a pipe or a log, the progress is one line per tenth instead of one line rewritten in place.

See autoPull and Run mm with llmman.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Auto-pull — mm downloads the missing models at start-up

*[Version française](README.fr.md)*

With `autoPull: true`, mm checks at start-up that llmman has the models it will use, and downloads the missing ones before the first question, showing the progress (ticket 61). The models here are tiny (SmolLM2 135M, about 100 MB each): the downloads take seconds.

| File | Model | What it shows |
|---|---|---|
| `agent.yaml` | SmolLM2 135M `Q5_K_M` | the agent's own model pulled at start-up |
| `agent.team.yaml` + `agent.helper.yaml` | `Q5_K_M` for the coordinator, `Q6_K` for the helper | the `mmConfigs` agents' models pulled too, one after the other |
| `agent.typo.yaml` | a misspelt name | mm stops at once with llmman's message |

## Run

Start llmman (`llmman serve`), then:

```bash
cd demos/auto-pull
mm -config agent.yaml -p "Say hello in three words."
```

The first run downloads the model. On a terminal, one line is rewritten in place on stderr:

```text
⬇ pulling hf.co/unsloth/SmolLM2-135M-Instruct-GGUF:Q5_K_M — 52 MB / 105 MB (49 %)
```

then:

```text
⬇ pulled hf.co/unsloth/SmolLM2-135M-Instruct-GGUF:Q5_K_M in 3.4s

🤖 Hello!
```

Run it again: the model is in the store, nothing is pulled, the answer comes straight away. `llmman list` (or `curl -s :17434/v1/models`) shows the new model.

## The team

```bash
mm -config agent.team.yaml -p "Ask helper to say hello."
```

Two downloads: the coordinator's `Q5_K_M` (instant if `agent.yaml` already pulled it), then the helper's `Q6_K`. The helper pulls nothing itself when it is asked: its asker already did. Talk to it with `mm -config agent.team.yaml --ask helper -p "say hello"`, or `/ask-helper say hello` in the REPL — a 135M model rarely calls `ask_agent` on its own.

## A wrong name

```bash
mm -config agent.typo.yaml -p "hi"
```

```text
⬇ pulling hf.co/unsloth/SmolLM2-135M-Instruct-GUFF:Q4_K_M
[engine error: autoPull: hf.co/unsloth/SmolLM2-135M-Instruct-GUFF:Q4_K_M: the server says: HF model info: GET https://huggingface.co/api/models/unsloth/SmolLM2-135M-Instruct-GUFF: HTTP 401 ]
```

Exit code 1. Without `autoPull`, the same file starts with a warning and the first question fails.

## See the download again

llmman keeps a deleted model's file in its cache: after `llmman rm` (or `DELETE /api/delete`), pulling the same model again is instant. To watch a real download, put another quantization in `model:` — `Q3_K_M`, `Q2_K`, `F16`… (all listed on [the model page](https://huggingface.co/unsloth/SmolLM2-135M-Instruct-GGUF)).

## Limits

- The same key works with Ollama and Docker Model Runner; with llama.cpp it can only say what to do (start llama-server with `-hf`). This demo uses llmman.
- `mm --ask` does not pull: start the coordinator once (`-p` or the REPL) to pull the team's models.
- In a pipe or a log, the progress is one line per tenth instead of one line rewritten in place.

See [`autoPull`](../../docs/en/reference/configuration.md) and [Run mm with llmman](../../docs/en/how-to/run-with-llmman.md).