From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MathForm-8B

Date: 2026-11-15Commit: 8f6d09eSigned: 2DC28CC7B26A283B ✓

Text generation model with 8.2B parameters. Safetensors weights, 16.4 GB in all. Published by openbmb under Apache-2.0.

8.2B params16.4GBMathForm-8Bsafetensorspermissive
FactsParams8.2BSize16.4 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MathForm-8B
# manifest sha256 3750134ebeae… · 16.4 GB · 20 files
$ fw verify ./MathForm-8B openbmb/MathForm-8B
From sourceHosted (signed)openbmb/MathForm-8BLast check: 2026-11-15 03:30 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Qwen3-8B.

Works with

Overview

Size
16.4 GB
Weights
16.4 GB (safetensors)
Parameters
8.2B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
20, each with a sha256
Publisher
openbmb
Added
2026-11-15
Section
alt.freeweights.minicpm
Lineage

Original release from the publisher.

Base model: Qwen/Qwen3-8B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:30 UTCpassed

Model card

From the publisher at commit 8f6d09e. Shown as plain text with links; images open at the publisher.

MathForm: Scaling Mathematical Autoformalization with Knowledge Retrieval and Verification-Guided Refinement#

Paper Code FormalVerse Dataset

MathForm-8B is an autoformalization model that translates natural-language mathematical statements into Lean 4. It is released with the paper MathForm: Scaling Mathematical Autoformalization with Knowledge Retrieval and Verification-Guided Refinement.

The model is trained on FormalVerse through supervised fine-tuning followed by reinforcement learning using Lean compilation and semantic-consistency feedback.

Image: MathForm data construction and training pipeline

Figure 1: Overview of the MathForm data construction and training pipeline. The system combines Mathlib knowledge retrieval, compilation and semantic verification, and iterative refinement to generate reliable formal data, followed by trajectory reconstruction and training of MathForm-8B.

Results#

Image: Pass@8 results on six benchmarks

Figure 2: Pass@8 pass rates (%) under Syntax Check (SC) and Consistency Check (CC) for specialized autoformalizers on six benchmarks. AVG is the equally weighted macro-average across all six benchmarks. For each column, the best result is shown in bold and the second best is underlined.

Usage#

Transformers#
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "openbmb/MathForm-8B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id, torch_dtype=torch.bfloat16, device_map="auto"
)

prompt = (
    "Please convert the following informal math problem to a formal one in Lean 4 with a header. "
    "Use the following theorem names: my_favorite_theorem.\n\n"
    "Show that for every real number x, x^2 is non-negative."
)

messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs, max_new_tokens=16384, temperature=0.6, top_p=0.95
)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True))
vLLM#
vllm serve openbmb/MathForm-8B \
  --served-model-name MathForm-8B \
  --dtype bfloat16 \
  --max-model-len 16384
SGLang#
python -m sglang.launch_server \
  --model-path openbmb/MathForm-8B \
  --served-model-name MathForm-8B \
  --dtype bfloat16 \
  --context-length 16384

Both servers expose an OpenAI-compatible API at http://localhost:8000/v1/chat/completions.

SettingValue
temperature0.6
top_p0.95
max_new_tokens16384

Evaluation#

The evaluation pipeline, benchmark files, and Pass@k scripts are available in the MathForm repository. Compilation checks require a running Kimina Lean Server. The experiments use Lean 4.21.0.

License#

This project is licensed under the Apache License 2.0.

Citation#

@misc{pu2026mathformscalingmathematicalautoformalization,
      title={MathForm: Scaling Mathematical Autoformalization with Knowledge Retrieval and Verification-Guided Refinement}, 
      author={Lushi Pu and Weiming Zhang and Xinheng Xie and Zixuan Fu and Bingxiang He and Hengyu Zhao and Hongya Lyu and Xin Li and Jie Zhou and Yudong Wang},
      year={2026},
      eprint={2608.14221},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2608.14221}, 
}

Files

