Skip to content

Commit 8d4e058

Browse files
committed
feat(gallery): add privacy-filter-nemotron (f16 + q8)
GGUF conversions of OpenMed/privacy-filter-nemotron — a fine-grained English PII token-classifier (55 categories / 221 BIOES classes), fine-tuned from openai/privacy-filter on NVIDIA's Nemotron-PII dataset. Sibling to the existing privacy-filter-multilingual entry, trading language breadth for category depth. - privacy-filter-nemotron: F16 reference artifact (~2.8 GB). - privacy-filter-nemotron-q8: Q8_0 quant (~1.64 GB) for RAM-constrained / edge use; description notes the size/speed tradeoff and to validate on your own data (a single dropped span is a PII leak). Both run on the privacy-filter backend with known_usecases [token_classify] and a default mask policy (min_score 0.5); operators add per-category entity_actions as needed. sha256s taken from the HF repo's LFS object ids. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Richard Palethorpe <io@richiejp.com>
1 parent dc4528d commit 8d4e058

1 file changed

Lines changed: 92 additions & 0 deletions

File tree

gallery/index.yaml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,98 @@
12061206
- filename: privacy-filter/models/privacy-filter-multilingual/privacy-filter-multilingual-f16.gguf
12071207
sha256: 01b76572f80b7d2ebee80a27cb9c3699c26b04cae1c402eee7664fc17a4b5ce6
12081208
uri: https://huggingface.co/LocalAI-io/privacy-filter-multilingual-GGUF/resolve/main/privacy-filter-multilingual-f16.gguf
1209+
- name: "privacy-filter-nemotron"
1210+
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
1211+
icon: https://cdn-avatars.huggingface.co/v1/production/uploads/5fd5e18a90b6dc4633f6d292/QPiv8pt4JNxr0FdGnpFef.png
1212+
urls:
1213+
- https://huggingface.co/OpenMed/privacy-filter-nemotron
1214+
- https://huggingface.co/LocalAI-io/privacy-filter-nemotron-GGUF
1215+
description: |
1216+
A fine-grained English PII token-classification model: a fine-tune of
1217+
openai/privacy-filter by OpenMed on NVIDIA's Nemotron-PII dataset. It labels
1218+
every token with a BIOES tag over 55 PII categories (221 classes), trading
1219+
the multilingual sibling's language breadth for category depth - identity,
1220+
contact, address, dates, government IDs, financial, healthcare, enterprise,
1221+
vehicle and digital entities (including api_key, ipv4/ipv6 and mac_address).
1222+
For multilingual text prefer privacy-filter-multilingual instead.
1223+
1224+
In LocalAI this is a PII detector for the NER redactor tier: set
1225+
known_usecases to [token_classify] (as below), and any model opts into
1226+
redaction by listing this one under pii.detectors. The detection policy
1227+
(which categories to mask vs block, and the score threshold) lives on this
1228+
model's own pii_detection block - see the overrides below. It runs locally
1229+
with no Python, served by the standalone privacy-filter backend's
1230+
TokenClassify RPC (constrained BIOES Viterbi decode into UTF-8 byte-offset
1231+
entity spans).
1232+
1233+
Architecture: gpt-oss-style sparse MoE (8 layers, d_model 640, 128 experts
1234+
top-4, ~1.5B total / ~50M active per token), bidirectional banded attention,
1235+
o200k tokenizer and a 221-way token-classification head; served via the
1236+
openai-privacy-filter architecture. F16, ~2.8 GB. (A smaller Q8_0 quant
1237+
exists on the GGUF repo for RAM-constrained use - validate it on your own
1238+
data, since for PII a single dropped span is a leak.)
1239+
license: apache-2.0
1240+
tags:
1241+
- token-classification
1242+
- ner
1243+
- pii
1244+
- privacy
1245+
- nemotron
1246+
- gguf
1247+
overrides:
1248+
backend: privacy-filter
1249+
embeddings: true
1250+
known_usecases:
1251+
- token_classify
1252+
parameters:
1253+
model: privacy-filter/models/privacy-filter-nemotron/privacy-filter-nemotron-f16.gguf
1254+
pii_detection:
1255+
min_score: 0.5
1256+
default_action: mask
1257+
files:
1258+
- filename: privacy-filter/models/privacy-filter-nemotron/privacy-filter-nemotron-f16.gguf
1259+
sha256: 70dfe91ff220ff04594168a83e296dcc2054449cde77f98d0e782edbb6a31f5a
1260+
uri: https://huggingface.co/LocalAI-io/privacy-filter-nemotron-GGUF/resolve/main/privacy-filter-nemotron-f16.gguf
1261+
- name: "privacy-filter-nemotron-q8"
1262+
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
1263+
icon: https://cdn-avatars.huggingface.co/v1/production/uploads/5fd5e18a90b6dc4633f6d292/QPiv8pt4JNxr0FdGnpFef.png
1264+
urls:
1265+
- https://huggingface.co/OpenMed/privacy-filter-nemotron
1266+
- https://huggingface.co/LocalAI-io/privacy-filter-nemotron-GGUF
1267+
description: |
1268+
Q8_0 quant of privacy-filter-nemotron (~1.64 GB, vs ~2.8 GB for F16) for
1269+
RAM-constrained / edge use (e.g. a 4 GB Raspberry Pi 5). The MoE expert
1270+
weights are stored 8-bit; attention, embeddings and the classifier head
1271+
stay F16. Same model, policy and runtime as the F16 entry - see
1272+
privacy-filter-nemotron for the full description.
1273+
1274+
Prefer the F16 entry when you can afford it: it is the reference artifact.
1275+
On a mixed-PII document the publisher measured q8 matching F16 on 99.93% of
1276+
token labels with an identical span set at threshold 0.5 - but one token
1277+
flipped, and for PII a single dropped span is a leak. Treat q8 as a
1278+
deliberate size/speed tradeoff and validate it on your own data.
1279+
license: apache-2.0
1280+
tags:
1281+
- token-classification
1282+
- ner
1283+
- pii
1284+
- privacy
1285+
- nemotron
1286+
- gguf
1287+
overrides:
1288+
backend: privacy-filter
1289+
embeddings: true
1290+
known_usecases:
1291+
- token_classify
1292+
parameters:
1293+
model: privacy-filter/models/privacy-filter-nemotron/privacy-filter-nemotron-q8.gguf
1294+
pii_detection:
1295+
min_score: 0.5
1296+
default_action: mask
1297+
files:
1298+
- filename: privacy-filter/models/privacy-filter-nemotron/privacy-filter-nemotron-q8.gguf
1299+
sha256: 2ec11c154e572a2686f4d77e861b7f74e6917e09638fe9bd27156d48bd99e21a
1300+
uri: https://huggingface.co/LocalAI-io/privacy-filter-nemotron-GGUF/resolve/main/privacy-filter-nemotron-q8.gguf
12091301
- name: "secret-filter"
12101302
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
12111303
description: |

0 commit comments

Comments
 (0)