Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint
Unofficial Hacker News client; not affiliated with Y Combinator.
simonw · · focus · HN ↗
This should work:
Then open http://localhost:8331 for the (very good) baked in llama-server web UI... or run a prompt via the API like this: That's running at ~20 token/second for me on an M5 Pro (after a server restart I got 44 token/second, not sure why), but I'm pretty sure something isn't working right, on startup the server said "ggml_metal_device_init: - the tensor API is not supported in this environment - disabling".[deleted] · · focus · HN ↗
[deleted]
simonw · · focus · HN ↗
<a href="https://tools.simonwillison.net/markdown-svg-renderer?url=https%3A%2F%2Fgist.github.com%2Fsimonw%2Fba4cf3a88f4e7dc32994f2672150f770" rel="nofollow">https://tools.simonwillison.net/markdown-svg-renderer?url=ht...
It took 18 minutes 20 seconds. Pretty decent for a 5.5GB model file.
kadoban · · focus · HN ↗
Forgeties79 · · focus · HN ↗
bigwheels · · focus · HN ↗
tomcam · · focus · HN ↗
kadoban · · focus · HN ↗
[deleted] · · focus · HN ↗
[deleted]
rahimnathwani · · focus · HN ↗
raylad · · focus · HN ↗
For my "Please recite Jabberwocky" test the bf16 almost passes but the ternary and even fp8 versions fail badly.
ctolsen · · focus · HN ↗
<a href="https://gist.github.com/ctolsen/b2883e7cbf5e4357fa04366019e60bfe" rel="nofollow">https://gist.github.com/ctolsen/b2883e7cbf5e4357fa04366019e6...
shmoil · · focus · HN ↗
refibrillator · · focus · HN ↗
They have a demo repo with a setup.sh script:
<a href="https://github.com/PrismML-Eng/Bonsai-demo" rel="nofollow">https://github.com/PrismML-Eng/Bonsai-demo
The release tag and weight file you suggest doesn’t match what they wrote.
simonw · · focus · HN ↗
If you have found better instructions and they work then use those instead!
Personally I prefer to download models directly rather than running some `./setup.sh` script where I need to then review what it does first.
refibrillator · · focus · HN ↗
Would be good to know if the release and weights from their demo repo work better. I’m trying on a 4090 and will report back.
fnordpiglet · · focus · HN ↗
nikwen · · focus · HN ↗
iJohnDoe · · focus · HN ↗
Zetaphor · · focus · HN ↗
hedgehog · · focus · HN ↗
xlazom00 · · focus · HN ↗
rahimnathwani · · focus · HN ↗
francisjp · · focus · HN ↗
Commenting because the fix I proposed was merged in roughly 49 commits after the PrismML Fork. The “tensor API is not supported” warning occurred because llama.cpp’s startup probe fails to compile a matmul2d kernel: Metal’s tensor headers require language version 4.0, but ggml-metal-device.m previously omitted MTLCompileOptions.languageVersion, disabling the API universally.
Here’s a link to the diff if you want to try and update that fork to take advantage of the prefill gains afforded by the hardware: <a href="https://github.com/ggml-org/llama.cpp/pull/27461/changes" rel="nofollow">https://github.com/ggml-org/llama.cpp/pull/27461/changes
jb_briant · · focus · HN ↗
wombat23 · · focus · HN ↗
aktenlage · · focus · HN ↗
wombat23 · · focus · HN ↗
ekianjo · · focus · HN ↗
zepearl · · focus · HN ↗
Am I understanding correctly that no draft model exists (will never exist or just currently does not exist yet)?
There is no draft file in Huggingface's repository ( <a href="https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/tree/main" rel="nofollow">https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/tr... ) and in the file "scripts/download_models.sh" of the demo repository ( <a href="https://github.com/PrismML-Eng/Bonsai-demo/blob/main/scripts/download_models.sh" rel="nofollow">https://github.com/PrismML-Eng/Bonsai-demo/blob/main/scripts... ) I see this remark:
jimmySixDOF · · focus · HN ↗
wombat23 · · focus · HN ↗
ranger_danger · · focus · HN ↗
ricardobayes · · focus · HN ↗
jakswa · · focus · HN ↗
ithkai92 · · focus · HN ↗
./llama-prism-b10685-7dffb15/llama-server \ -m Ternary-Bonsai-2-27B-PQ2_0.gguf \ --port 8331 -ngl 99 -fa on -c 65536 --jinja \ --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0