joneauxedgar/pasteproof-pii-detector-onnx
By joneauxedgar · ↓ 2 · ♥ 0 · Updated 2026-01-02
What's in this repo
This page lists the files in joneauxedgar/pasteproof-pii-detector-onnx, including model.onnx.
- 1 ONNX models (.onnx files)
- 8 files, including 5 .json, 1 .md, 1 .onnx
- Last updated 2026-01-02
ONNX files
| File | Size | Download |
|---|---|---|
| model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
PasteProof PII Detector - ONNX (Browser-Ready)
Quantized ONNX version of pasteproof-pii-detector-v3 for fast browser-side inference.
Performance
| Metric | Value |
|---|---|
| Model size | ~147 MB |
| Inference time | 50-100ms (browser) |
| Accuracy | ~97% F1 (minimal loss from quantization) |
Usage with Transformers.js
import { pipeline } from '@xenova/transformers';
const detector = await pipeline(
'token-classification',
'joneauxedgar/pasteproof-pii-detector-onnx'
);
const results = await detector('const key = "sk_live_abc123";');
console.log(results);
Usage with ONNX Runtime Web
import * as ort from 'onnxruntime-web';
const session = await ort.InferenceSession.create('model.onnx');
// ... tokenize and run inference
Files
model.onnx- Quantized ONNX modeltokenizer.json- Tokenizer vocabularytokenizer_config.json- Tokenizer settingsconfig.json- Model configurationspecial_tokens_map.json- Special token mappings
Original Model
See pasteproof-pii-detector-v3 for full details on entity types and training.
Model info
token-classification
onnx
onnx
modernbert
token-classification
quantized
pii
privacy
browser
transformers.js
en
license:mit
region:us
↓ 2
♥ 0
Created: 2026-01-02
Updated: 2026-01-02
View on Hugging FaceFiles (8)
.gitattributes
README.md
config.json
model.onnx
ONNX
ort_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
Related models
More from joneauxedgar
No other models by this author.