Document Mac memory guidance, first launch and backend rebuild
Browse files
README.md
CHANGED
|
@@ -38,12 +38,22 @@ The command writes `Ternary-Bonsai-2-9B-PTQ1_0.gguf` in the current directory an
|
|
| 38 |
|
| 39 |
The **29.65 MB Apple Silicon CLI** includes Python, the compiled codecs and the Metal backend. With the CLI and model downloaded, we restored the complete GGUF and ran 9B chat offline. This preview uses ad hoc signing and has no Apple notarization. Gatekeeper rejected its bundled interpreter in our macOS 26.5 assessment. [Download the Mac CLI preview](https://github.com/Optimatech-Labs-LLC/ternzip/releases/download/v0.3.0/ternzip-macos-arm64-v0.3.0.tar.gz)
|
| 40 |
|
| 41 |
-
From the directory containing both downloads, check the CLI checksum, extract it and
|
| 42 |
|
| 43 |
```sh
|
| 44 |
echo '5f116741e60bf6ebad5e5b8aec7e86076864f3a1adc01d1e1f6ac5d3465b1876 ternzip-macos-arm64-v0.3.0.tar.gz' | shasum -a 256 -c - &&
|
| 45 |
tar -xzf ternzip-macos-arm64-v0.3.0.tar.gz &&
|
| 46 |
-
./ternzip-macos-arm64-v0.3.0/ternzip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
```
|
| 48 |
|
| 49 |
| File | SHA-256 |
|
|
@@ -61,11 +71,11 @@ Direct chat uses the **Ternzip custom loader**. Run this example from the source
|
|
| 61 |
./ternzip chat /path/to/ternzip-9b.trits 'What is 17 × 6? Answer with the number only.'
|
| 62 |
```
|
| 63 |
|
| 64 |
-
The prebuilt CLI includes the **2,552,087-byte** Metal backend. If you run the launcher from source, its first 9B chat fetches the same archive from the GitHub release. The launcher checks its SHA-256 (`d08f786ab98d5830daa646f7ef4d80012cf24b89ba11a98276cf8c012f7ce0b9`) and each extracted library before use. You can supply the download yourself with `TERNZIP_9B_BACKEND_ARCHIVE=/path/to/ternzip-metal-macos-arm64-v0.3.0.tar.gz`. Restore runs without Metal. [Exact backend download](https://github.com/Optimatech-Labs-LLC/ternzip/releases/download/v0.3.0/ternzip-metal-macos-arm64-v0.3.0.tar.gz) · [Backend source
|
| 65 |
|
| 66 |
## Limitations
|
| 67 |
|
| 68 |
-
- **
|
| 69 |
- **Hardware.** Direct inference requires Apple Silicon and Metal. We tested one M4 Pro. The prebuilt CLI targets macOS 14 or later and was tested on macOS 26.5.
|
| 70 |
- **Workload.** The speed and token matches cover eight English text prompts, three starts, one greedy stream and up to 256 generated tokens per chat. Vision and speculative decoding use separate files from Prism. [Benchmark data](https://github.com/Optimatech-Labs-LLC/ternzip/blob/v0.3.0/benchmark-9b.json) · [Prism’s packing guide](https://huggingface.co/prism-ml/Ternary-Bonsai-2-9B-gguf#choosing-a-packing)
|
| 71 |
|
|
|
|
| 38 |
|
| 39 |
The **29.65 MB Apple Silicon CLI** includes Python, the compiled codecs and the Metal backend. With the CLI and model downloaded, we restored the complete GGUF and ran 9B chat offline. This preview uses ad hoc signing and has no Apple notarization. Gatekeeper rejected its bundled interpreter in our macOS 26.5 assessment. [Download the Mac CLI preview](https://github.com/Optimatech-Labs-LLC/ternzip/releases/download/v0.3.0/ternzip-macos-arm64-v0.3.0.tar.gz)
|
| 40 |
|
| 41 |
+
From the directory containing both downloads, check the CLI checksum, extract it and ask it to print its version.
|
| 42 |
|
| 43 |
```sh
|
| 44 |
echo '5f116741e60bf6ebad5e5b8aec7e86076864f3a1adc01d1e1f6ac5d3465b1876 ternzip-macos-arm64-v0.3.0.tar.gz' | shasum -a 256 -c - &&
|
| 45 |
tar -xzf ternzip-macos-arm64-v0.3.0.tar.gz &&
|
| 46 |
+
./ternzip-macos-arm64-v0.3.0/ternzip --version
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
If the checksum passes and macOS shows an unidentified-developer or verification alert for the preview, Apple provides a per-item approval for software you trust.
|
| 50 |
+
|
| 51 |
+
1. Dismiss the alert. Open **System Settings → Privacy & Security** and scroll to **Security**.
|
| 52 |
+
2. Select **Open Anyway** for the item named in the alert. Confirm **Open** and authenticate if prompted. On a managed Mac the option may be unavailable. The source installation above is an alternative.
|
| 53 |
+
3. Run the same `--version` command again. Once it prints `ternzip v0.3.0`, restore the model with the command below. [Apple’s instructions for opening a trusted download](https://support.apple.com/en-us/102445)
|
| 54 |
+
|
| 55 |
+
```sh
|
| 56 |
+
./ternzip-macos-arm64-v0.3.0/ternzip restore ./ternzip-9b.trits
|
| 57 |
```
|
| 58 |
|
| 59 |
| File | SHA-256 |
|
|
|
|
| 71 |
./ternzip chat /path/to/ternzip-9b.trits 'What is 17 × 6? Answer with the number only.'
|
| 72 |
```
|
| 73 |
|
| 74 |
+
The prebuilt CLI includes the **2,552,087-byte** Metal backend. If you run the launcher from source, its first 9B chat fetches the same archive from the GitHub release. The launcher checks its SHA-256 (`d08f786ab98d5830daa646f7ef4d80012cf24b89ba11a98276cf8c012f7ce0b9`) and each extracted library before use. You can supply the download yourself with `TERNZIP_9B_BACKEND_ARCHIVE=/path/to/ternzip-metal-macos-arm64-v0.3.0.tar.gz`. Restore runs without Metal. [Exact backend download](https://github.com/Optimatech-Labs-LLC/ternzip/releases/download/v0.3.0/ternzip-metal-macos-arm64-v0.3.0.tar.gz) · [Backend source and patches](https://github.com/Optimatech-Labs-LLC/ternzip/tree/v0.3.0/backend) · [Rebuild on Apple Silicon](https://github.com/Optimatech-Labs-LLC/ternzip/blob/main/backend/README.md#rebuild-on-apple-silicon) · [Checksum manifest](https://github.com/Optimatech-Labs-LLC/ternzip/blob/v0.3.0/src/metal9.json)
|
| 75 |
|
| 76 |
## Limitations
|
| 77 |
|
| 78 |
+
- **Unified memory for chat.** We recommend **16 GB or more** to leave room for macOS and other apps. We tested a **48 GB M4 Pro**. **8 GB Macs are untested**, and the minimum is unknown. The loader counted 1,999,911,846 bytes of weights, tables, row cache and decoder reserve. Across 24 replies, macOS reported a **2.56–3.62 GB** process footprint after chat. Peak resident memory reached **5.38–5.40 GB** during the three starts. Process measurements use decimal GB.
|
| 79 |
- **Hardware.** Direct inference requires Apple Silicon and Metal. We tested one M4 Pro. The prebuilt CLI targets macOS 14 or later and was tested on macOS 26.5.
|
| 80 |
- **Workload.** The speed and token matches cover eight English text prompts, three starts, one greedy stream and up to 256 generated tokens per chat. Vision and speculative decoding use separate files from Prism. [Benchmark data](https://github.com/Optimatech-Labs-LLC/ternzip/blob/v0.3.0/benchmark-9b.json) · [Prism’s packing guide](https://huggingface.co/prism-ml/Ternary-Bonsai-2-9B-gguf#choosing-a-packing)
|
| 81 |
|