alt.freeweights.vision / modernbert-ai-detection-raid-mage-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

modernbert-ai-detection-raid-mage-ONNX

Date: 2026-11-15Commit: 6dcd8a3Signed: 2DC28CC7B26A283B ✓

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

vision1.94GBmodernbert-ai-detection-raid-mage-ONNXonnxpermissive
FactsParamsnot statedSize1.94 GBFormatsonnxTasktext classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/modernbert-ai-detection-raid-mage-ONNX
# manifest sha256 d45170c2d4dd… · 1.94 GB · 15 files
$ fw verify ./modernbert-ai-detection-raid-mage-ONNX onnx-community/modernbert-ai-detection-raid-mage-ONNX
From sourceHosted (signed)onnx-community/modernbert-ai-detection-raid-mage-ONNXLast check: 2026-11-15 05:05 UTC

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

Quantized of modernbert-ai-detection-raid-mage.

Works with

Runs with

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

Convert with

Scan with

Overview

Size
1.94 GB
Weights
140 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: GeorgeDrayson/modernbert-ai-detection-raid-mage

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

Model card

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

modernbert-ai-detection-raid-mage (ONNX)#

This is an ONNX version of GeorgeDrayson/modernbert-ai-detection-raid-mage. 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


Machine-generated text detection prevents language model collapse#

This model is part of the research presented in the paper Machine-generated text detection prevents language model collapse, which proposes an approach to prevent model collapse based on importance sampling from a machine-generated text detector. The official implementation and training scripts are available in the GitHub repository: GeorgeDrayson/model_collapse

The model is trained on the MAGE and RAID datasets.

Usage#

To use the model for detecting machine-generated text:

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("GeorgeDrayson/modernbert-raid-mage")
model = AutoModelForSequenceClassification.from_pretrained("GeorgeDrayson/modernbert-raid-mage")

text = "Your input text here."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
probabilities = torch.nn.functional.softmax(outputs.logits, dim=-1)
print(f"Probability of machine-generated text: {probabilities[0][1].item():.4f}")

Citation#

If you use this model or find the research helpful, please cite:

@article{drayson2025machine,
  title={Machine-generated text detection prevents language model collapse},
  author={Drayson, George and Yilmaz, Emine and Lampos, Vasileios},
  journal={arXiv preprint arXiv:2502.15654},
  year={2025}
}

Files

15 files · 1.94 GBWeights 140 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.md2.33 KBb6cde247ef23cf464b91185594ec7f75df3403e5dad901209a0a8979bb227285
config.json1.42 KB71b40a39587576f8aab94138ebf1f9a708c9f4ddef2c7db01a1dbc0cc6692a72
onnx/model.onnx599 MBb9513c72ab6840423bfad582f878bcca817d719e6a4a772d5de354e6d7627ac4
onnx/model_bnb4.onnx218 MB009032661bb32b043417d4de42e9aede32545cccb0d6c3c7aff35a4564fae6d6
onnx/model_fp16.onnx300 MB88aef19e5c31a1c2c387572b5cb44db0390723847c84fa1dce15c96c458b924a
onnx/model_int8.onnx151 MB4101945045796b0301d4fc2829bcd3ce71ede4622a8dcddcb805a2b6169f2972
onnx/model_q4.onnx225 MB3ea7a40dc701fe0f15547e126a17044b0848b3092267a51c8e5a116738616445
onnx/model_q4f16.onnx140 MBb7fdb8e6b4fb978af5354b5d7a57c07939a68e52cf36409468a80c21785da998
onnx/model_quantized.onnx151 MB4101945045796b0301d4fc2829bcd3ce71ede4622a8dcddcb805a2b6169f2972
onnx/model_uint8.onnx151 MB7a1af1c7fe985fa7a38b4d61341bed44655401c686b4f6cb49978a2aa8d9c126
quantize_config.json310 B9b60b5877b9a1687b5cddbc06124a974cb7536af9dbf5295279bf73c3823170c
special_tokens_map.json694 Bea97ecdbcc73713039d8d64dbb05e3689495c96657fbd9a18f5bed381be81049
tokenizer.json3.58 MB6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30
tokenizer_config.json20.8 KBc16f1b07f93d05be753ec0acf8cb511d895a8bdb09669f6b156df81e3f96c2eb
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
6dcd8a3100 pinned now2026-11-15 05:05 UTC15 files · 1.94 GB

Use it

$ fw get onnx-community/modernbert-ai-detection-raid-mage-ONNX
# manifest sha256 d45170c2d4dd… · 1.94 GB · 15 files
$ fw verify ./modernbert-ai-detection-raid-mage-ONNX onnx-community/modernbert-ai-detection-raid-mage-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/modernbert-ai-detection-raid-mage-ONNX.json --dir ./modernbert-ai-detection-raid-mage-ONNX $ python3 fw.py verify ./modernbert-ai-detection-raid-mage-ONNX ./onnx-community__modernbert-ai-detection-raid-mage-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/modernbert-ai-detection-raid-mage-ONNX --revision 6dcd8a3100e75d1224d7222d883bde596113d3f3 --local-dir ./modernbert-ai-detection-raid-mage-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
b6cde247ef23cf464b91185594ec7f75df3403e5dad901209a0a8979bb227285
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: modernbert-ai-detection-raid-mage-ONNXDate: 2026-11-15Commit: 6dcd8a3Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/modernbert-ai-detection-raid-mage-ONNX
Pinned commit
6dcd8a3100e75d1224d7222d883bde596113d3f3
Manifest
modernbert-ai-detection-raid-mage-ONNX.json · .minisig
Manifest sha256
d45170c2d4dd044ac61bfa31bd62d8e24dc7c413b11d153d67fe3acc1db05fd8
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:05 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/modernbert-ai-detection-raid-mage-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/modernbert-ai-detection-raid-mage-ONNX.json.minisig $ minisign -Vm modernbert-ai-detection-raid-mage-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

GeorgeDrayson/modernbert-ai-detection-raid-mage · 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/modernbert-ai-detection-raid-mage-ONNX
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. modernbert-ai-detection-raid-mage-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