Token Classification
Transformers
ONNX
Safetensors
English
distilbert
pii
privacy
experimental
datafog
Instructions to use DataFog/pii-en-65m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DataFog/pii-en-65m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="DataFog/pii-en-65m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("DataFog/pii-en-65m") model = AutoModelForTokenClassification.from_pretrained("DataFog/pii-en-65m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download provenance/artifacts/native-benchmark.json from DataFog/pii-en-65m: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/DataFog/pii-en-65m/resolve/main/provenance/artifacts/native-benchmark.json
- Command line
-
hf download hf://DataFog/pii-en-65m/provenance/artifacts/native-benchmark.json
-
curl -L -o native-benchmark.json https://huggingface.co/DataFog/pii-en-65m/resolve/main/provenance/artifacts/native-benchmark.json
1.26 kB
| { | |
| "backend": "native Rust + ONNX Runtime CPU, one inference thread", | |
| "bundle_bytes": 300076892, | |
| "cold_load_seconds": 0.17001258302479982, | |
| "cold_load_definition": "process launch through first empty-input response; includes initialization and minimal inference", | |
| "warm_requests": [ | |
| { | |
| "id": "train:11173:fe74ed22f6d1401ca2ffd5eff69b393f", | |
| "bytes": 115, | |
| "latency_seconds": 0.006004999973811209, | |
| "findings": 2 | |
| }, | |
| { | |
| "id": "train:57662:383de2ea1ead4b888647277ce284eda4", | |
| "bytes": 752, | |
| "latency_seconds": 0.020578791038133204, | |
| "findings": 1 | |
| }, | |
| { | |
| "id": "train:11465:d5a56f0fd54642199415f4f1fb64fcb9", | |
| "bytes": 2010, | |
| "latency_seconds": 0.08128199994098395, | |
| "findings": 2 | |
| }, | |
| { | |
| "id": "train:83899:780281fffc5548e1a9cc3cb5750ca236", | |
| "bytes": 4502, | |
| "latency_seconds": 0.17272016603965312, | |
| "findings": 11 | |
| } | |
| ], | |
| "peak_rss_bytes": 496418816, | |
| "memory_definition": "maximum RSS sampled after responses, not allocator high-water mark", | |
| "warm_observed_requests_per_second": 14.255880953107562, | |
| "sampling": "one request each at observed min/median/p90/max validation byte lengths; descriptive observations, no latency guarantee" | |
| } | |