Instructions to use TensorGreed/brewslm-sensitive-data-tagger with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TensorGreed/brewslm-sensitive-data-tagger with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="TensorGreed/brewslm-sensitive-data-tagger")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("TensorGreed/brewslm-sensitive-data-tagger") model = AutoModelForTokenClassification.from_pretrained("TensorGreed/brewslm-sensitive-data-tagger", device_map="auto") - Notebooks
- Google Colab
- Kaggle
BrewSLM export 37: sensitive-data span tagger, run #143 (deberta-v3-base, 30 types)
d1ddca2 verified Download config.json from TensorGreed/brewslm-sensitive-data-tagger: direct link, hf CLI and curl.
- Browser
- Download file 4.01 kB
-
https://huggingface.co/TensorGreed/brewslm-sensitive-data-tagger/resolve/main/config.json
- Command line
-
hf download hf://TensorGreed/brewslm-sensitive-data-tagger/config.json
-
curl -L -o config.json https://huggingface.co/TensorGreed/brewslm-sensitive-data-tagger/resolve/main/config.json
4.01 kB
| { | |
| "architectures": [ | |
| "DebertaV2ForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": null, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-address", | |
| "2": "I-address", | |
| "3": "B-api_key", | |
| "4": "I-api_key", | |
| "5": "B-bank_account", | |
| "6": "I-bank_account", | |
| "7": "B-card_expiry", | |
| "8": "I-card_expiry", | |
| "9": "B-credit_card", | |
| "10": "I-credit_card", | |
| "11": "B-customer_id", | |
| "12": "I-customer_id", | |
| "13": "B-cvv", | |
| "14": "I-cvv", | |
| "15": "B-date_of_birth", | |
| "16": "I-date_of_birth", | |
| "17": "B-device_id", | |
| "18": "I-device_id", | |
| "19": "B-diagnosis", | |
| "20": "I-diagnosis", | |
| "21": "B-email", | |
| "22": "I-email", | |
| "23": "B-employee_id", | |
| "24": "I-employee_id", | |
| "25": "B-health_plan_id", | |
| "26": "I-health_plan_id", | |
| "27": "B-iban", | |
| "28": "I-iban", | |
| "29": "B-ip_address", | |
| "30": "I-ip_address", | |
| "31": "B-licence_number", | |
| "32": "I-licence_number", | |
| "33": "B-license_plate", | |
| "34": "I-license_plate", | |
| "35": "B-medical_record_number", | |
| "36": "I-medical_record_number", | |
| "37": "B-medication", | |
| "38": "I-medication", | |
| "39": "B-national_id", | |
| "40": "I-national_id", | |
| "41": "B-passport", | |
| "42": "I-passport", | |
| "43": "B-person_name", | |
| "44": "I-person_name", | |
| "45": "B-phone", | |
| "46": "I-phone", | |
| "47": "B-provider_name", | |
| "48": "I-provider_name", | |
| "49": "B-routing_number", | |
| "50": "I-routing_number", | |
| "51": "B-tax_id", | |
| "52": "I-tax_id", | |
| "53": "B-ticket_id", | |
| "54": "I-ticket_id", | |
| "55": "B-transaction_id", | |
| "56": "I-transaction_id", | |
| "57": "B-username", | |
| "58": "I-username", | |
| "59": "B-visit_date", | |
| "60": "I-visit_date" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-address": 1, | |
| "B-api_key": 3, | |
| "B-bank_account": 5, | |
| "B-card_expiry": 7, | |
| "B-credit_card": 9, | |
| "B-customer_id": 11, | |
| "B-cvv": 13, | |
| "B-date_of_birth": 15, | |
| "B-device_id": 17, | |
| "B-diagnosis": 19, | |
| "B-email": 21, | |
| "B-employee_id": 23, | |
| "B-health_plan_id": 25, | |
| "B-iban": 27, | |
| "B-ip_address": 29, | |
| "B-licence_number": 31, | |
| "B-license_plate": 33, | |
| "B-medical_record_number": 35, | |
| "B-medication": 37, | |
| "B-national_id": 39, | |
| "B-passport": 41, | |
| "B-person_name": 43, | |
| "B-phone": 45, | |
| "B-provider_name": 47, | |
| "B-routing_number": 49, | |
| "B-tax_id": 51, | |
| "B-ticket_id": 53, | |
| "B-transaction_id": 55, | |
| "B-username": 57, | |
| "B-visit_date": 59, | |
| "I-address": 2, | |
| "I-api_key": 4, | |
| "I-bank_account": 6, | |
| "I-card_expiry": 8, | |
| "I-credit_card": 10, | |
| "I-customer_id": 12, | |
| "I-cvv": 14, | |
| "I-date_of_birth": 16, | |
| "I-device_id": 18, | |
| "I-diagnosis": 20, | |
| "I-email": 22, | |
| "I-employee_id": 24, | |
| "I-health_plan_id": 26, | |
| "I-iban": 28, | |
| "I-ip_address": 30, | |
| "I-licence_number": 32, | |
| "I-license_plate": 34, | |
| "I-medical_record_number": 36, | |
| "I-medication": 38, | |
| "I-national_id": 40, | |
| "I-passport": 42, | |
| "I-person_name": 44, | |
| "I-phone": 46, | |
| "I-provider_name": 48, | |
| "I-routing_number": 50, | |
| "I-tax_id": 52, | |
| "I-ticket_id": 54, | |
| "I-transaction_id": 56, | |
| "I-username": 58, | |
| "I-visit_date": 60, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-07, | |
| "legacy": true, | |
| "max_position_embeddings": 512, | |
| "max_relative_positions": -1, | |
| "model_type": "deberta-v2", | |
| "norm_rel_ebd": "layer_norm", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "pooler_dropout": 0, | |
| "pooler_hidden_act": "gelu", | |
| "pooler_hidden_size": 768, | |
| "pos_att_type": [ | |
| "p2c", | |
| "c2p" | |
| ], | |
| "position_biased_input": false, | |
| "position_buckets": 256, | |
| "relative_attention": true, | |
| "share_att_key": true, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.2.0", | |
| "type_vocab_size": 0, | |
| "use_cache": false, | |
| "vocab_size": 128100 | |
| } | |