Text Classification
Transformers
ONNX
Safetensors
modernbert
fill-mask
ai-detection
machine-generated-text
mmbert
text-embeddings-inference
Run this model with HF Jobs
Run ElderRyan/ProseGuard-mmBERT-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ElderRyan/ProseGuard-mmBERT-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ElderRyan/ProseGuard-mmBERT-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ElderRyan/ProseGuard-mmBERT-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ElderRyan/ProseGuard-mmBERT-base") model = AutoModelForMaskedLM.from_pretrained("ElderRyan/ProseGuard-mmBERT-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download calibration.json from ElderRyan/ProseGuard-mmBERT-base: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base/resolve/main/calibration.json
- Command line
-
hf download hf://ElderRyan/ProseGuard-mmBERT-base/calibration.json
-
curl -L -o calibration.json https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base/resolve/main/calibration.json
1.47 kB
| { | |
| "backbone": "jhu-clsp/mmBERT-base", | |
| "overall": { | |
| "n": 2400, | |
| "n_human": 896, | |
| "n_ai_any": 1504, | |
| "auroc": 0.94875, | |
| "tpr_at_fpr_5pct": 0.8191, | |
| "thr_fpr_5pct": 0.83461, | |
| "tpr_at_fpr_1pct": 0.7334, | |
| "thr_fpr_1pct": 0.96267, | |
| "tpr_at_fpr_0_1pct": 0.6323, | |
| "thr_fpr_0_1pct": 0.9819, | |
| "n_assisted": 281, | |
| "assisted_recall_at_1pct_fpr": 0.2705, | |
| "macro_f1_3way": 0.7449, | |
| "edit_mae": 0.1495 | |
| }, | |
| "zh": { | |
| "n": 1418, | |
| "n_human": 503, | |
| "n_ai_any": 915, | |
| "auroc": 0.98217, | |
| "tpr_at_fpr_5pct": 0.9093, | |
| "thr_fpr_5pct": 0.82941, | |
| "tpr_at_fpr_1pct": 0.8514, | |
| "thr_fpr_1pct": 0.95827, | |
| "tpr_at_fpr_0_1pct": 0.8153, | |
| "thr_fpr_0_1pct": 0.971, | |
| "n_assisted": 133, | |
| "assisted_recall_at_1pct_fpr": 0.3684 | |
| }, | |
| "en": { | |
| "n": 982, | |
| "n_human": 393, | |
| "n_ai_any": 589, | |
| "auroc": 0.8815, | |
| "tpr_at_fpr_5pct": 0.6757, | |
| "thr_fpr_5pct": 0.83827, | |
| "tpr_at_fpr_1pct": 0.5535, | |
| "thr_fpr_1pct": 0.96909, | |
| "tpr_at_fpr_0_1pct": 0.4601, | |
| "thr_fpr_0_1pct": 0.9819, | |
| "n_assisted": 148, | |
| "assisted_recall_at_1pct_fpr": 0.1892 | |
| }, | |
| "calibration": { | |
| "temperature": 1.1456, | |
| "window_blend": 0.18, | |
| "thresholds": { | |
| "global": { | |
| "fpr_1pct": 0.96268, | |
| "fpr_0_1pct": 0.9819 | |
| }, | |
| "zh": { | |
| "fpr_1pct": 0.95827, | |
| "fpr_0_1pct": 0.971 | |
| }, | |
| "en": { | |
| "fpr_1pct": 0.96909, | |
| "fpr_0_1pct": 0.9819 | |
| } | |
| } | |
| } | |
| } |