Install¶
gravity 0.1.6 has two prebuilt packages: macOS on Apple silicon (arm64) and Linux x86_64. The Linux package is new in 0.1.6 and runs on the CPU only (no GPU backend); gravity click is macOS only. On other platforms, or for a GPU on Linux, build from source.
Homebrew (macOS)¶
It puts one command on your PATH, gravity. The binaries it runs stay off PATH, so gravity installs beside Homebrew's llama.cpp.
Install script (macOS)¶
The script is for macOS on Apple silicon only. It checks the sha256, puts the gravity command in ~/.local/bin and the binaries it runs in ~/.local/libexec/gravity, and never uses sudo. It removes the llama-server, llama-cli and llama-gravity-repack that gravity 0.1.0 to 0.1.3 put in ~/.local/bin; a llama-server or llama-cli there that is not gravity's stays. GRAVITY_PREFIX sets the install prefix and GRAVITY_VERSION sets the release.
Tarball¶
Download the tarball for your platform and its checksum file into one folder, then check the tarball against the checksum. macOS arm64:
curl -LO https://github.com/astro-weights/gravity/releases/download/gravity-v0.1.6/gravity-0.1.6-macos-arm64.tar.gz
curl -LO https://github.com/astro-weights/gravity/releases/download/gravity-v0.1.6/gravity-0.1.6-macos-arm64.tar.gz.sha256
shasum -a 256 -c gravity-0.1.6-macos-arm64.tar.gz.sha256
Linux x86_64:
curl -LO https://github.com/astro-weights/gravity/releases/download/gravity-v0.1.6/gravity-0.1.6-linux-x86_64.tar.gz
curl -LO https://github.com/astro-weights/gravity/releases/download/gravity-v0.1.6/gravity-0.1.6-linux-x86_64.tar.gz.sha256
sha256sum -c gravity-0.1.6-linux-x86_64.tar.gz.sha256
A match prints the file name followed by OK. The expected sha256 values:
| Package | sha256 |
|---|---|
gravity-0.1.6-macos-arm64.tar.gz |
c3a7037476fc2907a0befc60d129a42ea743125f586ba600fee7dafc2509aff0 |
gravity-0.1.6-linux-x86_64.tar.gz |
eebe01f552271bc481dd609481abd06e8a1b6890c96638b822c7e94891469997 |
Unpack it and check the server's options (use linux-x86_64 in place of macos-arm64 on Linux):
The macOS build is not notarized. Files fetched with curl run as they are. A file downloaded in a browser gets macOS's quarantine flag, and Gatekeeper blocks the binaries until you clear it. Run this in the folder that holds the unpacked directory:
Check the build attestation¶
Each tarball has a build attestation from the gravity repository's release workflow. Install the GitHub CLI and run: