Token Classification
Transformers
Safetensors
lfm2
liquid
lfm2.5
bidirectional
masked-lm
encoder
pii
ner
privacy
multilingual
custom_code
Run this model with HF Jobs
Run LiquidAI/LFM2.5-Encoder-350M-PII-Detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/LiquidAI/LFM2.5-Encoder-350M-PII-Detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/LiquidAI/LFM2.5-Encoder-350M-PII-Detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use LiquidAI/LFM2.5-Encoder-350M-PII-Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiquidAI/LFM2.5-Encoder-350M-PII-Detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="LiquidAI/LFM2.5-Encoder-350M-PII-Detector", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("LiquidAI/LFM2.5-Encoder-350M-PII-Detector", trust_remote_code=True) model = AutoModelForTokenClassification.from_pretrained("LiquidAI/LFM2.5-Encoder-350M-PII-Detector", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json with huggingface_hub
Browse files51 unmodified lines5253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571585556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921934 unmodified lines1981992001691701711721731741751761771781791801811821831841851861871881891901911921931942012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402012022032042052062072082092102112122132142152162172182192202212222232242252262412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802332342352362372382392402412422432442452462472482492502512522532542552562572582812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163171 unmodified line31932032126626726826927027127227327427527627727827928028128228328428528628728828929029132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735851 unmodified lines "22": "I-credential.api_key", "23": "E-credential.api_key", "24": "S-credential.api_key", "25": "B-credential.password", "26": "I-credential.password", "27": "E-credential.password", "28": "S-credential.password", "29": "B-developer.device_id", "30": "I-developer.device_id", "31": "E-developer.device_id", "32": "S-developer.device_id", "33": "B-developer.login_credentials", "34": "I-developer.login_credentials", "35": "E-developer.login_credentials", "36": "S-developer.login_credentials", "37": "B-device.mac_address", "38": "I-device.mac_address", "39": "E-device.mac_address", "40": "S-device.mac_address", "41": "B-financial.bank_account", "42": "I-financial.bank_account", "43": "E-financial.bank_account", "44": "S-financial.bank_account", "45": "B-financial.credit_card", "46": "I-financial.credit_card", "47": "E-financial.credit_card", "48": "S-financial.credit_card", "49": "B-financial.iban", "50": "I-financial.iban", "51": "E-financial.iban", "52": "S-financial.iban", "53": "B-financial.swift_bic", "54": "I-financial.swift_bic", "55": "E-financial.swift_bic", "56": "S-financial.swift_bic", "57": "B-healthcare.condition", "58": "I-healthcare.condition", "59": "E-healthcare.condition", "60": "S-healthcare.condition", "61": "B-healthcare.health_plan_id", "62": "I-healthcare.health_plan_id", "63": "E-healthcare.health_plan_id", "64": "S-healthcare.health_plan_id", "65": "B-healthcare.medical_record", "66": "I-healthcare.medical_record", "67": "E-healthcare.medical_record", "68": "S-healthcare.medical_record", "69": "B-healthcare.medication", "70": "I-healthcare.medication", "71": "E-healthcare.medication", "72": "S-healthcare.medication", "73": "B-identity.date_of_birth", "74": "I-identity.date_of_birth", "75": "E-identity.date_of_birth", "76": "S-identity.date_of_birth", "77": "B-identity.drivers_license", "78": "I-identity.drivers_license", "79": "E-identity.drivers_license", "80": "S-identity.drivers_license", "81": "B-identity.national_id", "82": "I-identity.national_id", "83": "E-identity.national_id", "84": "S-identity.national_id", "85": "B-identity.passport", "86": "I-identity.passport", "87": "E-identity.passport", "88": "S-identity.passport", "89": "B-identity.person_name", "90": "I-identity.person_name", "91": "E-identity.person_name", "92": "S-identity.person_name", "93": "B-identity.ssn", "94": "I-identity.ssn", "95": "E-identity.ssn", "96": "S-identity.ssn", "97": "B-identity.tax_id", "98": "I-identity.tax_id", "99": "E-identity.tax_id", "100": "S-identity.tax_id", "101": "B-legal.case_number", "102": "I-legal.case_number", "103": "E-legal.case_number", "104": "S-legal.case_number", "105": "B-location.gps_coordinates", "106": "I-location.gps_coordinates", "107": "E-location.gps_coordinates", "108": "S-location.gps_coordinates", "109": "B-online.url", "110": "I-online.url", "111": "E-online.url", "112": "S-online.url", "113": "B-online.username", "114": "I-online.username", "115": "E-online.username", "116": "S-online.username", "117": "B-org.company_name", "118": "I-org.company_name", "119": "E-org.company_name", "120": "S-org.company_name", "121": "B-special.political", "122": "I-special.political", "123": "E-special.political", "124": "S-special.political", "125": "B-special.religion", "126": "I-special.religion", "127": "E-special.religion", "128": "S-special.religion" "25": "B-credential.connection_string", "26": "I-credential.connection_string", "27": "E-credential.connection_string", "28": "S-credential.connection_string", "29": "B-credential.jwt", "30": "I-credential.jwt", "31": "E-credential.jwt", "32": "S-credential.jwt", "33": "B-credential.password", "34": "I-credential.password", "35": "E-credential.password", "36": "S-credential.password", "37": "B-credential.private_key", "38": "I-credential.private_key", "39": "E-credential.private_key", "40": "S-credential.private_key", "41": "B-developer.device_id", "42": "I-developer.device_id", "43": "E-developer.device_id", "44": "S-developer.device_id", "45": "B-developer.login_credentials", "46": "I-developer.login_credentials", "47": "E-developer.login_credentials", "48": "S-developer.login_credentials", "49": "B-device.imei", "50": "I-device.imei", "51": "E-device.imei", "52": "S-device.imei", "53": "B-device.mac_address", "54": "I-device.mac_address", "55": "E-device.mac_address", "56": "S-device.mac_address", "57": "B-financial.amount", "58": "I-financial.amount", "59": "E-financial.amount", "60": "S-financial.amount", "61": "B-financial.bank_account", "62": "I-financial.bank_account", "63": "E-financial.bank_account", "64": "S-financial.bank_account", "65": "B-financial.credit_card", "66": "I-financial.credit_card", "67": "E-financial.credit_card", "68": "S-financial.credit_card", "69": "B-financial.crypto_wallet", "70": "I-financial.crypto_wallet", "71": "E-financial.crypto_wallet", "72": "S-financial.crypto_wallet", "73": "B-financial.iban", "74": "I-financial.iban", "75": "E-financial.iban", "76": "S-financial.iban", "77": "B-financial.swift_bic", "78": "I-financial.swift_bic", "79": "E-financial.swift_bic", "80": "S-financial.swift_bic", "81": "B-healthcare.condition", "82": "I-healthcare.condition", "83": "E-healthcare.condition", "84": "S-healthcare.condition", "85": "B-healthcare.health_plan_id", "86": "I-healthcare.health_plan_id", "87": "E-healthcare.health_plan_id", "88": "S-healthcare.health_plan_id", "89": "B-healthcare.medical_record", "90": "I-healthcare.medical_record", "91": "E-healthcare.medical_record", "92": "S-healthcare.medical_record", "93": "B-healthcare.medication", "94": "I-healthcare.medication", "95": "E-healthcare.medication", "96": "S-healthcare.medication", "97": "B-identity.date_of_birth", "98": "I-identity.date_of_birth", "99": "E-identity.date_of_birth", "100": "S-identity.date_of_birth", "101": "B-identity.drivers_license", "102": "I-identity.drivers_license", "103": "E-identity.drivers_license", "104": "S-identity.drivers_license", "105": "B-identity.national_id", "106": "I-identity.national_id", "107": "E-identity.national_id", "108": "S-identity.national_id", "109": "B-identity.passport", "110": "I-identity.passport", "111": "E-identity.passport", "112": "S-identity.passport", "113": "B-identity.person_name", "114": "I-identity.person_name", "115": "E-identity.person_name", "116": "S-identity.person_name", "117": "B-identity.ssn", "118": "I-identity.ssn", "119": "E-identity.ssn", "120": "S-identity.ssn", "121": "B-identity.tax_id", "122": "I-identity.tax_id", "123": "E-identity.tax_id", "124": "S-identity.tax_id", "125": "B-legal.case_number", "126": "I-legal.case_number", "127": "E-legal.case_number", "128": "S-legal.case_number", "129": "B-location.gps_coordinates", "130": "I-location.gps_coordinates", "131": "E-location.gps_coordinates", "132": "S-location.gps_coordinates", "133": "B-online.url", "134": "I-online.url", "135": "E-online.url", "136": "S-online.url", "137": "B-online.username", "138": "I-online.username", "139": "E-online.username", "140": "S-online.username", "141": "B-org.company_name", "142": "I-org.company_name", "143": "E-org.company_name", "144": "S-org.company_name", "145": "B-special.health_status", "146": "I-special.health_status", "147": "E-special.health_status", "148": "S-special.health_status", "149": "B-special.orientation", "150": "I-special.orientation", "151": "E-special.orientation", "152": "S-special.orientation", "153": "B-special.political", "154": "I-special.political", "155": "E-special.political", "156": "S-special.political", "157": "B-special.religion", "158": "I-special.religion", "159": "E-special.religion", "160": "S-special.religion" }, "initializer_range": 0.02, "intermediate_size": 6656,4 unmodified lines "B-contact.phone": 13, "B-contact.postal_code": 17, "B-credential.api_key": 21, "B-credential.password": 25, "B-developer.device_id": 29, "B-developer.login_credentials": 33, "B-device.mac_address": 37, "B-financial.bank_account": 41, "B-financial.credit_card": 45, "B-financial.iban": 49, "B-financial.swift_bic": 53, "B-healthcare.condition": 57, "B-healthcare.health_plan_id": 61, "B-healthcare.medical_record": 65, "B-healthcare.medication": 69, "B-identity.date_of_birth": 73, "B-identity.drivers_license": 77, "B-identity.national_id": 81, "B-identity.passport": 85, "B-identity.person_name": 89, "B-identity.ssn": 93, "B-identity.tax_id": 97, "B-legal.case_number": 101, "B-location.gps_coordinates": 105, "B-online.url": 109, "B-online.username": 113, "B-org.company_name": 117, "B-special.political": 121, "B-special.religion": 125, "B-credential.connection_string": 25, "B-credential.jwt": 29, "B-credential.password": 33, "B-credential.private_key": 37, "B-developer.device_id": 41, "B-developer.login_credentials": 45, "B-device.imei": 49, "B-device.mac_address": 53, "B-financial.amount": 57, "B-financial.bank_account": 61, "B-financial.credit_card": 65, "B-financial.crypto_wallet": 69, "B-financial.iban": 73, "B-financial.swift_bic": 77, "B-healthcare.condition": 81, "B-healthcare.health_plan_id": 85, "B-healthcare.medical_record": 89, "B-healthcare.medication": 93, "B-identity.date_of_birth": 97, "B-identity.drivers_license": 101, "B-identity.national_id": 105, "B-identity.passport": 109, "B-identity.person_name": 113, "B-identity.ssn": 117, "B-identity.tax_id": 121, "B-legal.case_number": 125, "B-location.gps_coordinates": 129, "B-online.url": 133, "B-online.username": 137, "B-org.company_name": 141, "B-special.health_status": 145, "B-special.orientation": 149, "B-special.political": 153, "B-special.religion": 157, "E-contact.address": 3, "E-contact.email": 7, "E-contact.ip_address": 11, "E-contact.phone": 15, "E-contact.postal_code": 19, "E-credential.api_key": 23, "E-credential.password": 27, "E-developer.device_id": 31, "E-developer.login_credentials": 35, "E-device.mac_address": 39, "E-financial.bank_account": 43, "E-financial.credit_card": 47, "E-financial.iban": 51, "E-financial.swift_bic": 55, "E-healthcare.condition": 59, "E-healthcare.health_plan_id": 63, "E-healthcare.medical_record": 67, "E-healthcare.medication": 71, "E-identity.date_of_birth": 75, "E-identity.drivers_license": 79, "E-identity.national_id": 83, "E-identity.passport": 87, "E-identity.person_name": 91, "E-identity.ssn": 95, "E-identity.tax_id": 99, "E-legal.case_number": 103, "E-location.gps_coordinates": 107, "E-online.url": 111, "E-online.username": 115, "E-org.company_name": 119, "E-special.political": 123, "E-special.religion": 127, "E-credential.connection_string": 27, "E-credential.jwt": 31, "E-credential.password": 35, "E-credential.private_key": 39, "E-developer.device_id": 43, "E-developer.login_credentials": 47, "E-device.imei": 51, "E-device.mac_address": 55, "E-financial.amount": 59, "E-financial.bank_account": 63, "E-financial.credit_card": 67, "E-financial.crypto_wallet": 71, "E-financial.iban": 75, "E-financial.swift_bic": 79, "E-healthcare.condition": 83, "E-healthcare.health_plan_id": 87, "E-healthcare.medical_record": 91, "E-healthcare.medication": 95, "E-identity.date_of_birth": 99, "E-identity.drivers_license": 103, "E-identity.national_id": 107, "E-identity.passport": 111, "E-identity.person_name": 115, "E-identity.ssn": 119, "E-identity.tax_id": 123, "E-legal.case_number": 127, "E-location.gps_coordinates": 131, "E-online.url": 135, "E-online.username": 139, "E-org.company_name": 143, "E-special.health_status": 147, "E-special.orientation": 151, "E-special.political": 155, "E-special.religion": 159, "I-contact.address": 2, "I-contact.email": 6, "I-contact.ip_address": 10, "I-contact.phone": 14, "I-contact.postal_code": 18, "I-credential.api_key": 22, "I-credential.password": 26, "I-developer.device_id": 30, "I-developer.login_credentials": 34, "I-device.mac_address": 38, "I-financial.bank_account": 42, "I-financial.credit_card": 46, "I-financial.iban": 50, "I-financial.swift_bic": 54, "I-healthcare.condition": 58, "I-healthcare.health_plan_id": 62, "I-healthcare.medical_record": 66, "I-healthcare.medication": 70, "I-identity.date_of_birth": 74, "I-identity.drivers_license": 78, "I-identity.national_id": 82, "I-identity.passport": 86, "I-identity.person_name": 90, "I-identity.ssn": 94, "I-identity.tax_id": 98, "I-legal.case_number": 102, "I-location.gps_coordinates": 106, "I-online.url": 110, "I-online.username": 114, "I-org.company_name": 118, "I-special.political": 122, "I-special.religion": 126, "I-credential.connection_string": 26, "I-credential.jwt": 30, "I-credential.password": 34, "I-credential.private_key": 38, "I-developer.device_id": 42, "I-developer.login_credentials": 46, "I-device.imei": 50, "I-device.mac_address": 54, "I-financial.amount": 58, "I-financial.bank_account": 62, "I-financial.credit_card": 66, "I-financial.crypto_wallet": 70, "I-financial.iban": 74, "I-financial.swift_bic": 78, "I-healthcare.condition": 82, "I-healthcare.health_plan_id": 86, "I-healthcare.medical_record": 90, "I-healthcare.medication": 94, "I-identity.date_of_birth": 98, "I-identity.drivers_license": 102, "I-identity.national_id": 106, "I-identity.passport": 110, "I-identity.person_name": 114, "I-identity.ssn": 118, "I-identity.tax_id": 122, "I-legal.case_number": 126, "I-location.gps_coordinates": 130, "I-online.url": 134, "I-online.username": 138, "I-org.company_name": 142, "I-special.health_status": 146, "I-special.orientation": 150, "I-special.political": 154, "I-special.religion": 158, "O": 0, "S-contact.address": 4, "S-contact.email": 8,1 unmodified line "S-contact.phone": 16, "S-contact.postal_code": 20, "S-credential.api_key": 24, "S-credential.password": 28, "S-developer.device_id": 32, "S-developer.login_credentials": 36, "S-device.mac_address": 40, "S-financial.bank_account": 44, "S-financial.credit_card": 48, "S-financial.iban": 52, "S-financial.swift_bic": 56, "S-healthcare.condition": 60, "S-healthcare.health_plan_id": 64, "S-healthcare.medical_record": 68, "S-healthcare.medication": 72, "S-identity.date_of_birth": 76, "S-identity.drivers_license": 80, "S-identity.national_id": 84, "S-identity.passport": 88, "S-identity.person_name": 92, "S-identity.ssn": 96, "S-identity.tax_id": 100, "S-legal.case_number": 104, "S-location.gps_coordinates": 108, "S-online.url": 112, "S-online.username": 116, "S-org.company_name": 120, "S-special.political": 124, "S-special.religion": 128 "S-credential.connection_string": 28, "S-credential.jwt": 32, "S-credential.password": 36, "S-credential.private_key": 40, "S-developer.device_id": 44, "S-developer.login_credentials": 48, "S-device.imei": 52, "S-device.mac_address": 56, "S-financial.amount": 60, "S-financial.bank_account": 64, "S-financial.credit_card": 68, "S-financial.crypto_wallet": 72, "S-financial.iban": 76, "S-financial.swift_bic": 80, "S-healthcare.condition": 84, "S-healthcare.health_plan_id": 88, "S-healthcare.medical_record": 92, "S-healthcare.medication": 96, "S-identity.date_of_birth": 100, "S-identity.drivers_license": 104, "S-identity.national_id": 108, "S-identity.passport": 112, "S-identity.person_name": 116, "S-identity.ssn": 120, "S-identity.tax_id": 124, "S-legal.case_number": 128, "S-location.gps_coordinates": 132, "S-online.url": 136, "S-online.username": 140, "S-org.company_name": 144, "S-special.health_status": 148, "S-special.orientation": 152, "S-special.political": 156, "S-special.religion": 160 }, "label_smoothing": 0.1, "layer_types": [config.json+272-208