How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf tzervas/lab-bitnet-b1.58-2B-4T-i2s
# Run inference directly in the terminal:
llama cli -hf tzervas/lab-bitnet-b1.58-2B-4T-i2s
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf tzervas/lab-bitnet-b1.58-2B-4T-i2s
# Run inference directly in the terminal:
llama cli -hf tzervas/lab-bitnet-b1.58-2B-4T-i2s
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf tzervas/lab-bitnet-b1.58-2B-4T-i2s
# Run inference directly in the terminal:
./build/bin/llama cli -hf tzervas/lab-bitnet-b1.58-2B-4T-i2s
Use Docker
docker model run hf.co/tzervas/lab-bitnet-b1.58-2B-4T-i2s
Quick Links

lab-bitnet BitNet-b1.58-2B-4T I2_S

Official Microsoft b1.58 I2_S GGUF (ggml-model-i2_s.gguf), not GGUF Q4.

Card targets: gpu5080 sm120, akula-prime sm86, gpu-1080ti sm61 (file is ~1.2 GB).

Layer-group ternary convert (scripts/layer_group_quant.py) checkpointed on gpu5080 against the bf16 safetensors. See ggml-model-i2_s.quant.json.

Downloads last month
48
GGUF
Model size
2B params
Architecture
bitnet-b1.58
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support