2.2 KiB
Jeannie AI lab
The AI lab builds a pinned, separate llama.cpp checkout on the Debian server. It does not change Ollama, OmniRoute, the Jeannie model routes, or cluster configuration. The build has CPU and Vulkan support; Vulkan detection does not guarantee that the integrated GPU will be faster than the CPU.
After pushing this change, on Debian:
cd ~/my-homelab-configs
git pull --ff-only gitea main
./jeannie ai-lab plan
./jeannie ai-lab install
./jeannie ai-lab devices
Installation uses sudo apt-get for build and Vulkan packages, downloads the
pinned source, and compiles with two parallel jobs. The default lab directory is
/data/homelab-ai-lab; set JEANNIE_AI_LAB_DIR to use a different directory.
The install refuses to overwrite an existing source checkout whose origin,
commit, or tracked files do not match the expected source.
Once ollama ps shows no loaded models, run:
./jeannie ai-lab bench ollama
./jeannie ai-lab bench cpu
./jeannie ai-lab bench vulkan
The Vulkan run defaults to Vulkan0. If devices shows a different Radeon
device, set JEANNIE_AI_LAB_VULKAN_DEVICE to that name for the run. The lab
refuses to start if Ollama currently has a loaded model; it never stops another
model. The Ollama benchmark asks Ollama to unload the model after its own
request. Avoid concurrent AI workloads when comparing results.
Each run reads the existing llama3.2:3b GGUF blob; it does not copy, delete,
or modify the model. The Debian user must be able to read the path printed by
ollama show --modelfile llama3.2:3b. Inaccessible or non-GGUF files stop the
test. Reports and model output are saved with mode 0600 under the lab's reports
directory. Review the llama.cpp log for actual GPU offload and prompt versus
generation timing; the parsed timing values alone do not identify the phase.
Each benchmark is one cold request, using the same prompt, maximum output, context size and temperature. CLI and Ollama prompt templates, sampling options, backend allocation and measured time boundaries can differ, so this is an initial comparison rather than a controlled scientific benchmark. Repeat runs, inspect answers, and compare end-to-end user experience before changing routes.