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

fineweb-edu-classifier-ONNX

Date: 2026-11-15Commit: 0a66830Signed: 2DC28CC7B26A283B ✓

Text classification model. Onnx weights, 1.39 GB in all. Published by onnx-community under Apache-2.0.

vision1.39GBfineweb-edu-classifier-ONNXonnxpermissive
FactsParamsnot statedSize1.39 GBFormatsonnxTasktext classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/fineweb-edu-classifier-ONNX
# manifest sha256 e279cb5cdf38… · 1.39 GB · 15 files
$ fw verify ./fineweb-edu-classifier-ONNX onnx-community/fineweb-edu-classifier-ONNX
From sourceHosted (signed)onnx-community/fineweb-edu-classifier-ONNXLast check: 2026-11-15 05:29 UTC

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

Quantized of fineweb-edu-classifier.

Works with

Runs with

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

Convert with

Scan with

Overview

Size
1.39 GB
Weights
97.2 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text classification
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: HuggingFaceFW/fineweb-edu-classifier

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 05:29 UTCpassed

Model card

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

fineweb-edu-classifier (ONNX)#

This is an ONNX version of HuggingFaceFW/fineweb-edu-classifier. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for text-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextClassificationPipeline


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 · 1.39 GBWeights 97.2 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.57 KBdacd4e7a647419638fb92fd7344ee8179327dc6ddb84f171bdac2b38b86b94b5
config.json741 B5f56108923b1fdbbaeb7134c4c5d057b4d254bdb9ca0443c9a0d31ede93ca6d1
onnx/model.onnx438 MB358fca73714d197bb359ebe4d8c2d2e6d4fbb922d49b1b843a8fb6cf909d7346
onnx/model_bnb4.onnx151 MB9666bc79134a674a80f6894b5ae1adf2c0c48e546c58bb38633b30a1f3228c95
onnx/model_fp16.onnx219 MBcfc2866a0c37ba626542cac511129f5048967f37663e08234d35c36a8e68210e
onnx/model_int8.onnx110 MB0626f9405eab7c2f8876a5c30b80e7867c05e9a6442dcc48e7cbc991976c47e1
onnx/model_q4.onnx151 MB9666bc79134a674a80f6894b5ae1adf2c0c48e546c58bb38633b30a1f3228c95
onnx/model_q4f16.onnx97.2 MBd348514de949e10170b1969cc3ee574973ce5e48b924b29a97dc10c068ee70da
onnx/model_quantized.onnx110 MB0626f9405eab7c2f8876a5c30b80e7867c05e9a6442dcc48e7cbc991976c47e1
onnx/model_uint8.onnx110 MB19120ae3023aa9f85cdc897f9a874301db25842e678dfb01bea9515f6279acb8
special_tokens_map.json695 B5d5b662e421ea9fac075174bb0688ee0d9431699900b90662acd44b2a350503a
tokenizer.json712 KB91f1def9b9391fdabe028cd3f3fcc4efd34e5d1f08c3bf2de513ebb5911a1854
tokenizer_config.json1.41 KB702aa2d20a9a2d42898826f22a360fb3b31f310bb8e40325c806b9e371f60e1d
vocab.txt232 KB07eced375cec144d27c900241f3e339478dec958f92fddbc551f295c992038a3
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0a66830fa0 pinned now2026-11-15 05:29 UTC15 files · 1.39 GB

Use it

$ fw get onnx-community/fineweb-edu-classifier-ONNX
# manifest sha256 e279cb5cdf38… · 1.39 GB · 15 files
$ fw verify ./fineweb-edu-classifier-ONNX onnx-community/fineweb-edu-classifier-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/fineweb-edu-classifier-ONNX.json --dir ./fineweb-edu-classifier-ONNX $ python3 fw.py verify ./fineweb-edu-classifier-ONNX ./onnx-community__fineweb-edu-classifier-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/fineweb-edu-classifier-ONNX --revision 0a66830fa0cd98840816afbee193cba931134722 --local-dir ./fineweb-edu-classifier-ONNX

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
dacd4e7a647419638fb92fd7344ee8179327dc6ddb84f171bdac2b38b86b94b5
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: fineweb-edu-classifier-ONNXDate: 2026-11-15Commit: 0a66830Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/fineweb-edu-classifier-ONNX
Pinned commit
0a66830fa0cd98840816afbee193cba931134722
Manifest
fineweb-edu-classifier-ONNX.json · .minisig
Manifest sha256
e279cb5cdf38fa4c116d2dfadc5946457e10cbaf85fa26c3a638eedbc7d6cc7f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:29 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

HuggingFaceFW/fineweb-edu-classifier · this model is a quantization of it

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

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/fineweb-edu-classifier-ONNX
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-ONNX.json. Provenance. Takedown history: none.
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