alt.freeweights.vision / fineweb-edu-classifier
From: HuggingFaceFW <huggingface.co/HuggingFaceFW>Newsgroups: alt.freeweights.visionSubject:

fineweb-edu-classifier

Date: 2026-11-15Commit: 284663cSigned: 2DC28CC7B26A283B ✓

Text classification model with 109M parameters. Safetensors weights, 439 MB in all. Published by HuggingFaceFW under Apache-2.0.

109M params439MBfineweb-edu-classifiersafetensorspermissive
FactsParams109MSize439 MBFormatssafetensorsTasktext classificationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceFW/fineweb-edu-classifier
# manifest sha256 7bc263d606fd… · 439 MB · 15 files
$ fw verify ./fineweb-edu-classifier HuggingFaceFW/fineweb-edu-classifier
From sourceHosted (signed)HuggingFaceFW/fineweb-edu-classifierLast check: 2026-11-15 02:43 UTC

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

Works with

Runs with

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

Overview

Size
439 MB
Weights
438 MB (safetensors)
Parameters
109M
Formats
safetensors
Task
text classification
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
HuggingFaceFW
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

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 02:43 UTCpassed

Model card

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

FineWeb-Edu classifier#

Model summary#

This is a classifier for judging the educational value of web pages. It was developed to filter and curate educational content from web datasets and was trained on 450k annotations generated by LLama3-70B-instruct for web samples from FineWeb dataset.

We used this classifier to build FineWeb-Edu dataset.

How to use in transformers#

To load the FineWeb-Edu classifier, use the following code:

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/fineweb-edu-classifier")
model = AutoModelForSequenceClassification.from_pretrained("HuggingFaceTB/fineweb-edu-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 450,000 pairs of web samples and their scores from 0 to 5, generated by Llama3. The samples were annotated based on their educational quality with 0 being not educational and 5 being highly educational.

Below is the prompt used for LLama3 annotations:

Image: Prompt for LLM annotation

We added a classification head with a single regression output to Snowflake-arctic-embed 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 82% when converted to a binary classifier using a score threshold of 3.

Training Details:

  • Model: Snowflake-arctic-embed with a classification head
  • Dataset: 450,000 samples from Llama3 annotations
  • Epochs: 20
  • Learning Rate: 3e-4
  • Evaluation Metric: F1 score

Classification report

We treat the regression model's predictions as discrete classes to calculate the metrics on a hold-out set of 46867 Llama3-annotated samples.

              precision    recall  f1-score   support

           0       0.75      0.49      0.59      5694
           1       0.78      0.84      0.81     26512
           2       0.57      0.61      0.59     10322
           3       0.56      0.50      0.53      3407
           4       0.58      0.35      0.44       807
           5       0.33      0.01      0.02       125

    accuracy                           0.71     46867
   macro avg       0.60      0.47      0.50     46867
weighted avg       0.71      0.71      0.71     46867

Confusion matrix

We verify that the predicted educational scores are indeed close to their ground truth, and are mostry impacted by the noisy annotation.

        2791  2858    45     0     0     0
         919 22343  3180    69     1     0
y_true     3  3225  6330   757     7     0
           1    66  1473  1694   173     0
           0     4    98   420   283     2
           0     0    18    85    21     1
                    y_pred

Limitations#

While the FineWeb-Edu classifier performs well in distinguishing high-quality educational content for FineWeb dataset, there are some limitations:

  • Scope: The model's performance might change for other datasets, in particular for out of distribution samples. It is also focused on educational content relevant to primary and grade school levels and may not perform as well on content intended for higher education or specialized domains.
  • Bias: The model's performance is dependent on the quality and representativeness of the training data and the LLM used for the annotation. Biases in both can affect the classifier's judgments. It might overfit to academic looking content for the higher scores and we recommend using int_score >= 3 as a threshold for data curation.
  • Context: The classifier evaluates individual web pages or extracts without considering broader context, which might impact its effectiveness in certain scenarios.

The training and inference code is available on GitHub https://github.com/huggingface/cosmopedia/tree/main/classification

Files

15 files · 439 MBWeights 438 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.95 KB8b2310b700196d853ca4e1fda89a667fe99a32bd21f850d9445482f563f475c3
config.json804 B5efd3893506c5696b90dec74133583568d558a10ed4ab30febccdd5be3ef25af
model.safetensors438 MB27fbfe65ce71c3fc50df7b71246c83fe9b6da329f9572d957a9355f7d290a1bc
special_tokens_map.json695 B5d5b662e421ea9fac075174bb0688ee0d9431699900b90662acd44b2a350503a
src/README.md558 Bc1222a57d9b03b0ebd54cd39d12cd19ce8799c6834361562c6f1eddd6b9ecec6
src/run_edu_bert.py2.25 KBca60cf9897c2c0ff3388a543a956308c732b837eeb73047000eeedacf88d291b
src/run_edu_bert.slurm793 B48804b5f806cb10dd2de344f10c59c070fabf3a4507e302cbab528cd54a623ad
src/train_edu_bert.py3.98 KB5d770f4f2a37fc5332cbe2dd8b4fd8299bb4a28c6fa9ad2a5726ace79d0c248d
src/train_edu_bert.slurm632 Bc520c7ee9d0382ae95a71b784247b549149e5ff6dd56d99ace7fde06a692a0e6
tokenizer.json712 KB91f1def9b9391fdabe028cd3f3fcc4efd34e5d1f08c3bf2de513ebb5911a1854
tokenizer_config.json1.38 KB0e83e9d7206b3ade43f8f2aeef523cf5d5b4a25b67af21b273de21972c0f58b7
training_args.bin5.05 KBefc02ff3cbe38771032be7435dde1ef98e3d99cdd38f1fb9a9c2f710ef949f0b
utils/prompt.txt2.32 KBcb09c2b9f1f85c6aa48fbc8b36fafc6711f250cd009d265e484de1b020925d2b
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
284663cbb2 pinned now2026-11-15 02:43 UTC15 files · 439 MB

Use it

$ fw get HuggingFaceFW/fineweb-edu-classifier
# manifest sha256 7bc263d606fd… · 439 MB · 15 files
$ fw verify ./fineweb-edu-classifier HuggingFaceFW/fineweb-edu-classifier
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceFW/fineweb-edu-classifier.json --dir ./fineweb-edu-classifier $ python3 fw.py verify ./fineweb-edu-classifier ./HuggingFaceFW__fineweb-edu-classifier.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceFW/fineweb-edu-classifier --revision 284663cbb2dabf9bda30d8f8cc49601251ee1631 --local-dir ./fineweb-edu-classifier

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
README.md
Text sha256
8b2310b700196d853ca4e1fda89a667fe99a32bd21f850d9445482f563f475c3
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: HuggingFaceFW <huggingface.co/HuggingFaceFW>Newsgroups: alt.freeweights.visionSubject: fineweb-edu-classifierDate: 2026-11-15Commit: 284663cSigned: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceFW/fineweb-edu-classifier
Pinned commit
284663cbb2dabf9bda30d8f8cc49601251ee1631
Manifest
fineweb-edu-classifier.json · .minisig
Manifest sha256
7bc263d606fd2d95801e10a8b19d876ab1f235fed78a44a690dbe39bf5873d54
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:43 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceFW/fineweb-edu-classifier
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. fineweb-edu-classifier.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of fineweb-edu-classifier. Each has its own license check and page.

From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX