Kimina-Prover-72B
is a theorem proving model developed by Project Numina and Kimi teams, focusing on competition style problem solving capabilities in Lean 4. It is trained via large scale reinforcement learning. It achieves 84.0% accuracy with Pass@32 on MiniF2F-test.
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
model_name = "AI-MO/Kimina-Prover-72B"
model = LLM(
model=model_name,
tensor_parallel_size=8, # Should have 8 GPUs on this node
max_model_len=131072,
)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
problem = "The volume of a cone is given by the formula $V = \frac{1}{3}Bh$, where $B$ is the area of the base and $h$ is the height. The area of the base of a cone is 30 square units, and its height is 6.5 units. What is the number of cubic units in its volume?"
formal_statement = """import Mathlibimport Aesopset_option maxHeartbeats 0open BigOperators Real Nat Topology Rat/-- The volume of a cone is given by the formula $V = \frac{1}{3}Bh$, where $B$ is the area of the base and $h$ is the height. The area of the base of a cone is 30 square units, and its height is 6.5 units. What is the number of cubic units in its volume? Show that it is 65.-/theorem mathd_algebra_478 (b h v : ℝ) (h₀ : 0 < b ∧ 0 < h ∧ 0 < v) (h₁ : v = 1 / 3 * (b * h)) (h₂ : b = 30) (h₃ : h = 13 / 2) : v = 65 := by"""
prompt = "Think about and solve the following problem step by step in Lean 4."
prompt += f"\n# Problem:{problem}"""
prompt += f"\n# Formal statement:\n```lean4\n{formal_statement}\n```\n"
messages = [
{"role": "system", "content": "You are an expert in mathematics and proving theorems in Lean 4."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
sampling_params = SamplingParams(temperature=0.6, top_p=0.95, max_tokens=8096)
output = model.generate(text, sampling_params=sampling_params)
output_text = output[0].outputs[0].text
print(output_text)
Runs of AI-MO Kimina-Prover-72B on huggingface.co
58
Total runs
1
24-hour runs
10
3-day runs
16
7-day runs
-21
30-day runs
More Information About Kimina-Prover-72B huggingface.co Model
Kimina-Prover-72B huggingface.co is an AI model on huggingface.co that provides Kimina-Prover-72B's model effect (), which can be used instantly with this AI-MO Kimina-Prover-72B model. huggingface.co supports a free trial of the Kimina-Prover-72B model, and also provides paid use of the Kimina-Prover-72B. Support call Kimina-Prover-72B model through api, including Node.js, Python, http.
Kimina-Prover-72B huggingface.co is an online trial and call api platform, which integrates Kimina-Prover-72B's modeling effects, including api services, and provides a free online trial of Kimina-Prover-72B, you can try Kimina-Prover-72B online for free by clicking the link below.
AI-MO Kimina-Prover-72B online free url in huggingface.co:
Kimina-Prover-72B is an open source model from GitHub that offers a free installation service, and any user can find Kimina-Prover-72B on GitHub to install. At the same time, huggingface.co provides the effect of Kimina-Prover-72B install, users can directly use Kimina-Prover-72B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.