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

tmr-ai-text-detector

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

Text classification model with 125M parameters. Safetensors weights, 503 MB in all. Published by Oxidane under MIT.

125M params503MBtmr-ai-text-detectorsafetensorspermissive
FactsParams125MSize503 MBFormatssafetensorsTasktext classificationLicenseMITFrom sourcepermissive
$ fw get Oxidane/tmr-ai-text-detector
# manifest sha256 dc38e80e6237… · 503 MB · 10 files
$ fw verify ./tmr-ai-text-detector Oxidane/tmr-ai-text-detector
From sourceHosted (signed)Oxidane/tmr-ai-text-detectorLast check: 2026-11-15 02:48 UTC

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

Fine-tune of roberta-base.

Overview

Size
503 MB
Weights
499 MB (safetensors)
Parameters
125M
Formats
safetensors
Task
text classification
License
MIT (permissive)
Files
10, each with a sha256
Publisher
Oxidane
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: FacebookAI/roberta-base

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

Model card

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

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

10 files · 503 MBWeights 499 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.25 KB9a2e93fb2848c5707322588e7685d5abd4f38e08df9b346065d7f4ba390cd687
config.json747 B96530fd73c11eae27beb5e13a86297b8c720fc7bc9ea30b31ba51978070dc44d
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors499 MBa74ea30f5db6a1094510be903ce374426191addaf7d860b766077de246d32358
special_tokens_map.json958 Bf23c8e6099631c233c16d9bf8dab198f610826cdd1b358f270f6d55c1863e857
tokenizer.json3.56 MB1f33749d010b4d63908e5c174c341622cb45039dd73a139dcd95bd74cc7e304b
tokenizer_config.json1.35 KB288b4077af1ffb3beead6d96fccfc93beb2df9b689cbb038c4eb329165efc43a
training_args.bin5.91 KBb4f4276af6e212d3cd34f82392a73e76fe8f93b5d1c7ed0bb5ae976c974832b3
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0ceddea903 pinned now2026-11-15 02:48 UTC10 files · 503 MB

Use it

$ fw get Oxidane/tmr-ai-text-detector
# manifest sha256 dc38e80e6237… · 503 MB · 10 files
$ fw verify ./tmr-ai-text-detector Oxidane/tmr-ai-text-detector
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Oxidane/tmr-ai-text-detector.json --dir ./tmr-ai-text-detector $ python3 fw.py verify ./tmr-ai-text-detector ./Oxidane__tmr-ai-text-detector.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Oxidane/tmr-ai-text-detector --revision 0ceddea903015ef99cbaa040a4d8a216aed9c683 --local-dir ./tmr-ai-text-detector

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
9a2e93fb2848c5707322588e7685d5abd4f38e08df9b346065d7f4ba390cd687
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: Oxidane <huggingface.co/Oxidane>Newsgroups: alt.freeweights.visionSubject: tmr-ai-text-detectorDate: 2026-11-15Commit: 0ceddeaSigned: 2DC28CC7B26A283B ✓
Upstream
Oxidane/tmr-ai-text-detector
Pinned commit
0ceddea903015ef99cbaa040a4d8a216aed9c683
Manifest
tmr-ai-text-detector.json · .minisig
Manifest sha256
dc38e80e623735ca4af86f2d4d3c580e5c9afaeea6a1d21b957b6d73d6cb2534
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:48 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

FacebookAI/roberta-base · this model is a finetune of it

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

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Oxidane/tmr-ai-text-detector
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.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of tmr-ai-text-detector. 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