alt.freeweights.vision / tmr-ai-text-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

tmr-ai-text-detector-ONNX

Date: 2026-11-15Commit: b9aa251Signed: 2DC28CC7B26A283B ✓

Text classification model. Onnx weights, 1.68 GB in all. Published by onnx-community under MIT.

vision1.68GBtmr-ai-text-detector-ONNXonnxpermissive
FactsParamsnot statedSize1.68 GBFormatsonnxTasktext classificationLicenseMITFrom sourcepermissive
$ fw get onnx-community/tmr-ai-text-detector-ONNX
# manifest sha256 bcebab5dc98f… · 1.68 GB · 17 files
$ fw verify ./tmr-ai-text-detector-ONNX onnx-community/tmr-ai-text-detector-ONNX
From sourceHosted (signed)onnx-community/tmr-ai-text-detector-ONNXLast check: 2026-11-15 04:46 UTC

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

Quantized of tmr-ai-text-detector.

Works with

Runs with

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

Convert with

Scan with

Overview

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

Original release from the publisher.

Base model: Oxidane/tmr-ai-text-detector

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 04:46 UTCpassed

Model card

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

tmr-ai-text-detector (ONNX)#

This is an ONNX version of Oxidane/tmr-ai-text-detector. 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


TMR: Target Mining RoBERTa - AI Text Detector#

A robust AI-generated text detector based on RoBERTa-base, trained with Focal Loss and Self-Hard-Negative iterative mining on the RAID dataset.

Model Description#

TMR (Target Mining RoBERTa) is designed to detect AI-generated text with high accuracy while maintaining low false positive rates. The model uses:

  • Architecture: RoBERTa-base (125M parameters)
  • Loss Function: Focal Loss (gamma=2.0, alpha=[0.85, 0.15]) to focus on hard examples
  • Training Strategy: Self-Hard-Negative (Self-HN) iterative mining
  • Training Data: 50,000 stratified samples from RAID (45% human, 55% AI)

Performance#

RAID Leaderboard (Official Results)#
MetricAll SettingsNo Adversarial
AUROC99.28%99.85%
TPR @ 5% FPR95.79%99.65%
TPR @ 1% FPR90.17%98.56%

Results from RAID Benchmark evaluation on 672,000 test samples (including adversarial attacks).

Held-out Evaluation (100k samples)#
MetricScore
AUROC99.69%
Accuracy97.42%
FPR2.61%
FNR2.58%

Held-out evaluation on RAID train split (seed=999, excluded training/validation samples).

Usage#

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

# Load model and tokenizer
model_path = "Oxidane/tmr-ai-text-detector"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForSequenceClassification.from_pretrained(model_path)

# Predict
text = "Your text here..."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512, padding=True)

with torch.no_grad():
    outputs = model(**inputs)
    logits = outputs.logits
    probs = torch.softmax(logits, dim=-1)

# Probability that text is AI-generated
ai_probability = probs[0][1].item()
print(f"AI probability: {ai_probability:.4f}")

# Binary classification (threshold=0.5)
is_ai = ai_probability > 0.5
print(f"Prediction: {'AI-generated' if is_ai else 'Human-written'}")

Training#

Trained on the RAID dataset (ACL 2024) with Self-Hard-Negative mining: iteratively identifying human samples misclassified as AI, then retraining with these hard examples.

Limitations#

  • Language: Primarily trained on English text
  • Domain: Best performance on text similar to RAID training domains (news, books, abstracts, reviews, recipes, Wikipedia, poetry, Reddit)
  • Threshold: Optimized for threshold=0.5
  • Out-of-distribution: May have higher false positive rates on casual conversation, short text, or domains not seen during training

License#

MIT License

Citation#

If you use this model, please cite:

@misc{tmr-ai-text-detector,
  title={TMR: Target Mining RoBERTa for AI Text Detection},
  author={Oxidane},
  year={2025},
  url={https://huggingface.co/Oxidane/tmr-ai-text-detector}
}

Contact#

For questions, contact me@oxidane.net

Files

17 files · 1.68 GBWeights 126 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 17 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.77 KBdc44f8807c0701cdae6c90b6691b9b59f5343bbc5d9b341b80728ff84ebd1959
config.json866 Bd9d45b537b9cf386a0ce958f8b2f840b0529ed846e45c4e26bc53a62dcb06f1f
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
onnx/model.onnx499 MBbe46530b68747ed6737f59e92d4585798475b6f0a54902e4f1da099379dfe49a
onnx/model_bnb4.onnx207 MB8172a54ad862b3cfe9339f5a0e93f4aa3612226ea0e910480cf57f0a5ef90f25
onnx/model_fp16.onnx250 MB5a6c64b510b4fd2206946285326e8fe70c3c1dc9a9777a753efbbd7ad5d93335
onnx/model_int8.onnx126 MBa1ff8a917090467375ceaf47667459e431217d5691df463c57b7194624f3ff79
onnx/model_q4.onnx212 MBb94fb1bebbb77929aa2169444d1e0bd208c8f6915d2ee3b0978c266738f2fd3f
onnx/model_q4f16.onnx128 MB678fc144ff9bf55a735d4992c28e663b06a74e64a6e1c3c6941dad9e6f2578b2
onnx/model_quantized.onnx126 MBa1ff8a917090467375ceaf47667459e431217d5691df463c57b7194624f3ff79
onnx/model_uint8.onnx126 MB1f82fd1271ce7fa586c998e54857c72f266dba83549d589a40e3e511fa528452
quantize_config.json310 B9b60b5877b9a1687b5cddbc06124a974cb7536af9dbf5295279bf73c3823170c
special_tokens_map.json958 Bf23c8e6099631c233c16d9bf8dab198f610826cdd1b358f270f6d55c1863e857
tokenizer.json3.56 MB1f33749d010b4d63908e5c174c341622cb45039dd73a139dcd95bd74cc7e304b
tokenizer_config.json1.35 KB288b4077af1ffb3beead6d96fccfc93beb2df9b689cbb038c4eb329165efc43a
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b9aa251e5b pinned now2026-11-15 04:46 UTC17 files · 1.68 GB

Use it

$ fw get onnx-community/tmr-ai-text-detector-ONNX
# manifest sha256 bcebab5dc98f… · 1.68 GB · 17 files
$ fw verify ./tmr-ai-text-detector-ONNX onnx-community/tmr-ai-text-detector-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/tmr-ai-text-detector-ONNX.json --dir ./tmr-ai-text-detector-ONNX $ python3 fw.py verify ./tmr-ai-text-detector-ONNX ./onnx-community__tmr-ai-text-detector-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/tmr-ai-text-detector-ONNX --revision b9aa251e5bcda7e429fcc936767d921435945b60 --local-dir ./tmr-ai-text-detector-ONNX

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-15
Text in
README.md
Text sha256
dc44f8807c0701cdae6c90b6691b9b59f5343bbc5d9b341b80728ff84ebd1959
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: tmr-ai-text-detector-ONNXDate: 2026-11-15Commit: b9aa251Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/tmr-ai-text-detector-ONNX
Pinned commit
b9aa251e5bcda7e429fcc936767d921435945b60
Manifest
tmr-ai-text-detector-ONNX.json · .minisig
Manifest sha256
bcebab5dc98fec1b34d6931c1cd591e83ba66cbdadc963b3bb0d825883004152
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:46 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/tmr-ai-text-detector-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/tmr-ai-text-detector-ONNX.json.minisig $ minisign -Vm tmr-ai-text-detector-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

Oxidane/tmr-ai-text-detector · 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/tmr-ai-text-detector-ONNX
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. tmr-ai-text-detector-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