Skip to content

gerald serve

gerald serve [MODEL] [options]

Runs in the foreground until Ctrl-C. Guide: Serve a model. Coding agents do not need it: they start the model themselves after gerald install.

Argument Default
MODEL ruby ruby, ruby:alpha or ruby:0.1.0. See Models and channels
Option Default
--device <cpu|cuda|vulkan|metal> Detected Override the detected device
--port <PORT> 8080 Port to listen on, on 127.0.0.1
-y, --yes Answer yes to download and build prompts
--session-only Sign in for this run only; nothing is saved

Valid devices: metal on macOS; cpu, cuda and vulkan on Linux.

Ready: http://127.0.0.1:8080/v1
Model: gerald/ruby:0.2.0
Backend: a91eab67d8389d979d29fdf6633b2edd0718eb4b (cuda)

Backend is the pinned llama.cpp revision and the device in use.

  • Serves the installed release and never updates it.
  • With nothing installed: signs in if needed, asks before downloading, then serves.
  • Checks the licence receipt before loading a licensed model.
  • Stops a model that agents started in the background, then serves in its place.
  • Stops on Ctrl-C or SIGTERM, with its backend.
Terminal window
gerald serve
gerald serve ruby:alpha --port 9090
gerald serve ruby --yes --device vulkan