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.5.1: version; the lab "gu check" print removed; the out-of-memory advice no longer mentions --bank (wrong in resident mode)

Picassoaiabdf5ad2e66e
diff --git a/Cargo.lock b/Cargo.lock
index 675632a..76f2550 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -289,7 +289,7 @@ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
[[package]]
name = "coachwhip"
-version = "0.5.4"
+version = "0.5.1"
dependencies = [
"anyhow",
"candle-core",
@@ -302,7 +302,7 @@ dependencies = [
[[package]]
name = "coachwhip-engine"
-version = "0.5.4"
+version = "0.5.1"
dependencies = [
"candle-core",
"candle-metal-kernels",
@@ -316,7 +316,7 @@ dependencies = [
[[package]]
name = "coachwhip-prepare"
-version = "0.5.4"
+version = "0.5.1"
dependencies = [
"anyhow",
"byteorder",
@@ -326,7 +326,7 @@ dependencies = [
[[package]]
name = "coachwhip-server"
-version = "0.5.4"
+version = "0.5.1"
dependencies = [
"anyhow",
"candle-core",
diff --git a/Cargo.toml b/Cargo.toml
index 1ffaa6b..f9b2c78 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.5.4"
+version = "0.5.1"
edition = "2021"
license = "Apache-2.0"
publish = false
diff --git a/crates/engine/src/experts.rs b/crates/engine/src/experts.rs
index 6224429..c276823 100644
--- a/crates/engine/src/experts.rs
+++ b/crates/engine/src/experts.rs
@@ -1953,7 +1953,6 @@ impl ExpertStore {
let mut out = Vec::with_capacity(3);
let (g0, u0) = (&self.slices[layer][0][0], &self.slices[layer][0][1]);
let gu = gu_on() && g0.dtype == u0.dtype && g0.dims == u0.dims && g0.bytes == u0.bytes;
- if layer == 0 { eprintln!("coachwhip: gu check on={} g {:?} {:?} {} u {:?} {:?} {}", gu_on(), g0.dtype, g0.dims, g0.bytes, u0.dtype, u0.dims, u0.bytes); }
if gu {
// expert e = [its gate rows][its up rows], one after the other
let b = g0.bytes;
diff --git a/crates/server/src/chat.rs b/crates/server/src/chat.rs
index 216be1b..599c27f 100644
--- a/crates/server/src/chat.rs
+++ b/crates/server/src/chat.rs
@@ -818,7 +818,7 @@ fn openai(mut s: TcpStream, body: &[u8], model: &mut Model, model_name: &str, to
eprintln!(" error detail: {e:#}");
let oom = gpu_out_of_memory(&e);
let msg = if oom {
- "The GPU ran out of memory. Coachwhip has stopped: close some apps, or start it again with a smaller --bank.".to_string()
+ "The GPU ran out of memory. Coachwhip has stopped: close other apps and start it again, or send a shorter prompt.".to_string()
} else {
format!("{e}")
};
@@ -972,7 +972,7 @@ fn handle(mut s: TcpStream, model: &mut Model, model_name: &str, tokenizer: &Tok
eprintln!(" error detail: {e:#}");
let oom = gpu_out_of_memory(&e);
let msg = if oom {
- "The GPU ran out of memory. Coachwhip has stopped: close some apps, or start it again with a smaller --bank.".to_string()
+ "The GPU ran out of memory. Coachwhip has stopped: close other apps and start it again, or send a shorter prompt.".to_string()
} else {
format!("The answer could not be finished: {e}")
};