Text Classification
Transformers
ONNX
Safetensors
English
modernbert
prompt-injection
indirect-prompt-injection
agent-security
ai-safety
guardrail
mcp
rag-security
flintglass
text-embeddings-inference
Instructions to use flintglass/PrismGuard-Large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flintglass/PrismGuard-Large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="flintglass/PrismGuard-Large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("flintglass/PrismGuard-Large") model = AutoModelForSequenceClassification.from_pretrained("flintglass/PrismGuard-Large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Release Flintglass PrismGuard-Large v1 (ModernBERT-large 395M, 8K ctx, 3-class, PyTorch + ONNX FP32/INT8)
414e88a verified Download training_summary.json from flintglass/PrismGuard-Large: direct link, hf CLI and curl.
- Browser
- Download file 2.14 kB
-
https://huggingface.co/flintglass/PrismGuard-Large/resolve/main/training_summary.json
- Command line
-
hf download hf://flintglass/PrismGuard-Large/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/flintglass/PrismGuard-Large/resolve/main/training_summary.json
2.14 kB
| { | |
| "base_model": "answerdotai/ModernBERT-large", | |
| "args": { | |
| "base_model": "answerdotai/ModernBERT-large", | |
| "corpus_dir": "/outputs/db8d7e87-f203-486d-9db5-dbf208f87b1e/corpus_v3/corpus_hf", | |
| "out_dir": "/outputs/d535a7e3-748e-4294-a351-19753b1d3d13/PrismGuard-Large", | |
| "max_length": 8192, | |
| "epochs": 5, | |
| "lr": 3.5e-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.2241, | |
| "val": { | |
| "macro_f1": 0.8597, | |
| "binary_f1": 0.8561, | |
| "binary_auroc": 0.9601, | |
| "fpr": 0.0801, | |
| "nll": 0.2803 | |
| }, | |
| "composite": 0.8477 | |
| }, | |
| { | |
| "epoch": 2, | |
| "train_loss": 0.5059, | |
| "val": { | |
| "macro_f1": 0.9541, | |
| "binary_f1": 0.956, | |
| "binary_auroc": 0.994, | |
| "fpr": 0.0261, | |
| "nll": 0.1179 | |
| }, | |
| "composite": 0.9502 | |
| }, | |
| { | |
| "epoch": 3, | |
| "train_loss": 0.2522, | |
| "val": { | |
| "macro_f1": 0.9653, | |
| "binary_f1": 0.9684, | |
| "binary_auroc": 0.9965, | |
| "fpr": 0.0222, | |
| "nll": 0.0891 | |
| }, | |
| "composite": 0.962 | |
| }, | |
| { | |
| "epoch": 4, | |
| "train_loss": 0.2134, | |
| "val": { | |
| "macro_f1": 0.9688, | |
| "binary_f1": 0.9719, | |
| "binary_auroc": 0.9966, | |
| "fpr": 0.0174, | |
| "nll": 0.0857 | |
| }, | |
| "composite": 0.9662 | |
| }, | |
| { | |
| "epoch": 5, | |
| "train_loss": 0.2041, | |
| "val": { | |
| "macro_f1": 0.9697, | |
| "binary_f1": 0.9719, | |
| "binary_auroc": 0.9965, | |
| "fpr": 0.0174, | |
| "nll": 0.0859 | |
| }, | |
| "composite": 0.9671 | |
| } | |
| ], | |
| "best_composite": 0.9671, | |
| "calibration_T": 0.81841, | |
| "calibration_baked": true, | |
| "cal_before": { | |
| "macro_f1": 0.9572, | |
| "binary_f1": 0.966, | |
| "binary_auroc": 0.9965, | |
| "fpr": 0.0174, | |
| "nll": 0.0978 | |
| }, | |
| "cal_after": { | |
| "macro_f1": 0.9579, | |
| "binary_f1": 0.9667, | |
| "binary_auroc": 0.9964, | |
| "fpr": 0.0164, | |
| "nll": 0.0935 | |
| } | |
| } |