openbmb/MathForm-8B

TEXT GENERATIONPricing:Input $0.468 / Output $1.82Concurrent Unit Cost:1Model Size:8BQuant:FP8Context Size:32kTool Calling:SupportedPublished:Aug 14, 2026License:apache-2.0Architecture:Transformer0.0K Open Weights Featherless Exclusive Cold

MathForm-8B is an 8 billion parameter autoformalization model developed by OpenBMB, designed to translate natural-language mathematical statements into Lean 4. It is trained using supervised fine-tuning and reinforcement learning on the FormalVerse dataset, incorporating Lean compilation and semantic-consistency feedback. This model excels at mathematical autoformalization, offering a context length of 32768 tokens for complex formalization tasks.

Loading preview...

MathForm-8B: Autoformalization for Lean 4

MathForm-8B is an 8 billion parameter model developed by OpenBMB, specifically engineered for mathematical autoformalization. Its primary function is to translate informal mathematical statements written in natural language into formal Lean 4 code.

Key Capabilities & Training

  • Lean 4 Autoformalization: Directly converts natural language math into Lean 4 formal proofs.
  • Advanced Training Methodology: Utilizes supervised fine-tuning on the FormalVerse dataset, followed by reinforcement learning. This RL phase incorporates feedback from Lean compilation and semantic consistency checks, enhancing the reliability and correctness of the generated formalizations.
  • Knowledge Retrieval and Verification: The training pipeline integrates Mathlib knowledge retrieval and verification-guided refinement, allowing the model to generate robust formal data.
  • High Context Length: Supports a context length of 32768 tokens, enabling the processing of longer and more complex mathematical descriptions.

Performance & Usage

MathForm-8B demonstrates competitive performance on various autoformalization benchmarks, as detailed in its accompanying paper. It is designed for integration with standard LLM inference frameworks like Transformers, vLLM, and SGLang, with recommended settings for optimal generation quality (temperature 0.6, top_p 0.95, max_new_tokens 16384).

Ideal Use Cases

  • Formalizing Mathematical Texts: Automating the conversion of mathematical papers or textbooks into formal proof languages.
  • Assisting Proof Engineers: Providing a powerful tool for generating initial formalizations that can then be refined.
  • Educational Tools: Helping students and researchers understand the formal structure of mathematical concepts.