leolee99/PIGuard exported to ONNX for the saf3ai scanner's candidate injection classifier. Weights are unchanged; only the graph format differs.
leolee99/PIGuard at dd78b24e330193a22d2293ac66922dd4f982f563benign (0), injection (1)input_ids, attention_mask, both axes dynamiclogits, shape (batch, 2)Exported by scripts/export_piguard_onnx.py in the saf3ai-scanner repo. The
export is gated on agreeing with the PyTorch model to within 1e-3 on every
benchmark prompt.
PIGuard's head is the first token of the last hidden state through one Linear
layer, with no pooler. The source repo ships that as remote code; this export
defines it locally instead, so nothing here needs trust_remote_code.