Compute Engine Installation
Tribunus Compute is a portable native inference engine designed for Tribunus Desktop and third-party agent frameworks. It uses a compile-time architecture that freezes operator scheduling, memory layout, and kernel selection before execution, eliminating runtime branching.
System requirements
Section titled “System requirements”- macOS 14+ (Apple Silicon) or Linux (x86_64 with AVX2)
- 4 GB VRAM minimum; 8 GB+ recommended for larger models
- Metal (Apple Silicon) or CUDA (NVIDIA) backend
Developer preview. Metal and CUDA backends are in active development. AMD, Intel, and Tenstorrent backends are planned.
Installation
Section titled “Installation”macOS (Apple Silicon):
brew install tribunus/tap/tribunus-computeOr download the .tar.gz from the releases page and extract:
tar -xzf tribunus-compute-*.tar.gzsudo mv tribunus-compute /usr/local/bin/Linux (x86_64):
Download the .tar.gz for your platform and extract:
tar -xzf tribunus-compute-linux-*.tar.gzsudo mv tribunus-compute /usr/local/bin/Daemon Commands
Section titled “Daemon Commands”Compute runs as a background daemon. The tribunus-compute serve subcommand starts the daemon and exposes the REST API:
# Start on the default porttribunus-compute serve
# Start with a custom host and porttribunus-compute serve --host 0.0.0.0 --port 9090
# Start with verbose loggingtribunus-compute serve --log-level debugThe daemon accepts these flags:
| Flag | Default | Description |
|---|---|---|
--host | 127.0.0.1 | Bind address for the HTTP server |
--port | 8080 | Port for the HTTP server |
--log-level | info | Log verbosity: debug, info, warn, error |
--config | — | Path to a configuration file (TOML or JSON) |
--allow-slower-candidates | false | Permit kernels slower than the reference baseline (development use) |
--oracle-tolerance | exact | Numerical tolerance tier: exact, approximate, heuristic, unverified |
--flush-cache | false | Flush the autotune cache on startup |
--data-dir | ~/.local/share/tribunus/compute | Directory for persistent state, cache, and logs |
Bearer tokens authenticate API requests. Generate or configure a token in the configuration file and pass it as the Authorization: Bearer <token> header on every request.
In production, run the daemon as a system service:
# Linux (systemd)sudo systemctl enable tribunus-computesudo systemctl start tribunus-compute
# macOS (launchd)cp tribunus-compute.plist ~/Library/LaunchAgents/launchctl load ~/Library/LaunchAgents/tribunus-compute.plistConfiguration File
Section titled “Configuration File”Compute supports a TOML configuration file for persistent settings. By default the daemon looks for ~/.config/tribunus/compute.toml. Use --config to specify an explicit path.
[daemon]host = "127.0.0.1"port = 8080log_level = "info"data_dir = "~/.local/share/tribunus/compute"
[backends]metal = { enabled = true }cuda = { enabled = false }
[autotuning]cache_path = "/var/cache/tribunus/autotune"flush_on_start = falseoracle_tolerance = "exact"allow_slower_candidates = false
[auth]token = "your-bearer-token"The equivalent JSON format is also supported:
{ "daemon": { "host": "127.0.0.1", "port": 8080, "log_level": "info" }, "backends": { "metal": { "enabled": true }, "cuda": { "enabled": false } }, "autotuning": { "cache_path": "/var/cache/tribunus/autotune", "flush_on_start": false }}Validate your configuration without starting the daemon:
tribunus-compute validate --config /path/to/compute.tomlVerifying the Daemon
Section titled “Verifying the Daemon”To confirm the daemon is running and healthy:
curl http://127.0.0.1:8080/healthA successful response returns:
{"status":"ok","version":"0.1.0","backend":"metal"}The backend field reflects your available hardware (metal on Apple Silicon, cuda on NVIDIA, none if no backend is available).
Model Loading and Inference
Section titled “Model Loading and Inference”Load a model and run inference using tribunus-compose:
# Load a model from a local path or Hugging Face identifiertribunus-compose load --model meta-llama/Llama-3.2-3B
# Run a single inferencetribunus-compose infer --prompt "What is the capital of France?"
# Start an interactive sessiontribunus-compose chatThe compose tool manages compute images — compiled representations of model graphs that include frozen operator schedules, memory layouts, and selected kernels. Compute images are cached under the data directory and reused across sessions.
Stopping the Daemon
Section titled “Stopping the Daemon”Stop the daemon gracefully with SIGTERM:
kill -TERM $(pgrep tribunus-compute)# Or, if running in the foreground, press Ctrl+CThe daemon flushes autotune cache entries and writes any pending diagnostic state before shutting down.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely Cause | Fix |
|---|---|---|
| Daemon fails to start | Port already in use | Change --port or kill the conflicting process |
Health check returns backend: none | No compatible GPU driver found | Install Metal (macOS) or CUDA driver (Linux) |
compile_failed (RZ-0007) in logs | Kernel rejected by backend | Run with --log-level debug, check compiler output |
load_failed (RZ-0008) at session start | Corrupt compute image | Rebuild with tribunus-compose load --force |
For a full list of error codes and diagnosis steps, see the Error Reference.
Next steps
Section titled “Next steps”- Point Tribunus Desktop at your local Compute instance via Settings > Inference Backend > Tribunus Compute.
- Explore the Compute CLI reference for advanced flags and subcommands.
- Review the Architecture Decision Records for the design rationale behind the compile-time pipeline.