Repository navigation
fix(tui): first-run setup as steps; "ready" only once the models load - #4459
Merged
Merged
Conversation
This was referenced Sep 29, 2026
On Strix Halo, every GAIA-owned Lemonade started without
GGML_VK_DISABLE_COOPMAT, so llama.cpp's Vulkan backend crashed on the first
embedding ("llama-server failed to start"). Document search and memory were
dead on every fresh install, while chat worked. Every installer launch path
already sets the variable; the embedded launcher now does too.
The per-device embedder table also still named nomic-embed-text-v2-moe-GGUF
for GPU/CPU, a model `gaia init` never downloads, so RAG asked for it on the
first turn. It now uses the embedder setup actually installs.
…load A new machine's first screen read as an error: red [!] rows, copy that said both "setup installs it" and "it is not on this machine", three routes for one action, and raw Python log lines scrolling through the status line while setup ran. It then said "everything checks out" even when the embedding model could not load. - First-run items are neutral, numbered steps with one way forward (Enter); red is kept for real failures. - While setup runs, the row it is working on shows it, and one plain line says which step, what it is doing, percent and elapsed time. Log output is kept for `d` only. - `gaia init --check --load` loads each model once (chat at its context, embedder with a one-word embedding) and exits 3 when a downloaded model will not load. The gate uses it, reports a model that will not load as a real failure, and names the chat model and its size on the ready screen. - The gate now recognises and auto-starts GAIA's own stopped server instead of calling it "not installed". - The gaia/chat/rag profiles download ~6 GB, not ~4 GB. Closes amd#4449
This was referenced Sep 29, 2026
Merged
kovtcharov-amd
force-pushed
the
kalin/first-run-steps
branch
from
September 29, 2026 16:56
7977141 to
3da2d68
Compare
This was referenced Sep 29, 2026
kovtcharov-amd
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Sep 29, 2026
…emory (amd#4489) Stale `nomic-embed-text` references outlived the switch to EmbeddingGemma (amd#1952), and nomic crashes llama.cpp on Vulkan (amd#1831). This removes them everywhere except where there's a reason to keep them (listed below), and closes a gap where memory from before July 2026 kept its nomic vectors and mixed them with EmbeddingGemma queries, quietly degrading recall. - **Legacy memory is now re-embedded.** Memory written before the embedder was stamped holds nomic vectors with no marker, and startup kept them. A missing marker now counts as an embedder change: vectors are cleared with a logged warning and backfill re-embeds them. The dashboard's rebuild button goes through the same path. - **One live test was always skipping.** The code-index eviction test loaded nomic as the competing embedder, which current Lemonade can't do. It now evicts by unloading, so it actually runs. - **Pairs with amd#4459**, which fixes the agent-registry default (the fresh-install bug itself). The registry, the chat/email agent comments and the registry tests are left to that PR to avoid conflicts. Once both merge, the only nomic references left are the ones below. **Kept on purpose:** - `docs/releases/*`: release notes record what shipped. - Migration notes in the memory SDK doc, memory spec and code-index guide, plus the tests that seed a nomic-stamped store: they describe and pin the upgrade path for existing users. - `eval/results/phase2/scorecard.json` and `eval/scenarios/memory/memory_journaling_report.py`: captured outputs of past runs. Editing them would misstate what ran. - `docs/plans/gaia-agent-latency.md` (captured `lemonade` output) and `docs/plans/tool-loader.mdx` ("τ was calibrated against live nomic embeddings"): they record past measurements. The second is also a real caveat, because τ hasn't been re-checked against EmbeddingGemma. RAG and code-index needed no migration. The RAG disk cache stores only text and chunks, and a code index built with nomic already fails loudly with a model-mismatch error. Retrieval for fresh installs is unchanged (same default embedder), so no `rag_quality` eval was run. ## Test plan - [x] `pytest` on the memory, memory-router, embedder, RAG-cache, broker, stdio and email-wiring suites: 1422 passed. The one failure (`test_memory_discovery` Outlook registry) fails identically on `origin/main` on this machine. - [x] `python util/lint.py --all`: black, isort, flake8 and bandit pass. The two pylint errors (`os.getuid`, `signal.SIGKILL`) are Windows-only and pre-existing. - [ ] `build_cpp.yml` CI: the C++ vector-index tests only swap a string literal, and there is no C++ toolchain on the machine this was written on. - [ ] Upgrade path: start the agent against a `memory.db` from before July 2026 (no `embedder_id` in `meta`). Expect one `embedder changed (unrecorded, pre-2026-07 memory -> user.embeddinggemma-300m-GGUF)` warning and full embedding coverage afterwards. Co-authored-by: Claude Opus 5.5 <[email protected]>
kovtcharov-amd
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Sep 29, 2026
…say why memory failed (amd#4487) On a Strix Halo (Radeon 8060S) the embedding model crashed Lemonade's llama.cpp every time it loaded, so memory and document search were dead, and GAIA said only that the service was unreachable. The cause is a llama.cpp Vulkan cooperative-matrix bug on this GPU. Every Lemonade GAIA starts now sets `GGML_VK_DISABLE_COOPMAT=1`, and when a model is downloaded but won't load, GAIA says exactly that and how to fix it. Refs amd#1831, amd#2831 - **The workaround:** `GGML_VK_DISABLE_COOPMAT=1` goes into the environment of every Lemonade GAIA starts (embedded, modern install, systemd hint for self-run servers). Skipped on macOS, which runs Metal. - **Loud, specific failures:** memory distinguishes "Lemonade down", "model not pulled" and now "model pulled but won't load", each with its own fix. A load failure that outlives retries names the likely cause and the remedy. - The default embedder is EmbeddingGemma, and amd#4459 fixes the agent registry that still pointed at `nomic`. Removing the remaining `nomic` references is a separate task. ## Test plan - [x] Verified live on the Strix Halo: `nomic-embed-text-v2-moe-GGUF` failed to load on every attempt without the flag (0 successes in two Lemonade instances), and with `GGML_VK_DISABLE_COOPMAT=1` returns a 768-dimension embedding. - [x] `pytest tests/unit/test_lemonade_launcher.py tests/unit/test_memory_mixin.py tests/unit/test_ui_gpu_detection.py tests/test_lemonade_client.py`: no failures beyond those already on `main` (integration tests that need a live Lemonade on :13305). - [x] `go test ./internal/ui/preflight/`; `python util/lint.py --black --isort`.
5 of 8 tasks
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new user's first screen looked like an error, and setup said "everything checks out" while document search and memory were dead. Now first-run items are neutral numbered steps with one key (Enter). Setup shows plain progress on the row it's working on. "Ready" is only reported after the models have actually loaded once, and the ready screen names the chat model and its size.
The embedder failure had a real root cause, found on Strix Halo from a cold
GAIA_HOME. GAIA's private Lemonade was started withoutGGML_VK_DISABLE_COOPMAT, so llama.cpp's Vulkan backend crashed on the first embedding. This hit EmbeddingGemma too, not just nomic. Every installer launch path already sets the variable; the embedded launcher now does as well. Separately, the GPU/CPU embedder default still named nomic, whichgaia initnever downloads.gaia init --check --loadloads each model once and exits 3 when a downloaded model won't load. A model that won't load is a red, named failure; if only the embedder fails, you can still press Enter to start without it.Test plan
go vet ./... && go test ./...intui/pass. The new rendered-frame tests cover neutral steps (no failure colour), Enter starting a step, progress on the row, log lines never shown, the header following the running step, the named chat model on the ready screen, and a load failure shown as a failure.pytest tests/unit/test_init_command.py tests/unit/installer tests/unit/test_lemonade_embedded.py tests/unit/test_npu_flm_embedder.py: new tests pass. The failures in this run (install scripts under dash, uninstall on POSIX, and 11 intests/test_lemonade_client.pythat hit a live server) are identical onmain.python util/lint.py --all: black, isort and flake8 pass. The only pylint errors are two Windows-only false positives in untouched files.GAIA_HOME,GAIA_CONFIG_DIRandHF_HOME: install, a 6 GB download, the load check, a first chat turn. Frames are below.main(no coopmat setting) makes the gate show "user.embeddinggemma-300m-GGUF will not load". Following the on-screen remedy (gaia lemonade embedded stop, thenr) auto-restarts the server, the models load, and the gate hands off.gaia eval agent --category rag_quality: not run. RAG now uses EmbeddingGemma on GPU/CPU, where it previously failed to load at all, and there is no flagship baseline to compare against yet.Before / after frames (cold state, Strix Halo)
Before (
main): first screen, then setup, then a false "ready"The first turn ("Remember that my favorite color is teal.") had no memory tool: 125 s, nothing stored. The agent log:
After: first screen
After: during setup
(The "~4 GB" is from the build before the size correction.)
After: ready
The same first turn: "Got it. Teal noted down in your preferences." in 34 s. The memory DB holds the fact with an
embedder_idofuser.embeddinggemma-300m-GGUF, and the agent log has no errors.After: a server left running by the old build
After following the remedy: