Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions playbooks/dependencies/checks/lemonade-ready.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
Copyright Advanced Micro Devices, Inc.

SPDX-License-Identifier: MIT
-->
<!--
Shared Lemonade server readiness gate. Add "@require:lemonade-ready" before a step that
talks to the Lemonade server so it waits for the server to be ready.
-->

<!-- @os:windows -->
<!-- @test:id=lemonade-ready-windows timeout=300 hidden=True -->
```powershell
$health = $null
for ($i = 0; $i -lt 120; $i++) {
$health = curl.exe -sf --max-time 2 http://127.0.0.1:13305/api/v1/health
if ($health) { break }
Start-Sleep -Seconds 1
}
if (-not $health) { throw "Lemonade server not ready on http://127.0.0.1:13305/api/v1/health" }
Write-Host "OK: Lemonade server is ready"
```
<!-- @test:end -->
<!-- @os:end -->

<!-- @os:linux -->
<!-- @test:id=lemonade-ready-linux timeout=300 hidden=True -->
```bash
set -euo pipefail
health=""
for i in $(seq 1 120); do
health="$(curl -sf --max-time 2 http://127.0.0.1:13305/api/v1/health || true)"
if [ -n "$health" ]; then break; fi
sleep 1
done
if [ -z "$health" ]; then
echo "Lemonade server not ready on http://127.0.0.1:13305/api/v1/health"
exit 1
fi
echo "OK: Lemonade server is ready"
```
<!-- @test:end -->
<!-- @os:end -->
13 changes: 12 additions & 1 deletion playbooks/dependencies/registry.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "./registry.schema.json",
"description": "Central registry of pre-installed software dependencies and setup steps for AMD Halo Developer Platform",
"description": "Central registry of shared require-able blocks (install dependencies, models, setup steps, and runtime checks)",
"dependencies": {
"comfyui": {
"name": "ComfyUI",
Expand Down Expand Up @@ -79,6 +79,17 @@
"windows": ["halo_box"]
}
},
"lemonade-ready": {
"name": "Lemonade Readiness Check",
"description": "Waits for the Lemonade server to be reachable before dependent steps run",
"category": "check",
"platforms": ["windows", "linux"],
"file": "checks/lemonade-ready.md",
"preinstalled": {
"linux": [],
"windows": []
}
},
"gaia": {
"name": "GAIA",
"description": "AMD framework for building AI agents on local hardware",
Expand Down
1 change: 1 addition & 0 deletions playbooks/supplemental/hermes-lemonade-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ lemonade pull Qwen3.6-35B-A3B-GGUF

Then load it with a large context window and save that setting for future runs:

<!-- @require:lemonade-ready -->
Comment thread
lucbruni-amd marked this conversation as resolved.
<!-- @test:id=lemonade-model-load timeout=900 -->
```bash
lemonade unload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ lemonade pull Qwen3.6-35B-A3B-GGUF

Then load it with a large context window and save that setting for future runs:

<!-- @require:lemonade-ready -->
Comment thread
lucbruni-amd marked this conversation as resolved.
<!-- @test:id=lemonade-model-load timeout=900 -->
```bash
lemonade unload
Expand Down
Loading