Skip to content

The 80B Qwen3-Coder-Next on a 16 GB Mac, about 13 tok/s, fully offline. A mixture-of-experts inference engine for Apple silicon.

Rust

0.4.1: the installer downloads a ready-built Coachwhip

1picassoaib8b84ca0404c
diff --git a/Cargo.lock b/Cargo.lock
index cf58f81..2389b56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -290,7 +290,7 @@ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
[[package]]
name = "coachwhip"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"anyhow",
"candle-core",
@@ -303,7 +303,7 @@ dependencies = [
[[package]]
name = "coachwhip-engine"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"candle-core",
"candle-metal-kernels",
@@ -317,7 +317,7 @@ dependencies = [
[[package]]
name = "coachwhip-prepare"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"anyhow",
"byteorder",
@@ -327,7 +327,7 @@ dependencies = [
[[package]]
name = "coachwhip-server"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"anyhow",
"candle-core",
diff --git a/Cargo.toml b/Cargo.toml
index cef0c0a..b1f7916 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ members = ["crates/engine", "crates/server", "crates/cli", "crates/prepare"]
resolver = "2"
[workspace.package]
-version = "0.4.0"
+version = "0.4.1"
edition = "2021"
license = "Apache-2.0"
publish = false
diff --git a/README.md b/README.md
index 1ef1116..c458912 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,8 @@ Fast mode on a 16 GB Mac mini M4, bank 40:
One Rust binary. Everything on the GPU. Nothing leaves your machine.
+**New in 0.4.1** ([release notes](docs/releases/0.4.1.md)): **install in under a minute.** The installer downloads a ready-built Coachwhip; nothing to compile.
+
**New in 0.4.0** ([release notes](docs/releases/0.4.0.md)): **Qwen3.5-122B-A10B on a 16 GB Mac**, squeezed once on your own Mac from the publisher's file; how to set it up is in [The 122B](#the-122b). Coachwhip now keeps itself inside your Mac's memory: it picks the bank that fits and warns you when macOS is short. Every model's numbers, how they were measured and a quality check per file: [docs/MODELS.md](docs/MODELS.md).
**Tried it? Tell us how it ran**, good or bad, especially if it was slow, the fan worked hard, or it ran hot. [Open an issue](https://github.com/1picassoai/coachwhip/issues) with your Mac (chip and memory), macOS version, the model file, the `--bank` you used, and the speed line the chat page shows under each answer. Questions and ideas are welcome there too.
@@ -89,7 +91,7 @@ Try other MoE models and tell us what happens. If a model's architecture is not
|---|---|---|---|
| Mac | Apple silicon, M4 or later recommended; M1 to M3 run it slower. Tested on a Mac mini M4. | the same | the same |
| Memory | 16 GB | 16 GB; 24 GB has room to spare | 16 GB |
-| Disk | 105 GB free while squeezing, 46 GB once you delete the download; 3 GB for the build | 39 GB (Q3_K_M) or 49 GB (Q4_K_M) for the model, 3 GB for the build | 19 GB for the model, 3 GB for the build |
+| Disk | 105 GB free while squeezing, 46 GB once you delete the download; 15 MB for Coachwhip | 39 GB (Q3_K_M) or 49 GB (Q4_K_M) for the model, 15 MB for Coachwhip | 19 GB for the model, 15 MB for Coachwhip |
| macOS | Tested on macOS 26 | the same | the same |
## Install
@@ -100,9 +102,9 @@ One line in Terminal:
curl -fsSL https://raw.githubusercontent.com/1picassoai/coachwhip/main/install.sh | bash
```
-It checks your Mac, installs what is missing (Apple's command line tools, Rust) and builds Coachwhip into `~/coachwhip`, in about 10 minutes. Run it again at any time: it skips whatever is already done.
+It checks your Mac and downloads the ready-built Coachwhip into `~/coachwhip`, in under a minute. Nothing to compile, no Rust. Run it again at any time to update to the latest release.
-If a window asks to install Apple's command line tools, finish it and run the line again.
+To build from source instead, run it with `COACHWHIP_FROM_SOURCE=1` in front of `bash`: it installs Apple's command line tools and Rust if they are missing, and the build takes about 10 minutes.
## Bring a model
diff --git a/docs/releases/0.4.1.md b/docs/releases/0.4.1.md
new file mode 100644
index 0000000..e6ba8c7
--- /dev/null
+++ b/docs/releases/0.4.1.md
@@ -0,0 +1,18 @@
+# Coachwhip 0.4.1
+
+The same Coachwhip as 0.4.0, now installed ready-built.
+
+## Install in under a minute
+
+- **The installer downloads a ready-built Coachwhip** for Apple silicon from this release's page, checks it against its SHA-256 and unpacks it into `~/coachwhip`. No Apple command line tools, no Rust, nothing to compile. It used to build from source, which took about 10 minutes and 3 GB.
+- **Same paths as before.** The binaries sit where the build put them, `~/coachwhip/target/release/coachwhip` and `coachwhip-prepare`, so every command in the README and the wiki works unchanged. `coachwhip.sh` starts the chat as before.
+- **Building from source is still there:** run the installer with `COACHWHIP_FROM_SOURCE=1`. The installer also falls back to it if a release has no ready-built download.
+
+## Unchanged
+
+- The engine, the models and the numbers are 0.4.0's. Only the version number moved; the measurements in [docs/MODELS.md](../MODELS.md) stand.
+
+## Not tested
+
+- Macs other than an M4 with 16 GB on macOS 26.
+- macOS versions older than the one the binary was built on.
diff --git a/install.sh b/install.sh
index 453869e..7d0fbc8 100755
--- a/install.sh
+++ b/install.sh
@@ -1,18 +1,21 @@
#!/bin/bash
-# Coachwhip installer: checks this Mac, installs what is missing and builds Coachwhip. Bring your
-# own model. Run it again at any time; it skips whatever is already done.
+# Coachwhip installer: checks this Mac and downloads the ready-built Coachwhip for it. Bring your
+# own model. Run it again at any time; it brings the install up to the release below.
#
# curl -fsSL https://raw.githubusercontent.com/1picassoai/coachwhip/main/install.sh | bash
#
# COACHWHIP_DIR picks the install folder (default ~/coachwhip). COACHWHIP_VERSION picks the release
# tag (default: the latest signed release, below; it moves with every release).
+# COACHWHIP_FROM_SOURCE=1 builds from source instead (installs Apple's command line tools and Rust).
set -euo pipefail
# Everything runs inside main, so a download cut off half way through runs nothing.
main() {
DIR="${COACHWHIP_DIR:-$HOME/coachwhip}"
REPO="${COACHWHIP_REPO:-https://github.com/1picassoai/coachwhip}"
-VERSION="${COACHWHIP_VERSION:-v0.4.0}"
+VERSION="${COACHWHIP_VERSION:-v0.4.1}"
+ASSET="coachwhip-$VERSION-macos-arm64.tar.gz"
+DIST="${COACHWHIP_DIST:-$REPO/releases/download/$VERSION}"
say() { printf "\033[1;32m==>\033[0m %s\n" "$*"; }
die() { printf "\033[1;31merror:\033[0m %s\n" "$*" >&2; exit 1; }
@@ -22,27 +25,55 @@ die() { printf "\033[1;31merror:\033[0m %s\n" "$*" >&2; exit 1; }
[ "$(uname -m)" = arm64 ] || die "Coachwhip needs an Apple silicon Mac (M1 or later)."
mem_gb=$(( $(sysctl -n hw.memsize) / 1073741824 ))
[ "$mem_gb" -ge 16 ] || die "Coachwhip needs 16 GB of memory; this Mac has $mem_gb GB."
-need_gb=4
+need_gb=1
+[ "${COACHWHIP_FROM_SOURCE:-0}" = 1 ] && need_gb=4
mkdir -p "$DIR"
free_gb=$(df -g "$DIR" | awk 'NR==2 {print $4}')
[ "$free_gb" -ge "$need_gb" ] || die "Coachwhip needs $need_gb GB of free disk; there are $free_gb GB."
say "Apple silicon, $mem_gb GB of memory, $free_gb GB free: good."
-# 2. Apple's command line tools
+# 2. Coachwhip, ready-built
+if [ "${COACHWHIP_FROM_SOURCE:-0}" != 1 ]; then
+ say "Downloading Coachwhip $VERSION"
+ tmp="$(mktemp -d)"
+ if curl -fsSL -o "$tmp/$ASSET" "$DIST/$ASSET" && curl -fsSL -o "$tmp/$ASSET.sha256" "$DIST/$ASSET.sha256"; then
+ (cd "$tmp" && shasum -a 256 -c "$ASSET.sha256" >/dev/null) || die "The download does not match its checksum; run the installer again."
+ tar -xzf "$tmp/$ASSET" -C "$DIR"
+ rm -rf "$tmp"
+ xattr -dr com.apple.quarantine "$DIR" 2>/dev/null || true
+ "$DIR/target/release/coachwhip" --help >/dev/null 2>&1 || die "Coachwhip downloaded but does not start on this Mac; try COACHWHIP_FROM_SOURCE=1."
+ done_msg
+ return
+ fi
+ rm -rf "$tmp"
+ say "No ready-built Coachwhip for $VERSION; building it from source instead"
+fi
+from_source
+done_msg
+}
+
+done_msg() {
+say "Done. Start Coachwhip with your model and its tokenizer:"
+printf "\n %s/coachwhip.sh /path/to/model.gguf /path/to/tokenizer.json\n\nIt opens the chat in your browser. Stop it with Ctrl+C.\n\n" "$DIR"
+}
+
+# The source build, for COACHWHIP_FROM_SOURCE=1 or a release without a ready-built download.
+from_source() {
+# Apple's command line tools
if ! xcode-select -p >/dev/null 2>&1; then
say "Installing Apple's command line tools. A window opens: finish it, then run this installer again."
xcode-select --install || true
exit 1
fi
-# 3. Rust
+# Rust
export PATH="$HOME/.cargo/bin:$PATH"
if ! command -v cargo >/dev/null 2>&1; then
say "Installing Rust"
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
fi
-# 4. Coachwhip
+# The source
if [ -d "$DIR/.git" ]; then
say "Updating Coachwhip to $VERSION"
git -C "$DIR" fetch -q --depth 1 origin "refs/tags/$VERSION:refs/tags/$VERSION"
@@ -50,7 +81,7 @@ if [ -d "$DIR/.git" ]; then
elif [ -f "$DIR/Cargo.toml" ]; then
say "Using the Coachwhip source already in $DIR"
else
- say "Downloading Coachwhip $VERSION"
+ say "Downloading the Coachwhip $VERSION source"
tmp="$(mktemp -d)"
git clone -q --depth 1 --branch "$VERSION" "$REPO" "$tmp/coachwhip"
cp -R "$tmp/coachwhip/." "$DIR/"
@@ -71,9 +102,6 @@ if ! cargo build --release 2> build.log; then
die "The build failed; see $DIR/build.log"
fi
fi
-
-say "Done. Start Coachwhip with your model and its tokenizer:"
-printf "\n %s/coachwhip.sh /path/to/model.gguf /path/to/tokenizer.json\n\nIt opens the chat in your browser. Stop it with Ctrl+C.\n\n" "$DIR"
}
main "$@"