gravity: run large models on consumer hardware.
brew install astro-weights/tap/gravityQwen3-VL-30B, 17.7 GB on a Mac M3 Pro, 18 GB
3 warm runs, one prompt. Not a speed claim. Method
30B parameters. About 3B used per token.
llama-completion -m Qwen3-VL-30B-A3B-Instruct-UD-Q4_K_XL.gguf \
-p "Once upon a time" -n 128 --seed 1 --temp 0 -c 4096 \
-ngl 99 -cmoe -fit off --no-repack \
--moe-cache-mib 4096 --gravity-streamAdapters
- qwen3.8-27B-terseQwen3.8-27B−33.8% tokens
- gemma-4-E4B-tersegemma-4-E4B-it · runs on gravity−11.9% tokens
- granite-4.2-8b-tersegranite-4.2-8b
Against the base model: 27B on MATH-500, n=244; gemma on GSM8K. Unofficial community adapters, not affiliated with the base model makers.
Run it on your Mac
Homebrew
brew install astro-weights/tap/gravityInstall script · no sudo
curl -fsSL https://raw.githubusercontent.com/astro-weights/gravity/main/scripts/install.sh | shThen run an adapter
gravity run gemma-4-e4b-tersetar xzf gravity-0.1.6-macos-arm64.tar.gz
xattr -dr com.apple.quarantine gravity-0.1.6-macos-arm64
gravity-0.1.6-macos-arm64/bin/gravity serve -m model.ggufsha256 c3a7037476fc2907a0befc60d129a42ea743125f586ba600fee7dafc2509aff0
Build from source
git clone https://github.com/astro-weights/gravity
cd gravity
cmake -B build -DGGML_NATIVE=OFF -DGGML_METAL=ON -DLLAMA_USE_PREBUILT_UI=OFF
cmake --build build --config Release -j "$(sysctl -n hw.ncpu)"