Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
berth
command
berth leases one GPU to one inference engine at a time.
|
berth leases one GPU to one inference engine at a time. |
|
Package units carries the systemd unit files that sit beside it in contrib/ to the Go code that renders them, so these files stay the one source of the units' text: the README's copy steps and `berth service install` read the same words.
|
Package units carries the systemd unit files that sit beside it in contrib/ to the Go code that renders them, so these files stay the one source of the units' text: the README's copy steps and `berth service install` read the same words. |
|
bench/swap
command
Command swap measures what a model switch through the Berth gateway costs.
|
Command swap measures what a model switch through the Berth gateway costs. |
|
internal
|
|
|
alerts
Package alerts is the node's threshold table and its sticky level state.
|
Package alerts is the node's threshold table and its sticky level state. |
|
apikey
Package apikey is the node's API key: one random secret per install, in a file only its owner can read, generated the first time something needs it.
|
Package apikey is the node's API key: one random secret per install, in a file only its owner can read, generated the first time something needs it. |
|
broker
Package broker owns the lease table for one GPU.
|
Package broker owns the lease table for one GPU. |
|
civitai
Package civitai reads model versions from the CivitAI site and moves their files into a root, checked against the hash the site publishes, with the same part-file resume as a Hub pull.
|
Package civitai reads model versions from the CivitAI site and moves their files into a root, checked against the hash the site publishes, with the same part-file resume as a Hub pull. |
|
claims
Package claims turns work Berth does not run into claims on the card, so a game, a render or a capture is never lost in the shuffle between engines.
|
Package claims turns work Berth does not run into claims on the card, so a game, a render or a capture is never lost in the shuffle between engines. |
|
cli
Package cli is the berth command tree: one flag set, one output contract and one exit-code contract for every command.
|
Package cli is the berth command tree: one flag set, one output contract and one exit-code contract for every command. |
|
comfy
Package comfy speaks the ComfyUI HTTP API calls Berth makes: the queue read, the model unload, and the VRAM stats.
|
Package comfy speaks the ComfyUI HTTP API calls Berth makes: the queue read, the model unload, and the VRAM stats. |
|
config
Package config reads berth.toml.
|
Package config reads berth.toml. |
|
dl
Package dl moves one file from a URL into place.
|
Package dl moves one file from a URL into place. |
|
engines
Package engines reads what the inference engines on this node report about themselves: loaded models, token counters, queue depth.
|
Package engines reads what the inference engines on this node report about themselves: loaded models, token counters, queue depth. |
|
export
Package export dumps the harbor's stored history for the operator's own analysis: the requests table and the history samples, as CSV (wide and flattened) or JSON (the store's wire shape verbatim).
|
Package export dumps the harbor's stored history for the operator's own analysis: the requests table and the history samples, as CSV (wide and flattened) or JSON (the store's wire shape verbatim). |
|
fsx
Package fsx writes files that must survive a crash.
|
Package fsx writes files that must survive a crash. |
|
gateway
Fallback routing: an engine may name another engine to take one request while it is still coming up, so an interactive client does not sit through a 90 s cold start when something that needs no card can answer now.
|
Fallback routing: an engine may name another engine to take one request while it is still coming up, so an interactive client does not sit through a 90 s cold start when something that needs no card can answer now. |
|
gpu
Package gpu reads what the card reports: total, used and free memory, and the processes holding it.
|
Package gpu reads what the card reports: total, used and free memory, and the processes holding it. |
|
harbor
Package harbor is the web UI's server.
|
Package harbor is the web UI's server. |
|
hf
Package hf downloads model files from the Hugging Face Hub and proves they arrived whole: every LFS file's size and sha256 are checked against what the Hub publishes for that exact commit, a partial download resumes instead of starting over, and a manifest beside the files lets `berth verify` re-check them later.
|
Package hf downloads model files from the Hugging Face Hub and proves they arrived whole: every LFS file's size and sha256 are checked against what the Hub publishes for that exact commit, a partial download resumes instead of starting over, and a manifest beside the files lets `berth verify` re-check them later. |
|
history
Package history keeps the node's recent samples in memory for the harbor's graphs: an hour at 5 s by default.
|
Package history keeps the node's recent samples in memory for the harbor's graphs: an hour at 5 s by default. |
|
host
Package host reads the machine's memory, CPU and load.
|
Package host reads the machine's memory, CPU and load. |
|
insights
Package insights computes the request KPIs, the token ledger and the leaderboard from a request log.
|
Package insights computes the request KPIs, the token ledger and the leaderboard from a request log. |
|
kvsnap
Package kvsnap saves a llama.cpp engine's KV caches and restores them, so a sequential run of sub-agents does not prefill its context again after every model switch.
|
Package kvsnap saves a llama.cpp engine's KV caches and restores them, so a sequential run of sub-agents does not prefill its context again after every model switch. |
|
manifest
Package manifest records what berth pull fetched: which source, its exact revision, and every file's size and sha256.
|
Package manifest records what berth pull fetched: which source, its exact revision, and every file's size and sha256. |
|
models
Package models reads the model files on this machine.
|
Package models reads the model files on this machine. |
|
pagecache
Package pagecache measures how much of a file's pages the kernel page cache holds, and asks the kernel to warm a file back into it.
|
Package pagecache measures how much of a file's pages the kernel page cache holds, and asks the kernel to warm a file back into it. |
|
pair
Package pair is the harbor's device pairing: a short one-time code, minted on this machine, trades for a long-lived device token that lets a browser act on the node.
|
Package pair is the harbor's device pairing: a short one-time code, minted on this machine, trades for a long-lived device token that lets a browser act on the node. |
|
park
Package park moves an engine's weights to system RAM on a drain, so the next use resumes in seconds instead of reloading from disk.
|
Package park moves an engine's weights to system RAM on a drain, so the next use resumes in seconds instead of reloading from disk. |
|
procs
Package procs answers one question: is this process a descendant of that one? Berth uses it to attribute a GPU process to the lease whose wrapper started it, even when the engine forks (Strata's server.py spawns the engine binary that actually holds the memory).
|
Package procs answers one question: is this process a descendant of that one? Berth uses it to attribute a GPU process to the lease whose wrapper started it, even when the engine forks (Strata's server.py spawns the engine binary that actually holds the memory). |
|
proto
Package proto is the wire format between berth run and berthd: newline-delimited JSON over a Unix socket.
|
Package proto is the wire format between berth run and berthd: newline-delimited JSON over a Unix socket. |
|
runner
The runner's side of parking.
|
The runner's side of parking. |
|
runs
Package runs records engines that started without a lease: berthd was down (fail-open), or went away mid-run.
|
Package runs records engines that started without a lease: berthd was down (fail-open), or went away mid-run. |
|
server
Package server puts the broker on a Unix socket.
|
Package server puts the broker on a Unix socket. |
|
skill
Package skill carries the agent skill that teaches a coding agent to use Berth, and installs it where agents look for skills.
|
Package skill carries the agent skill that teaches a coding agent to use Berth, and installs it where agents look for skills. |
|
storage
Package storage reports what a model root sits on: the filesystem, the space left, and what that filesystem actually supports.
|
Package storage reports what a model root sits on: the filesystem, the space left, and what that filesystem actually supports. |
|
store
Package store is the harbor's persistence: the node keeps one hour of samples and a day of requests in RAM, the harbor folds the same readings into SQLite so the UI can show days and months.
|
Package store is the harbor's persistence: the node keeps one hour of samples and a day of requests in RAM, the harbor folds the same readings into SQLite so the UI can show days and months. |
|
suite
Package suite manages the engine installs Berth runs as a suite: each install is a set of git components pinned to a commit, with one previous commit kept as the rollback snapshot.
|
Package suite manages the engine installs Berth runs as a suite: each install is a set of git components pinned to a commit, with one previous commit kept as the rollback snapshot. |
|
swapcost
Package swapcost predicts how long the next engine switch will take, from the switches that already happened.
|
Package swapcost predicts how long the next engine switch will take, from the switches that already happened. |
|
sysd
Package sysd starts a command inside a transient scope of the systemd user manager, so it leaves the cgroup of whoever started it.
|
Package sysd starts a command inside a transient scope of the systemd user manager, so it leaves the cgroup of whoever started it. |
|
update
Package update asks GitHub whether a newer berth release exists and, when the operator asks, downloads and verifies this machine's release binary.
|
Package update asks GitHub whether a newer berth release exists and, when the operator asks, downloads and verifies this machine's release binary. |
|
vfio
Package vfio reads the VFIO state of one PCI card: whether IOMMU is on, the card's IOMMU group, the driver bound to each function, and the processes holding the card's device nodes open.
|
Package vfio reads the VFIO state of one PCI card: whether IOMMU is on, the card's IOMMU group, the driver bound to each function, and the processes holding the card's device nodes open. |
|
wire
Package wire edits a llama-swap config so every model in its roster takes a berth before it loads its weights.
|
Package wire edits a llama-swap config so every model in its roster takes a berth before it loads its weights. |
Click to show internal directories.
Click to hide internal directories.


