Ternary model for small GPUs

110.193.***.***
14

Introducing the Bonsai27b model (https://huggingface.co/prism-ml/Ternary-Bonsai-27B-gguf), which is a ternary (ternary) model conversion of the Qwen 3.6 27b model. The size is only about 2~8 gigabytes. Nevertheless, its performance on benchmarks is quite good.

However, this requires a special llama.cpp.

Format

llama.cpp version

Status

1-bit (Q1_0)

Upstream llama.cpp (latest)

✅ Works with a normal build

Ternary (Q2_0)

PrismML fork (prism branch)

❌ Cannot be built normally

How to run Ternary

# Use the PrismML fork's prism branch
git clone -b prism https://github.com/PrismML-Eng/llama.cpp
cd llama.cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON  # Or -DGGML_METAL=ON
cmake --build build -j

Why is this necessary?

Ternary encodes {-1, 0, +1} three values in the Q2_0_g128 format. Standard llama.cpp does not have this kernel. PrismML wrote a custom 2-bit hybrid attention kernel and put it in the prism branch.

Binaries are also available

If you don't want to build, you can get pre-built binaries for macOS/Linux/Windows from the PrismML llama.cpp releases.


Sources: llama.cpp Docs · Ternary-Bonsai-8B-gguf · Ternary-Bonsai-27B-gguf

로그인한 회원만 댓글 등록이 가능합니다.

개발한당

KR | ID | EN
  • IDR
  • KOR
8.30 0.01

2026.07.21 KEB 하나은행 고시회차 864회

다가오는 한인 행사일정

  • 등록 된 일정이 없어요!