Skip to content

fix(lemonade): start Lemonade with the Vulkan coopmat workaround and say why memory failed - #4487

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:kalin/lemonade-vulkan-coopmat
Sep 29, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:kalin/lemonade-vulkan-coopmat

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

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 #1831, #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 fix(tui): first-run setup as steps; "ready" only once the models load #4459 fixes the agent registry that still pointed at nomic. Removing the remaining nomic references is a separate task.

Test plan

  • 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.
  • 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).
  • go test ./internal/ui/preflight/; python util/lint.py --black --isort.

…say why memory failed

On AMD Radeon iGPUs (8060S / gfx1151) llama.cpp's Vulkan cooperative-matrix
path crashes llama-server as it loads an embedding model, so memory and
document search were silently dead. Every Lemonade GAIA starts now gets
GGML_VK_DISABLE_COOPMAT=1 (not on macOS, which uses Metal), and a model that
downloaded but won't load is reported as exactly that, with the fix, instead
of a generic "service unreachable".

Refs amd#1831, amd#2831.
@github-actions github-actions Bot added documentation Documentation changes llm LLM backend changes tests Test changes performance Performance-critical changes agents tui Go terminal UI (gaia-tui) labels Sep 29, 2026
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 29, 2026
Merged via the queue into amd:main with commit 65a7756 Sep 29, 2026
70 of 73 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/lemonade-vulkan-coopmat branch September 29, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents documentation Documentation changes llm LLM backend changes performance Performance-critical changes tests Test changes tui Go terminal UI (gaia-tui)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants