Run this model with HF Jobs
Run PrincetonPLI/Goedel-Prover-V3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/PrincetonPLI/Goedel-Prover-V3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/PrincetonPLI/Goedel-Prover-V3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/PrincetonPLI/Goedel-Prover-V3. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/PrincetonPLI/Goedel-Prover-V3. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use PrincetonPLI/Goedel-Prover-V3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PrincetonPLI/Goedel-Prover-V3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PrincetonPLI/Goedel-Prover-V3") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("PrincetonPLI/Goedel-Prover-V3") model = AutoModelForMultimodalLM.from_pretrained("PrincetonPLI/Goedel-Prover-V3", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PrincetonPLI/Goedel-Prover-V3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PrincetonPLI/Goedel-Prover-V3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PrincetonPLI/Goedel-Prover-V3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PrincetonPLI/Goedel-Prover-V3
- SGLang
How to use PrincetonPLI/Goedel-Prover-V3 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "PrincetonPLI/Goedel-Prover-V3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PrincetonPLI/Goedel-Prover-V3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "PrincetonPLI/Goedel-Prover-V3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PrincetonPLI/Goedel-Prover-V3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PrincetonPLI/Goedel-Prover-V3 with Docker Model Runner:
docker model run hf.co/PrincetonPLI/Goedel-Prover-V3
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("PrincetonPLI/Goedel-Prover-V3")
model = AutoModelForMultimodalLM.from_pretrained("PrincetonPLI/Goedel-Prover-V3", device_map="auto")
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
{"type": "text", "text": "What animal is on the candy?"}
]
},
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Goedel-Prover-V3
Website · Code · FP8 model · Training data
Goedel-Prover-V3 is a 27B Lean 4 theorem-proving agent, fine-tuned from Qwen3.8-27B. It works like a coding agent: in a sandbox holding only the statement file and a shell, it searches Mathlib, writes the proof, compiles it with Lean, reads the errors and tries again, until it submits a proof.
Usage
The model is meant to be run inside its agent harness. The code repository sets up the whole stack: Lean 4.34.0 with Mathlib, the Apptainer sandbox, the vLLM server, the agent and the scoring. It also runs the model on your own statements:
.venv/bin/hf download PrincetonPLI/Goedel-Prover-V3 --local-dir models/Goedel-Prover-V3
.venv/bin/python scripts/prepare_tasks.py my_statements/ --out .cache/mine --samples 4
MODEL_PATH=models/Goedel-Prover-V3 MANIFEST=.cache/mine/run/manifest.json bash scripts/run_local.sh
Serving with vLLM
Tested with vLLM 0.19.0. The bf16 weights take 51 GiB; one server per four 80 GB GPUs holds the full 262,144-token context for 16 concurrent agents.
vllm serve PrincetonPLI/Goedel-Prover-V3 \
--served-model-name Goedel-Prover-V3 \
--tensor-parallel-size 4 \
--max-model-len 262144 \
--gpu-memory-utilization 0.93 \
--enable-prefix-caching \
--gdn-prefill-backend triton \
--enable-auto-tool-choice --tool-call-parser qwen3_coder \
--reasoning-parser qwen3
What the model expects:
- One
bashtool in the OpenAI function-calling format; the model answers with native tool calls (qwen3_coderparser). The task is a Lean file/work/Main.leanwhose target theorem ends insorry. - Thinking kept across turns. The reasoning parser returns the thinking in the response's
reasoningfield; send it back with each assistant turn, as the chat template keeps past thinking. - Sampling: temperature 0.7 and 32,768 tokens per reply; top-p 0.95 and top-k 20 come from
generation_config.json. - Long attempts. The harness closes a reply cut off inside its thinking with Qwen3's thinking-budget sentence and lets the model finish, then drops that cut thinking from later requests. When a conversation reaches 180k tokens, the model summarizes its progress and the conversation restarts from the summary. The model was trained on trajectories in this format.
License
Apache License 2.0.
Citation
@misc{park2026GoedelProverV3,
title = {Goedel-Prover-V3: A Frontier Lean Agent for Research-level Mathematics on a Single GPU},
author = {Simon Park and Tomas Ortega and Rodrigo Porto and Jui-Hui Chung and Yoonsang Lee and Yikai Wu and Qishuo Yin and Ayush Khaitan and Alex Kontorovich and Sanjeev Arora and Danqi Chen and Liam Fowl},
year = {2026},
url = {https://princeton-pli.github.io/Goedel-Prover-V3},
}
@article{ortega2026miniLeanagent,
title = {Do Theorem Provers Need Theorem-Proving Agents? mini-Lean-agent: A Coding-Agent Baseline for Lean},
author = {Tomas Ortega and Simon Park and Ayush Khaitan and Liam Fowl and Alex Kontorovich and Sanjeev Arora},
journal = {arXiv preprint arXiv:2610.17331},
url = {https://arxiv.org/abs/2610.17331},
}
- Downloads last month
- 11
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PrincetonPLI/Goedel-Prover-V3") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)