Text Classification
Transformers
ONNX
Safetensors
modernbert
prompt-injection
indirect-prompt-injection
agent-security
ai-safety
guardrail
mcp
rag-security
flintglass
text-embeddings-inference
Instructions to use flintglass/PrismGuard-Multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismGuard-Multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="flintglass/PrismGuard-Multilingual")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("flintglass/PrismGuard-Multilingual") model = AutoModelForSequenceClassification.from_pretrained("flintglass/PrismGuard-Multilingual", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Release Flintglass PrismGuard-Multilingual v1 (mmBERT-base 307M, 8K ctx, 3-class, PyTorch + ONNX FP32/INT8)
892c3c5 verified Download training_summary.json from flintglass/PrismGuard-Multilingual: direct link, hf CLI and curl.
- Browser
- Download file 2.14 kB
-
https://huggingface.co/flintglass/PrismGuard-Multilingual/resolve/main/training_summary.json
- Command line
-
hf download hf://flintglass/PrismGuard-Multilingual/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/flintglass/PrismGuard-Multilingual/resolve/main/training_summary.json
2.14 kB
| { | |
| "base_model": "jhu-clsp/mmBERT-base", | |
| "args": { | |
| "base_model": "jhu-clsp/mmBERT-base", | |
| "corpus_dir": "/outputs/db8d7e87-f203-486d-9db5-dbf208f87b1e/corpus_v3/corpus_hf", | |
| "out_dir": "/outputs/40cca6af-f146-42a7-b9cb-27913a399660/PrismGuard-Multilingual", | |
| "max_length": 8192, | |
| "epochs": 5, | |
| "lr": 4e-05, | |
| "weight_decay": 0.01, | |
| "max_tokens": 16384, | |
| "grad_accum": 2, | |
| "hard_neg_weight": 1.8, | |
| "label_smoothing": 0.02, | |
| "seed": 42, | |
| "grad_checkpointing": true, | |
| "uniform_class_weights": true | |
| }, | |
| "history": [ | |
| { | |
| "epoch": 1, | |
| "train_loss": 1.1923, | |
| "val": { | |
| "macro_f1": 0.9263, | |
| "binary_f1": 0.9356, | |
| "binary_auroc": 0.9894, | |
| "fpr": 0.0222, | |
| "nll": 0.1598 | |
| }, | |
| "composite": 0.923 | |
| }, | |
| { | |
| "epoch": 2, | |
| "train_loss": 0.2893, | |
| "val": { | |
| "macro_f1": 0.974, | |
| "binary_f1": 0.9746, | |
| "binary_auroc": 0.9982, | |
| "fpr": 0.0097, | |
| "nll": 0.0724 | |
| }, | |
| "composite": 0.9725 | |
| }, | |
| { | |
| "epoch": 3, | |
| "train_loss": 0.1864, | |
| "val": { | |
| "macro_f1": 0.9826, | |
| "binary_f1": 0.9849, | |
| "binary_auroc": 0.9988, | |
| "fpr": 0.0077, | |
| "nll": 0.0538 | |
| }, | |
| "composite": 0.9814 | |
| }, | |
| { | |
| "epoch": 4, | |
| "train_loss": 0.1658, | |
| "val": { | |
| "macro_f1": 0.9826, | |
| "binary_f1": 0.9849, | |
| "binary_auroc": 0.9988, | |
| "fpr": 0.0097, | |
| "nll": 0.0524 | |
| }, | |
| "composite": 0.9811 | |
| }, | |
| { | |
| "epoch": 5, | |
| "train_loss": 0.1614, | |
| "val": { | |
| "macro_f1": 0.9826, | |
| "binary_f1": 0.9849, | |
| "binary_auroc": 0.9988, | |
| "fpr": 0.0097, | |
| "nll": 0.0529 | |
| }, | |
| "composite": 0.9811 | |
| } | |
| ], | |
| "best_composite": 0.9814, | |
| "calibration_T": 0.80518, | |
| "calibration_baked": true, | |
| "cal_before": { | |
| "macro_f1": 0.9803, | |
| "binary_f1": 0.9812, | |
| "binary_auroc": 0.9965, | |
| "fpr": 0.0068, | |
| "nll": 0.0645 | |
| }, | |
| "cal_after": { | |
| "macro_f1": 0.9803, | |
| "binary_f1": 0.9812, | |
| "binary_auroc": 0.9965, | |
| "fpr": 0.0068, | |
| "nll": 0.0597 | |
| } | |
| } |