bots-garden/mini-mepublic Fork
⑂ e2237d7
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

🎫 Ticket 107: drop the old file name (renamed by IssueSpec)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-27T05:17:42+01:00 Browse files
e2237d7 parent: 354d48e
deleted .tickets/issues/0107-study-yzma-in-process-llama-cpp.yaml +0 -116
deleted file mode 100644
@@ -1,116 +0,0 @@
1-# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2-id: 107
3-title: Study what integrating yzma (in-process llama.cpp for Go) would imply
4-state: open
5-author:
6- name: k33g
7- email: ph.charriere@gmail.com
8-createdAt: 2026-10-21T00:30:00.000Z
9-updatedAt: 2026-10-21T00:30:00.000Z
10-labels: []
11-epic: Models
12-related:
13- - 60
14- - 101
15-body: |
16- Study what integrating yzma (https://yzma.ai/, github.com/hybridgroup/yzma)
17- into mm would imply. Study only: nothing is implemented in this ticket.
18-
19- What yzma is (from yzma.ai and its README, read 2026-10-20): a Go library
20- that runs llama.cpp IN THE SAME PROCESS as the Go program, with no model
21- server; no CGo (purego + ffi), so a normal `go build`; GGUF models;
22- Linux, macOS, Windows and the browser (WebAssembly); CUDA, Metal, Vulkan,
23- ROCm, WebGPU; vision models (images, audio, video). The llama.cpp
24- prebuilt libraries are DOWNLOADED (by the `yzma` command or by the
25- application, CUDA/ROCm auto-detected, SHA-256 checked), not bundled. Its
26- README pairs yzma v1.30.0 with llama.cpp b11480+. Its API is llama.cpp's
27- own, low level: llama.Load, ModelLoadFromFile, InitFromModel, Tokenize,
28- BatchGetOne, SamplerChainInit, SamplerSample, TokenToPiece… Not found on
29- those two pages: the license name, chat templates, tool calling, a
30- streaming API. A downstream project, Kronk, offers an OpenAI-compatible
31- API on top of it.
32-
33- Why it is worth a look: mm needs a model SERVER today (DMR, llmman,
34- Ollama, llama-server). With yzma mm could run a GGUF model by itself — one
35- binary, nothing else to install or start, CGO-free like mm now.
36-
37- What mm takes from the server today, and would have to do itself
38- in-process (the core of task 2):
39- - the chat template (Jinja, per model), and its kwargs
40- (chat_template_kwargs.enable_thinking…);
41- - tool calling: turning the model's own tool-call syntax (Qwen, Gemma's
42- `<|tool_call>`, Mellum, gpt-oss harmony…) into OpenAI tool_calls;
43- - the reasoning split (`reasoning_content`) for thinking models;
44- - structured output: a JSON schema turned into a grammar;
45- - streaming, usage counts (prompt / completion tokens), the context
46- window probe;
47- - loading / unloading models (/unload, unload_model), keep-alive;
48- - serving several agents at once (mmConfigs: each asked agent is a
49- child `mm -acp` process).
50- mm talks to all of this through Genkit's OpenAI-compatible plugin
51- (compat_oai): an in-process engine is either a new Genkit model plugin or
52- an OpenAI-compatible shim in front of yzma.
53-
54- Open questions:
55- - does yzma (or llama.cpp's C API it exposes) apply Jinja chat templates
56- and parse tool calls, or only the built-in templates and no tools?
57- - is Kronk the better first step (no mm code), with in-process left for
58- later?
59- - one model per mm process vs the asked agents: memory doubles if an
60- asker and its expert run the same model in two processes.
61-tasks:
62- - id: 1
63- title: "Read yzma itself: license, current version and its llama.cpp pairing, Go version, how the libraries are fetched and verified, what the API covers (chat templates, tool calls, grammars / JSON schema, embeddings, streaming, token counts, unloading)"
64- state: open
65- priority: none
66- author:
67- name: k33g
68- email: ph.charriere@gmail.com
69- createdAt: 2026-10-21T00:30:00.000Z
70- updatedAt: 2026-10-21T00:30:00.000Z
71- - id: 2
72- title: "Inventory what mm takes from a model server today and say, item by item, what yzma gives, what mm would have to write, and what it would lose (see the list in the body)"
73- state: open
74- priority: none
75- author:
76- name: k33g
77- email: ph.charriere@gmail.com
78- createdAt: 2026-10-21T00:30:00.000Z
79- updatedAt: 2026-10-21T00:30:00.000Z
80- - id: 3
81- title: "Look at Kronk (built on yzma, OpenAI-compatible API): would it give the same benefit with no mm code, as one more provider entry?"
82- state: open
83- priority: none
84- author:
85- name: k33g
86- email: ph.charriere@gmail.com
87- createdAt: 2026-10-21T00:30:00.000Z
88- updatedAt: 2026-10-21T00:30:00.000Z
89- - id: 4
90- title: "Weigh the process model: the model inside mm's process vs mm's agents asking agents (one mm -acp child per asked agent, each loading its own model), ACP sessions sharing one model, /unload and unload_model, a crash in llama.cpp taking mm down"
91- state: open
92- priority: none
93- author:
94- name: k33g
95- email: ph.charriere@gmail.com
96- createdAt: 2026-10-21T00:30:00.000Z
97- updatedAt: 2026-10-21T00:30:00.000Z
98- - id: 5
99- title: "Weigh distribution: mm stays CGO-free, but needs the llama.cpp shared libraries per platform and accelerator (CUDA, ROCm, Metal, Vulkan) — downloaded at first run? by the release? in the sbx template?"
100- state: open
101- priority: none
102- author:
103- name: k33g
104- email: ph.charriere@gmail.com
105- createdAt: 2026-10-21T00:30:00.000Z
106- updatedAt: 2026-10-21T00:30:00.000Z
107- - id: 6
108- title: "Conclude with a recommendation (no code, or a provider, or an in-process engine) and, if any, a measured prototype plan on one small model"
109- state: open
110- priority: none
111- author:
112- name: k33g
113- email: ph.charriere@gmail.com
114- createdAt: 2026-10-21T00:30:00.000Z
115- updatedAt: 2026-10-21T00:30:00.000Z
116-comments: []
deleted file mode 100644
@@ -1,116 +0,0 @@
1-# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2-id: 107
3-title: Study what integrating yzma (in-process llama.cpp for Go) would imply
4-state: open
5-author:
6- name: k33g
7- email: ph.charriere@gmail.com
8-createdAt: 2026-10-21T00:30:00.000Z
9-updatedAt: 2026-10-21T00:30:00.000Z
10-labels: []
11-epic: Models
12-related:
13- - 60
14- - 101
15-body: |
16- Study what integrating yzma (https://yzma.ai/, github.com/hybridgroup/yzma)
17- into mm would imply. Study only: nothing is implemented in this ticket.
18-
19- What yzma is (from yzma.ai and its README, read 2026-10-20): a Go library
20- that runs llama.cpp IN THE SAME PROCESS as the Go program, with no model
21- server; no CGo (purego + ffi), so a normal `go build`; GGUF models;
22- Linux, macOS, Windows and the browser (WebAssembly); CUDA, Metal, Vulkan,
23- ROCm, WebGPU; vision models (images, audio, video). The llama.cpp
24- prebuilt libraries are DOWNLOADED (by the `yzma` command or by the
25- application, CUDA/ROCm auto-detected, SHA-256 checked), not bundled. Its
26- README pairs yzma v1.30.0 with llama.cpp b11480+. Its API is llama.cpp's
27- own, low level: llama.Load, ModelLoadFromFile, InitFromModel, Tokenize,
28- BatchGetOne, SamplerChainInit, SamplerSample, TokenToPiece… Not found on
29- those two pages: the license name, chat templates, tool calling, a
30- streaming API. A downstream project, Kronk, offers an OpenAI-compatible
31- API on top of it.
32-
33- Why it is worth a look: mm needs a model SERVER today (DMR, llmman,
34- Ollama, llama-server). With yzma mm could run a GGUF model by itself — one
35- binary, nothing else to install or start, CGO-free like mm now.
36-
37- What mm takes from the server today, and would have to do itself
38- in-process (the core of task 2):
39- - the chat template (Jinja, per model), and its kwargs
40- (chat_template_kwargs.enable_thinking…);
41- - tool calling: turning the model's own tool-call syntax (Qwen, Gemma's
42- `<|tool_call>`, Mellum, gpt-oss harmony…) into OpenAI tool_calls;
43- - the reasoning split (`reasoning_content`) for thinking models;
44- - structured output: a JSON schema turned into a grammar;
45- - streaming, usage counts (prompt / completion tokens), the context
46- window probe;
47- - loading / unloading models (/unload, unload_model), keep-alive;
48- - serving several agents at once (mmConfigs: each asked agent is a
49- child `mm -acp` process).
50- mm talks to all of this through Genkit's OpenAI-compatible plugin
51- (compat_oai): an in-process engine is either a new Genkit model plugin or
52- an OpenAI-compatible shim in front of yzma.
53-
54- Open questions:
55- - does yzma (or llama.cpp's C API it exposes) apply Jinja chat templates
56- and parse tool calls, or only the built-in templates and no tools?
57- - is Kronk the better first step (no mm code), with in-process left for
58- later?
59- - one model per mm process vs the asked agents: memory doubles if an
60- asker and its expert run the same model in two processes.
61-tasks:
62- - id: 1
63- title: "Read yzma itself: license, current version and its llama.cpp pairing, Go version, how the libraries are fetched and verified, what the API covers (chat templates, tool calls, grammars / JSON schema, embeddings, streaming, token counts, unloading)"
64- state: open
65- priority: none
66- author:
67- name: k33g
68- email: ph.charriere@gmail.com
69- createdAt: 2026-10-21T00:30:00.000Z
70- updatedAt: 2026-10-21T00:30:00.000Z
71- - id: 2
72- title: "Inventory what mm takes from a model server today and say, item by item, what yzma gives, what mm would have to write, and what it would lose (see the list in the body)"
73- state: open
74- priority: none
75- author:
76- name: k33g
77- email: ph.charriere@gmail.com
78- createdAt: 2026-10-21T00:30:00.000Z
79- updatedAt: 2026-10-21T00:30:00.000Z
80- - id: 3
81- title: "Look at Kronk (built on yzma, OpenAI-compatible API): would it give the same benefit with no mm code, as one more provider entry?"
82- state: open
83- priority: none
84- author:
85- name: k33g
86- email: ph.charriere@gmail.com
87- createdAt: 2026-10-21T00:30:00.000Z
88- updatedAt: 2026-10-21T00:30:00.000Z
89- - id: 4
90- title: "Weigh the process model: the model inside mm's process vs mm's agents asking agents (one mm -acp child per asked agent, each loading its own model), ACP sessions sharing one model, /unload and unload_model, a crash in llama.cpp taking mm down"
91- state: open
92- priority: none
93- author:
94- name: k33g
95- email: ph.charriere@gmail.com
96- createdAt: 2026-10-21T00:30:00.000Z
97- updatedAt: 2026-10-21T00:30:00.000Z
98- - id: 5
99- title: "Weigh distribution: mm stays CGO-free, but needs the llama.cpp shared libraries per platform and accelerator (CUDA, ROCm, Metal, Vulkan) — downloaded at first run? by the release? in the sbx template?"
100- state: open
101- priority: none
102- author:
103- name: k33g
104- email: ph.charriere@gmail.com
105- createdAt: 2026-10-21T00:30:00.000Z
106- updatedAt: 2026-10-21T00:30:00.000Z
107- - id: 6
108- title: "Conclude with a recommendation (no code, or a provider, or an in-process engine) and, if any, a measured prototype plan on one small model"
109- state: open
110- priority: none
111- author:
112- name: k33g
113- email: ph.charriere@gmail.com
114- createdAt: 2026-10-21T00:30:00.000Z
115- updatedAt: 2026-10-21T00:30:00.000Z
116-comments: []