Text Generation
Transformers
Safetensors
qwen3_5
image-text-to-text
lean4
theorem-proving
formal-mathematics
agent
conversational
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
Add model card
Browse files123---license: apache-2.0---1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: apache-2.0base_model: Qwen/Qwen3.8-27Blibrary_name: transformerspipeline_tag: text-generationtags:- lean4- theorem-proving- formal-mathematics- agentdatasets:- PrincetonPLI/Goedel-Prover-V3-train---# Goedel-Prover-V3[Website](https://princeton-pli.github.io/Goedel-Prover-V3) ·[Code](https://github.com/princeton-pli/Goedel-Prover-V3) ·[FP8 model](https://huggingface.co/PrincetonPLI/Goedel-Prover-V3-FP8) ·[Training data](https://huggingface.co/datasets/PrincetonPLI/Goedel-Prover-V3-train)Goedel-Prover-V3 is a 27B Lean 4 theorem-proving agent, fine-tuned from[Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B). It works like a coding agent: in a sandboxholding only the statement file and a shell, it searches Mathlib, writes the proof, compiles itwith Lean, reads the errors and tries again, until it submits a proof.## UsageThe model is meant to be run inside its agent harness. The[code repository](https://github.com/princeton-pli/Goedel-Prover-V3) sets up the whole stack: Lean4.34.0 with Mathlib, the Apptainer sandbox, the vLLM server, the agent and the scoring. It alsoruns the model on your own statements:```bash.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 4MODEL_PATH=models/Goedel-Prover-V3 MANIFEST=.cache/mine/run/manifest.json bash scripts/run_local.sh```### Serving with vLLMTested with vLLM 0.19.0. The bf16 weights take 51 GiB; one server per four 80 GB GPUs holds thefull 262,144-token context for 16 concurrent agents.```bashvllm 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 `bash` tool** in the OpenAI function-calling format; the model answers with native toolcalls (`qwen3_coder` parser). The task is a Lean file `/work/Main.lean` whose target theoremends in `sorry`.- **Thinking kept across turns.** The reasoning parser returns the thinking in the response's`reasoning` field; send it back with each assistant turn, as the chat template keeps pastthinking.- **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'sthinking-budget sentence and lets the model finish, then drops that cut thinking from laterrequests. When a conversation reaches 180k tokens, the model summarizes its progress and theconversation restarts from the summary. The model was trained on trajectories in this format.## LicenseApache License 2.0.## Citation```bibtex@misc{park2026GoedelProverV3,title = {Goedel-Prover-V3: A Frontier Lean Agent for Research 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 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},}```
README.md+89