astro-weights
by astro-weights

gravity: run large models on consumer hardware.

brew install astro-weights/tap/gravity

macOS arm64 · 22.3 MB

Qwen3-VL-30B, 17.7 GB on a Mac M3 Pro, 18 GB

17.7 GB model filememory 18 GB

Generation, tokens per second

stock8.15
cache3.88
stream12.51

Prompt processing, tokens per second

stock1.81 to 2.17
cache0.90 to 0.96
stream5.34 to 5.60

3 warm runs, one prompt. Not a speed claim. Method

30B parameters. About 3B used per token.

gravity-bench.py
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-stream

Same answer, every run

Answers identical on rerun

gravity20 of 20
stock, 1 slot20 of 20
stock, 4 slots3 of 20

Qwen3.5-9B · 20 prompts · Mac M3 Pro. Method

Adapters

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/gravity
Install script · no sudo
curl -fsSL https://raw.githubusercontent.com/astro-weights/gravity/main/scripts/install.sh | sh
Then run an adapter
gravity run gemma-4-e4b-terse
Download · Apple silicon · unsigned
tar 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.gguf

sha256 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)"