Run this model with HF Jobs

Run davinci-prover/davinci-prover-9B-midtrain-SFT 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/davinci-prover/davinci-prover-9B-midtrain-SFT. 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/davinci-prover/davinci-prover-9B-midtrain-SFT 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/davinci-prover/davinci-prover-9B-midtrain-SFT. 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/davinci-prover/davinci-prover-9B-midtrain-SFT. 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.

DaVinci-Prover-9B-Midtrain-SFT

DaVinci-Prover-9B-Midtrain-SFT is a 9B model for proving theorems in Lean 4. It is trained to work through a proof over multiple turns, call tools, and revise a Lean submission using feedback. The starting checkpoint was obtained by continuing pretraining from Qwen3.5-9B-Base with 32K-token sequences. Mid-training checkpoint

Supervised fine-tuning

The SFT dataset contains 35,291 successful proof trajectories generated by DeepSeek V4.1 Flash in Lean 4.35.0. Each trajectory records the theorem, the assistant’s reasoning and tool calls, the feedback it received, and its verified Lean submission. The training objective applied loss to the assistant’s tokens, with the theorem and tool responses provided as context. Agentic Prover SFT dataset

We used 34,955 trajectories for training and held out 336 for validation. The released weights are from the end of epoch 7 (optimizer step 1,918), with a global batch size of 128 and a peak learning rate of 3 × 10⁻⁵.

Theorem-proving results

The table reports pass@1 for one sampled proof trajectory per scored theorem. The agent used temperature 1.0 and top-p 1.0, with up to 200 turns and 200 tool calls per theorem. A proof counted as solved when the verifier accepted the submitted Lean code. DaVinci-Prover evaluation harness

Benchmark Solved / scored Pass@1
miniF2F test 230 / 243 94.65%
FATE-H 28 / 100 28.00%
FATE-X 5 / 100 5.00%
Putnam200 (199 of 200 scored) 36 / 199 18.09%

For comparison, we also fine-tuned Qwen3.5-9B-Base directly on the same trajectories for seven epochs. On FATE-H, the mid-trained model solved 28 theorems and the direct-SFT model solved 20. On the 242 miniF2F theorems scored for both models, the mid-trained model solved 230 and the direct-SFT model solved 228.

Downloads last month
38
Safetensors
Model size
9B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for davinci-prover/davinci-prover-9B-midtrain-SFT

Finetuned
(1)
this model

Dataset used to train davinci-prover/davinci-prover-9B-midtrain-SFT