alt.freeweights.smollm / finemath-classifier
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

finemath-classifier

Date: 2026-11-14Commit: bd0b0e3Signed: 2DC28CC7B26A283B ✓

Text classification model with 118M parameters. Safetensors weights, 986 MB in all. Published by HuggingFaceTB under MIT.

118M params986MBfinemath-classifiersafetensorspermissive
FactsParams118MSize986 MBFormatssafetensorsTasktext classificationLicenseMITFrom sourcepermissive
$ fw get HuggingFaceTB/finemath-classifier
# manifest sha256 3e0bce98350c… · 986 MB · 16 files
$ fw verify ./finemath-classifier HuggingFaceTB/finemath-classifier
From sourceHosted (signed)HuggingFaceTB/finemath-classifierLast check: 2026-11-14 21:11 UTC

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

Fine-tune of multilingual-e5-small.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
986 MB
Weights
941 MB (safetensors)
Parameters
118M
Formats
safetensors
Task
text classification
License
MIT (permissive)
Files
16, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Base model: intfloat/multilingual-e5-small

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-14 21:11 UTCpassed

Model card

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

FineMath classifier#

Model summary#

This is a classifier for evaluating mathematical reasoning and deduction in web pages, fine-tuned from intfloat/multilingual-e5-small. It was developed to filter and curate mathematical content from web datasets and was trained on 1M annotations generated by LLama3-70B-instruct for web samples from Common Crawl, which were extracted using the OpenWebMath text extraction pipeline. To ensure a balanced dataset, we upsampled pages containing mathematical content in the annotations, using a preliminary math classifier on 5M samples.

We used this classifier to build FineMath dataset.

How to use in transformers#

To load the FineMath classifier, use the following code:

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/finemath-classifier")
model = AutoModelForSequenceClassification.from_pretrained("HuggingFaceTB/finemath-classifier")

text = "This is a test sentence."
inputs = tokenizer(text, return_tensors="pt", padding="longest", truncation=True)
outputs = model(**inputs)
logits = outputs.logits.squeeze(-1).float().detach().numpy()
score = logits.item()
result = {
    "text": text,
    "score": score,
    "int_score": int(round(max(0, min(score, 5)))),
}

print(result)
# {'text': 'This is a test sentence.', 'score': 0.07964489609003067, 'int_score': 0}

Training#

The classifier was trained on 1M pairs of web samples and their scores from 0 to 5, generated by Llama3. The samples were annotated based on their usefulness for studying mathematics with 0 being not educational or containing matematical content and 5 being outstanding for mathetmatics education.

Below is the prompt used for LLama3 annotations:

Image: Prompt for LLM annotation

We added a classification head with a single regression output to intfloat/multilingual-e5-small and trained the model for 20 epochs with a learning rate of 3e-4. During training, the embedding and encoder layers were frozen to focus on the classification head. The model achieved an F1 score of 87% when converted to a binary classifier using a score threshold of 3.

Training Details:

  • Model: intfloat/multilingual-e5-smallwith a classification head
  • Dataset: 1M samples from Llama3 annotations
  • Epochs: 20
  • Learning Rate: 3e-4
  • Evaluation Metric: F1 score

Evaluation: The model achieves the following results on the evaluation set:

  • Loss: 0.4478
  • Precision: 0.8771
  • Recall: 0.8769
  • F1 Macro: 0.8770
  • Accuracy: 0.8770

Files

16 files · 986 MBWeights 941 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 16 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md3.50 KB7471576ea02ff9747ccfe58264c4824f3d1752d2b1fc86b1afabaa4d91c52e39
config.json810 B080709521f26d45f2e11b136cd9bb63b7f8342439f43a0ab5fd2e096720b7524
final/config.json810 B080709521f26d45f2e11b136cd9bb63b7f8342439f43a0ab5fd2e096720b7524
final/model.safetensors471 MBbad3fbea5207a34479f4068e5f44866114033fe6ee4fc86ff4d850885c49f842
final/sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
final/special_tokens_map.json965 B38d989b0fdad0fec0c67c14b1f3c8b68184022cf6d4adc5444526ced8653f738
final/tokenizer.json17.1 MBcd98e5698b201ba914efb8c18b6709fa8735ab71dcad8d2b431e52e8bf68d932
final/tokenizer_config.json1.17 KBce30001b1b5e8e9cb010e74fdaff3025007f0330eb0fb7da81774f11efdd8845
final/training_args.bin5.30 KB3ce87380f1da8b14836c6c05d1736e7aed753fed6d93fdf122bcf0d6c2242717
model.safetensors471 MBbad3fbea5207a34479f4068e5f44866114033fe6ee4fc86ff4d850885c49f842
sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
special_tokens_map.json965 B38d989b0fdad0fec0c67c14b1f3c8b68184022cf6d4adc5444526ced8653f738
tokenizer.json17.1 MBcd98e5698b201ba914efb8c18b6709fa8735ab71dcad8d2b431e52e8bf68d932
tokenizer_config.json1.17 KBce30001b1b5e8e9cb010e74fdaff3025007f0330eb0fb7da81774f11efdd8845
training_args.bin5.30 KB3ce87380f1da8b14836c6c05d1736e7aed753fed6d93fdf122bcf0d6c2242717
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
bd0b0e3307 pinned now manifest updated, same commit2026-11-14 21:11 UTC16 files · 986 MB
bd0b0e33072026-11-14 21:11 UTC16 files · 986 MB

Use it

$ fw get HuggingFaceTB/finemath-classifier
# manifest sha256 3e0bce98350c… · 986 MB · 16 files
$ fw verify ./finemath-classifier HuggingFaceTB/finemath-classifier
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/finemath-classifier.json --dir ./finemath-classifier $ python3 fw.py verify ./finemath-classifier ./HuggingFaceTB__finemath-classifier.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/finemath-classifier --revision bd0b0e330750ccaafb16c47066f875b3fcb707c3 --local-dir ./finemath-classifier

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
7471576ea02ff9747ccfe58264c4824f3d1752d2b1fc86b1afabaa4d91c52e39
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: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject: finemath-classifierDate: 2026-11-14Commit: bd0b0e3Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/finemath-classifier
Pinned commit
bd0b0e330750ccaafb16c47066f875b3fcb707c3
Manifest
finemath-classifier.json · .minisig
Manifest sha256
3e0bce98350ca79e1153f8316d0c4244afe15091420ebec38a7913f56a1b9dc9
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/finemath-classifier.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/finemath-classifier.json.minisig $ minisign -Vm finemath-classifier.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

intfloat/multilingual-e5-small · 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 HuggingFaceTB/finemath-classifier
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. finemath-classifier.json. Provenance. Takedown history: none.
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Subject: 135M-lc-100k-rope-12B
From: nisten <huggingface.co/nisten>Subject: Biggie-SmoLlm-0.4B
From: onnx-community <huggingface.co/onnx-community>Subject: Biggie-SmoLlm-0.4B-ONNX
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-bnb-4bit
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-Instruct
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-135M-bnb-4bit