GGUF
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 ddh0/GPT-2-GGUF:
# Run inference directly in the terminal:
llama cli -hf ddh0/GPT-2-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf ddh0/GPT-2-GGUF:
# Run inference directly in the terminal:
llama cli -hf ddh0/GPT-2-GGUF:
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 ddh0/GPT-2-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf ddh0/GPT-2-GGUF:
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 ddh0/GPT-2-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf ddh0/GPT-2-GGUF:
Use Docker
docker model run hf.co/ddh0/GPT-2-GGUF:
Quick Links

This is openai-community/gpt2, converted to the GGUF format.

The full-precision GGUF model is provided along with q8_0 and q4_K_S quantizations.

Conversion and quantization is performed with llama.cpp commit ed9d285.

Downloads last month
26
GGUF
Model size
0.2B params
Architecture
gpt2
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

32-bit

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