20 files · 16.4 GBWeights 16.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 20 files with their sha256
FileSizesha256
.gitattributes1.74 KBfbda8fa8aa5b83c1b847bf6daf99a40a98310f17ca9bc3b93f373cbc241a34d3
LICENSE11.3 KBa77474e4296c41843bc4fd685dd016028fb1e1da3e8739174b79f3fffcd0a5c3
README.md4.82 KBb833b14c7f1dd66d2a55a12b12d48a8b7a78ec6a3b9ea9d6241105ea49e1ad5f
README_zh.md4.29 KB9a2398403579cb0ba804cf58672763b15c89a05cd931e546070cd253e3eed247
added_tokens.json707 Bc0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680
assets/data-pipeline.png266 KB30d35cc171adfd37aa7176ed3ad6390653cc8a59adc7351a7f72052730dde3e6
assets/results.png305 KBf1b2de929760fe3b2f6336574c253bb019c5ef7a349bd6b17b00efc78f01fdf2
chat_template.jinja4.17 KBa55ee1b1660128b7098723e0abcd92caa0788061051c62d51cbe87d9cf1974d8
config.json1.54 KBb7ac788d8ce1ceda9b03569810f6b51f2d3e2e313107fd8298769603bfc0fa4b
generation_config.json241 B98d831b0f90d2041acdbbf9a95f412bc89249270297dccce6bbc3afd9a03d3a7
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00004.safetensors3.92 GB4e97e130e22869d3e7928a7bdace35d5b2734030333b610b9deb0672b8a8ca11
model-00002-of-00004.safetensors4.83 GBc9818181825bbefdf3d834ff113fc3f2b02e6146f8e55ab189c81bc539c261d8
model-00003-of-00004.safetensors4.94 GBdce9dd8ce331809ff206e58a1d249f6a33d6c535c0ba246cbf5a2a826d677827
model-00004-of-00004.safetensors2.70 GB1d9655d41483f0a0b363bbc5b2ae0d5d57dffa16a12f0d2c21ef1488b7d56b88
model.safetensors.index.json32.9 KBea83964f696cd2e031a4e2c30c179cabf2a4690a5ab33d211d32445fcf0908e0
special_tokens_map.json613 B76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json11.4 MBaeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
tokenizer_config.json5.43 KBcd5c1909da4950a610a9e3a6cb6763cff0381d91c6f0838855db8d5ae83d6c9f
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8f6d09e66b pinned now2026-11-15 03:30 UTC20 files · 16.4 GB

Use it

$ fw get openbmb/MathForm-8B
# manifest sha256 3750134ebeae… · 16.4 GB · 20 files
$ fw verify ./MathForm-8B openbmb/MathForm-8B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/MathForm-8B.json --dir ./MathForm-8B $ python3 fw.py verify ./MathForm-8B ./openbmb__MathForm-8B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MathForm-8B --revision 8f6d09e66bd5821d985a2150ba3f09ba42e028ba --local-dir ./MathForm-8B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("openbmb/MathForm-8B", revision="8f6d09e66bd5821d985a2150ba3f09ba42e028ba") model = AutoModelForCausalLM.from_pretrained("openbmb/MathForm-8B", revision="8f6d09e66bd5821d985a2150ba3f09ba42e028ba", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openbmb/MathForm-8B --revision 8f6d09e66bd5821d985a2150ba3f09ba42e028ba

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
a77474e4296c41843bc4fd685dd016028fb1e1da3e8739174b79f3fffcd0a5c3
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject: MathForm-8BDate: 2026-11-15Commit: 8f6d09eSigned: 2DC28CC7B26A283B ✓
Upstream
openbmb/MathForm-8B
Pinned commit
8f6d09e66bd5821d985a2150ba3f09ba42e028ba
Manifest
MathForm-8B.json · .minisig
Manifest sha256
3750134ebeae281a276bcf0b924e5aea731eda4a50bac14245e9ffcec8569ed3
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:30 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/MathForm-8B.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MathForm-8B.json.minisig $ minisign -Vm MathForm-8B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen3-8B · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MathForm-8B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. MathForm-8B.json. Provenance. Takedown history: none.
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Explore-GGUF
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report-GGUF
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-0.5B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-1B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-3B-gguf