Org card: mirror GitHub README + live model index
Browse files
README.md
CHANGED
|
@@ -5,145 +5,102 @@ colorFrom: blue
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
-
license:
|
| 9 |
---
|
| 10 |
|
| 11 |
<div align="center">
|
| 12 |
|
| 13 |
-
<img src="https://raw.githubusercontent.com/konjoai/squish/main/assets/squish-logo-1.png" width="
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
[](https://github.com/konjoai/squish)
|
| 20 |
-
[ β a local inference engine for Apple Silicon that gets models off disk and into memory in under a second.
|
| 31 |
-
|
| 32 |
-
Every model here was compressed with Squish's INT4 quantization pipeline and is ready to load directly with `squish pull`. No setup, no Python environment, no cloud.
|
| 33 |
|
| 34 |
```bash
|
| 35 |
brew tap konjoai/squish
|
| 36 |
-
brew trust konjoai/squish
|
| 37 |
brew install squish
|
| 38 |
-
squish
|
| 39 |
-
squish run qwen3:8b
|
| 40 |
```
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
Compression takes time. A Qwen3-8B model compresses in roughly 8 minutes on an M3. You shouldn't have to wait for that on first run. Models in this org are pre-compressed and validated β pull once, load instantly every time after.
|
| 47 |
-
|
| 48 |
-
| Format | What it means |
|
| 49 |
-
|--------|--------------|
|
| 50 |
-
| `*-bf16-squished` | INT4-compressed, ready for `squish run` |
|
| 51 |
-
|
| 52 |
-
---
|
| 53 |
-
|
| 54 |
-
## Available models
|
| 55 |
|
| 56 |
-
|
| 57 |
-
|-------|-----------|----------|---------------|---------|
|
| 58 |
-
| [Qwen3-8B](https://huggingface.co/squishai/Qwen3-8B-bf16-squished) | `qwen3:8b` | 16.4 GB | 4.4 GB | 128k |
|
| 59 |
-
| [Qwen3-4B](https://huggingface.co/squishai/Qwen3-4B-bf16-squished) | `qwen3:4b` | 8.2 GB | 2.2 GB | 32k |
|
| 60 |
-
| [Qwen3-0.6B](https://huggingface.co/squishai/Qwen3-0.6B-bf16-squished) | `qwen3:0.6b` | 1.3 GB | 0.9 GB | 32k |
|
| 61 |
-
| [Qwen2.5-7B-Instruct](https://huggingface.co/squishai/Qwen2.5-7B-Instruct-bf16-squished) | `qwen2.5:7b` | 14.4 GB | 3.9 GB | 128k |
|
| 62 |
-
| [Qwen2.5-1.5B-Instruct](https://huggingface.co/squishai/Qwen2.5-1.5B-Instruct-bf16-squished) | `qwen2.5:1.5b` | 3.1 GB | 0.9 GB | 32k |
|
| 63 |
-
| [Llama-3.2-3B-Instruct](https://huggingface.co/squishai/Llama-3.2-3B-Instruct-bf16-squished) | `llama3.2:3b` | 6.4 GB | 1.7 GB | 128k |
|
| 64 |
-
| [Llama-3.2-1B-Instruct](https://huggingface.co/squishai/Llama-3.2-1B-Instruct-bf16-squished) | `llama3.2:1b` | 2.5 GB | 0.7 GB | 128k |
|
| 65 |
-
| [Gemma-3-4B-Instruct](https://huggingface.co/squishai/gemma-3-4b-it-bf16-squished) | `gemma3:4b` | 9.8 GB | 2.6 GB | 128k |
|
| 66 |
-
| [Gemma-3-1B-Instruct](https://huggingface.co/squishai/gemma-3-1b-it-bf16-squished) | `gemma3:1b` | 2.0 GB | 0.5 GB | 32k |
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
-
|
|
|
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|-------|--------------|--------|-----------|
|
| 76 |
-
| Qwen3-8B | **0.43s** | 4.2s | 6.1s |
|
| 77 |
-
| Llama-3.2-3B | **0.33s** | 1.8s | 2.4s |
|
| 78 |
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
-
-
|
|
|
|
| 82 |
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
-
|
|
|
|
| 86 |
|
| 87 |
-
|
| 88 |
-
from openai import OpenAI
|
| 89 |
-
|
| 90 |
-
client = OpenAI(base_url="http://localhost:11435/v1", api_key="squish")
|
| 91 |
-
response = client.chat.completions.create(
|
| 92 |
-
model="qwen3:8b",
|
| 93 |
-
messages=[{"role": "user", "content": "Explain attention mechanisms briefly."}]
|
| 94 |
-
)
|
| 95 |
-
print(response.choices[0].message.content)
|
| 96 |
-
```
|
| 97 |
|
| 98 |
-
|
| 99 |
-
# Or point your existing tools at it
|
| 100 |
-
export OPENAI_BASE_URL=http://localhost:11435/v1
|
| 101 |
-
export OPENAI_API_KEY=squish
|
| 102 |
-
```
|
| 103 |
-
|
| 104 |
-
---
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
- **INT4 quantization** via a Rust extension (`squish_quant_rs`) with ARM NEON acceleration β 8β12 GB/s throughput on Apple Silicon
|
| 111 |
-
- **Compressed weight loader** β weights stay compressed on disk and decompress directly into Metal-mapped memory at load time
|
| 112 |
-
- **KV cache quantization** β attention cache stored at reduced precision during generation, not just weights
|
| 113 |
-
|
| 114 |
-
The result is a model that fits in memory on a base M3 16GB and loads faster than Ollama can parse its configuration.
|
| 115 |
-
|
| 116 |
-
---
|
| 117 |
-
|
| 118 |
-
## Using models directly with mlx_lm
|
| 119 |
-
|
| 120 |
-
```python
|
| 121 |
-
from mlx_lm import load, generate
|
| 122 |
-
|
| 123 |
-
model, tokenizer = load("squishai/Qwen3-8B-bf16-squished")
|
| 124 |
-
response = generate(model, tokenizer, prompt="Hello", max_tokens=100)
|
| 125 |
-
```
|
| 126 |
-
|
| 127 |
-
---
|
| 128 |
-
|
| 129 |
-
## Requirements
|
| 130 |
-
|
| 131 |
-
- macOS 13.0 or later
|
| 132 |
-
- Apple Silicon (M1, M2, M3, M4, M5)
|
| 133 |
-
- Sufficient unified memory for the model (see table above)
|
| 134 |
-
|
| 135 |
-
> Intel Macs and Linux are not supported. Windows is not planned.
|
| 136 |
-
|
| 137 |
-
---
|
| 138 |
|
| 139 |
## Links
|
| 140 |
|
| 141 |
-
-
|
| 142 |
-
-
|
| 143 |
-
-
|
|
|
|
|
|
|
| 144 |
|
| 145 |
---
|
| 146 |
|
| 147 |
-
*
|
| 148 |
-
|
| 149 |
-
Built by [Konjo AI](https://github.com/konjoai) Β· MIT License
|
|
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
license: other
|
| 9 |
---
|
| 10 |
|
| 11 |
<div align="center">
|
| 12 |
|
| 13 |
+
<img src="https://raw.githubusercontent.com/konjoai/squish/main/assets/squish-logo-1.png" width="320" alt="Squish" />
|
| 14 |
|
| 15 |
+
# Squish β pre-squished models for Apple Silicon
|
| 16 |
+
|
| 17 |
+
**The fastest way to run local LLMs on Apple Silicon.** Sub-second model loads.
|
| 18 |
+
Beats Ollama on throughput, tail latency, and full-response time. One
|
| 19 |
+
OpenAI/Ollama-compatible daemon β no cloud, no API keys, fully offline.
|
| 20 |
|
| 21 |
[](https://github.com/konjoai/squish)
|
| 22 |
+
[](https://pypi.org/project/squish-ai/)
|
| 23 |
+
[](https://squish.run)
|
| 24 |
+
[](https://github.com/konjoai/squish/blob/main/LICENSE)
|
| 25 |
|
| 26 |
</div>
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
+
## Run a model in one command
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
```bash
|
| 33 |
brew tap konjoai/squish
|
|
|
|
| 34 |
brew install squish
|
| 35 |
+
squish run qwen2.5:7b # pulls a pre-squished model + starts a local server
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
+
The daemon serves an OpenAI (`/v1/*`) **and** Ollama (`/api/*`) API on port
|
| 39 |
+
11435 β point any existing client at it and go. Prefer pipx?
|
| 40 |
+
`pipx install squish-ai`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
## Models in this org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
+
Every model below is INT4-quantized (4-bit, group size 64, affine) into MLX
|
| 45 |
+
format and ready for `squish run`. Sizes are the actual on-disk download from
|
| 46 |
+
this org; raw is the source bf16 checkpoint.
|
| 47 |
|
| 48 |
+
| Model | Run it | Raw (bf16) | Squished | Saved | Context |
|
| 49 |
+
|-------|--------|-----------:|---------:|:-----:|--------:|
|
| 50 |
+
| [Qwen2.5-1.5B-Instruct](https://huggingface.co/squishai/Qwen2.5-1.5B-Instruct-bf16-squished) | `squish run qwen2.5:1.5b` | 3.1 GB | **0.9 GB** | 72% | 32,768 |
|
| 51 |
+
| [Qwen2.5-7B-Instruct](https://huggingface.co/squishai/Qwen2.5-7B-Instruct-bf16-squished) | `squish run qwen2.5:7b` | 15.2 GB | **4.3 GB** | 72% | 32,768 |
|
| 52 |
+
| [Qwen3-0.6B](https://huggingface.co/squishai/Qwen3-0.6B-bf16-squished) | `squish run qwen3:0.6b` | 1.2 GB | **0.35 GB** | 71% | 40,960 |
|
| 53 |
+
| [Qwen3-4B](https://huggingface.co/squishai/Qwen3-4B-bf16-squished) | `squish run qwen3:4b` | 8.0 GB | **2.3 GB** | 72% | 40,960 |
|
| 54 |
+
| [Qwen3-8B](https://huggingface.co/squishai/Qwen3-8B-bf16-squished) | `squish run qwen3:8b` | 16.4 GB | **4.6 GB** | 72% | 40,960 |
|
| 55 |
+
| [Llama-3.2-1B-Instruct](https://huggingface.co/squishai/Llama-3.2-1B-Instruct-bf16-squished) | `squish run llama3.2:1b` | 2.5 GB | **0.7 GB** | 72% | 131,072 |
|
| 56 |
+
| [Llama-3.2-3B-Instruct](https://huggingface.co/squishai/Llama-3.2-3B-Instruct-bf16-squished) | `squish run llama3.2:3b` | 6.4 GB | **1.8 GB** | 72% | 131,072 |
|
| 57 |
+
| [Gemma-3-1B-Instruct](https://huggingface.co/squishai/gemma-3-1b-it-bf16-squished) | `squish run gemma3:1b` | 2.6 GB | **0.8 GB** | 72% | 32,768 |
|
| 58 |
+
| [Gemma-3-4B-Instruct](https://huggingface.co/squishai/gemma-3-4b-it-bf16-squished) | `squish run gemma3:4b` | 9.9 GB | **2.6 GB** | 74% | 131,072 |
|
| 59 |
|
| 60 |
+
`squish run <id>` downloads these exact weights and loads them in
|
| 61 |
+
**under a second** β no compression wait, no Python environment, no cloud.
|
| 62 |
|
| 63 |
+
## Why Squish
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
+
Squish separates how a model's weights are *stored* from how they *run*: stored
|
| 66 |
+
compressed and Metal-native, then `mmap`-ed straight into unified memory β no
|
| 67 |
+
dtype-conversion pass. It runs as a **persistent daemon** whose two-tier KV
|
| 68 |
+
cache reuses prefill across requests instead of re-running it.
|
| 69 |
|
| 70 |
+
Measured on an Apple **M3 (16 GB)**, **Qwen2.5-7B** vs Ollama, thermally
|
| 71 |
+
controlled (Squish INT4/INT3 vs Ollama Q4_K_M):
|
| 72 |
|
| 73 |
+
| Metric | Ollama | Squish |
|
| 74 |
+
|---|---:|---:|
|
| 75 |
+
| Full response @ 4,000-token prompt | 37.5 s | **3.8 s** (9.8Γ faster) |
|
| 76 |
+
| Cold start β load + first token (1.5B) | 20β30 s | **β 0.5 s** (54Γ load) |
|
| 77 |
+
| Decode throughput @ 75 tokens | 20.3 tok/s | **24.0 tok/s** (INT3) |
|
| 78 |
+
| Repeat-prompt TTFT (KV cache hit) | ~160 ms | **4β11 ms** |
|
| 79 |
+
| Peak RAM during inference | 5.14 GB | **3.50 GB** |
|
| 80 |
+
| Disk β 7B INT4 / INT3 | 4.36 GB | **4.00 / 3.56 GB** |
|
| 81 |
+
| Cold short-prompt TTFT | **167 ms** | 192 ms *(honest loss)* |
|
| 82 |
|
| 83 |
+
The one place Ollama wins is single-token latency on a cold, novel prompt β we
|
| 84 |
+
say so plainly. Full methodology and ablations: [BENCHMARKS.md](https://github.com/konjoai/squish/blob/main/BENCHMARKS.md).
|
| 85 |
|
| 86 |
+
## What it doesn't do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
+
Honesty is a feature. If any of these matter, Ollama or LM Studio is the right call:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
+
- **No GPU outside Apple Silicon** β it's MLX-based; CUDA users want vLLM or llama.cpp.
|
| 91 |
+
- **No multi-user serving** β one developer, one machine, not a production API.
|
| 92 |
+
- **No multimodal** β text only.
|
| 93 |
+
- **Slower first token on a cold, short prompt** than Ollama (192 ms vs 167 ms).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
## Links
|
| 96 |
|
| 97 |
+
- **GitHub** β [github.com/konjoai/squish](https://github.com/konjoai/squish)
|
| 98 |
+
- **Docs** β [squish.run](https://squish.run)
|
| 99 |
+
- **Install** β [`squish-ai` on PyPI](https://pypi.org/project/squish-ai/)
|
| 100 |
+
- **Benchmarks** β [BENCHMARKS.md](https://github.com/konjoai/squish/blob/main/BENCHMARKS.md)
|
| 101 |
+
- **License** β BUSL-1.1 ([LICENSE](https://github.com/konjoai/squish/blob/main/LICENSE))
|
| 102 |
|
| 103 |
---
|
| 104 |
|
| 105 |
+
*All models here are pre-squished by [Squish](https://github.com/konjoai/squish) Β· run any of them in one
|
| 106 |
+
command on Apple Silicon.*
|
|
|