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

Pythagoras-Prover-4B GGUF

GGUF quantizations of Pythagoras-LM/Pythagoras-Prover-4B โ€” a 4B model specialized in mathematical reasoning and formal theorem proving.

Quantized by tinyopsec.


Quantization Table

File Bits Size Use Case
model_f16.gguf 16 ~8.8 GB Full precision, reference
model_q8_0.gguf 8 ~4.7 GB Max quality, fits in 6GB VRAM
model_q6_k.gguf 6 ~3.6 GB Near-lossless, recommended
model_q5_k_m.gguf 5 ~3.1 GB Balanced quality/size
model_q5_k_s.gguf 5 ~3.0 GB Slightly smaller than K_M
model_q4_k_m.gguf 4 ~2.5 GB Good quality, popular choice
model_q4_k_s.gguf 4 ~2.4 GB Smaller footprint
model_q3_k_l.gguf 3 ~2.1 GB Low VRAM, acceptable quality
model_q3_k_m.gguf 3 ~2.0 GB Low VRAM
model_q3_k_s.gguf 3 ~1.9 GB Minimum recommended
model_q2_k.gguf 2 ~1.5 GB Extreme compression, lossy

VRAM Requirements

Quant Min VRAM Recommended
F16 10 GB 12 GB+
Q8_0 6 GB 8 GB
Q6_K 5 GB 6 GB
Q5_K_M / Q5_K_S 4 GB 5 GB
Q4_K_M / Q4_K_S 4 GB 4 GB
Q3_K_* 3 GB 4 GB
Q2_K 3 GB 3 GB

Usage

llama.cpp

./llama-cli \
  -m model_q4_k_m.gguf \
  -p "Prove that there are infinitely many prime numbers." \
  -n 512 \
  --temp 0.7

llama-cpp-python

from llama_cpp import Llama

llm = Llama(
    model_path="model_q4_k_m.gguf",
    n_ctx=4096,
    n_gpu_layers=-1,
)

response = llm(
    "Prove that sqrt(2) is irrational.",
    max_tokens=512,
    temperature=0.7,
)
print(response["choices"][0]["text"])

LM Studio

  1. Download any .gguf file from this repo
  2. Open LM Studio โ†’ Load Model โ†’ select the file
  3. Start chatting

Ollama

ollama run hf.co/tinyopsec/Pythagoras-Prover-4B-GGUF:Q4_K_M

Recommended Quant

Q4_K_M โ€” best balance of quality and size for most hardware.
Q6_K โ€” if you have 6GB+ VRAM and want near-lossless math reasoning.


Original Model

Downloads last month
2,449
GGUF
Model size
4B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

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

Model tree for tinyopsec/Pythagoras-Prover-4B-GGUF

Finetuned
Qwen/Qwen3-4B
Quantized
(1)
this model

Space using tinyopsec/Pythagoras-Prover-4B-GGUF 1