How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf operablepattern/gemma-2b-it-Q:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf operablepattern/gemma-2b-it-Q:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf operablepattern/gemma-2b-it-Q:Q4_K_M
# Run inference directly in the terminal:
llama-cli -hf operablepattern/gemma-2b-it-Q:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf operablepattern/gemma-2b-it-Q:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf operablepattern/gemma-2b-it-Q:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf operablepattern/gemma-2b-it-Q:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf operablepattern/gemma-2b-it-Q:Q4_K_M
Use Docker
docker model run hf.co/operablepattern/gemma-2b-it-Q:Q4_K_M
Quick Links

This repository contains gemma 2B models quantized using llama.cpp.

For details of the model see https://huggingface.co/google/gemma-2b-it.

Details of the k-quants can be found here: https://github.com/ggerganov/llama.cpp/pull/1684

Provided files

Name Quant method Bits Size
gemma-2b-it-Q4_K_M.gguf Q4_K_M 4 1.63 GB
gemma-2b-it-Q5_K_M.gguf Q5_K_M 5 1.84 GB
Downloads last month
24
GGUF
Model size
3B params
Architecture
gemma
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

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

Space using operablepattern/gemma-2b-it-Q 1