docs/MAC.md: the memory table and the streaming rule follow setup's new rule (#3983)

cf5abac23 makes setup decide resident vs streaming with the engine's own rule (the weights plus 12 GiB beside them against Metal's share). The table's 'needs about' and 'recommended from' columns are recomputed from strata_control/mac_fit.py at cf5abac23, the streaming section's heading and rule sentence say the same, and Gyro-S needs about 43 GB to stay resident. The PR's note that Gyro-S on 64 GB runs out of Metal memory (4d56071aa) is not taken: not measured here. Wording approved by the coordinator.
This commit is contained in:
Niko1221 committed 2026-11-16 18:19:43 +01:00
1 parent 624cebd604
commit 55a6dc4146
1 file changed
+11 -9
+11 -9
View File
@@ -35,13 +35,13 @@ Intel engines are unchanged.
| Pack | The file the GPU maps | Needs about (with prompt buffers, KV, draft layer) | Recommended from |
| --- | --- | --- | --- |
| Q2_0 | 37.6 GB | 46 GB | 64 GB |
| IQ3_XXS | 47.0 GB | 55 GB | 74 GB (where IQ3_S does not fit) |
| IQ3_S (recommended; the default from 96 GB) | 54.8 GB | 63 GB | 96 GB |
| UD-Q4_K_XL (Unsloth; higher quality) | 82.6 GB | 91 GB | 128 GB |
| Q2_0 | 37.6 GB | 50 GB | 96 GB; streams below that |
| IQ3_XXS | 47.0 GB | 60 GB | 80 GB (where IQ3_S does not fit) |
| IQ3_S (recommended; the default from 96 GB) | 54.8 GB | 68 GB | 96 GB |
| UD-Q4_K_XL (Unsloth; higher quality) | 82.6 GB | 95 GB | 128 GB |
| UD-Q5_K_XL, UD-Q6_K_XL (Unsloth) | 103.9 / 114.8 GB | streams from the SSD on 128 GB | 128 GB, streamed |
| Gyro-S (agentionai, one 58.5 GB file) | 29.7 GB (the other 28.8 GB is the n-gram table) | 38 GB | 48 GB; streams below that |
| Gyro-M (agentionai, one 92.0 GB file) | 63.2 GB (+ the 28.8 GB table) | 71 GB | 96 GB; streams below that |
| Gyro-S (agentionai, one 58.5 GB file) | 29.7 GB (the other 28.8 GB is the n-gram table) | 43 GB | 64 GB; streams below that |
| Gyro-M (agentionai, one 92.0 GB file) | 63.2 GB (+ the 28.8 GB table) | 76 GB | 128 GB; streams below that |
- **The n-gram table.** Each pack also has a 28.8 GB n-gram table (the model's second file). It is read from the SSD a few rows at
a time and does not count against the memory above.
@@ -51,9 +51,11 @@ Intel engines are unchanged.
- **Setup recommends and never forces.** It recommends the pack by memory. A bigger pack chosen with `--model` is kept, with a
warning about what it risks.
### A Mac whose memory cannot hold the pack (32 to 48 GB)
### A Mac whose memory cannot hold the pack (32 to 64 GB)
The engine streams the experts from the SSD. It decides this itself when the experts are more than 60% of Metal's share.
The engine streams the experts from the SSD. It decides this itself: it streams when the model's weights plus 12 GiB for
everything beside them (prompt buffers, conversation memory, the draft layer, macOS) do not fit Metal's share. Setup uses the same
rule.
- It keeps the most-used experts in an arena and reads the rest as each token needs them, with read-ahead for the next layer's
likely experts. The arena is Metal's share, or the memory macOS reports as available less what it keeps for macOS (7 GB, or 15%
@@ -143,7 +145,7 @@ The Mac engine runs [Gyro](GYRO.md). The routed experts are trellis-coded blocks
Hadamard-rotated basis, read from the published file unchanged. The kernels are in `metal/kernels/quant.metal`, `moe.metal` and
`moe_mm.metal`. Setup offers Gyro-S and Gyro-M next to the other sizes (`./setup.sh --family gyro --model Gyro-S`), never as the
default, and says what the choice risks on your Mac's memory. The 28.8 GB n-gram table is inside the file and is read from the SSD
like every other pack's, so Gyro-S needs 58.5 GB of disk and about 38 GB of memory to stay resident.
like every other pack's, so Gyro-S needs 58.5 GB of disk and about 43 GB of memory to stay resident.
Gyro-M runs on the same kernels (checked tensor by tensor) but no Mac tested here could hold it. `metal/tests/gyro_parity.sh`
checks the decoder against the format definition and the expert kernels against a double-precision reference.