Token Classification
Transformers
Safetensors
English
Spanish
qwen3
pii
privacy
named-entity-recognition
text-generation-inference
Run this model with HF Jobs
Run valendra/privacy-filter-mini 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/valendra/privacy-filter-mini. 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/valendra/privacy-filter-mini 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 valendra/privacy-filter-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use valendra/privacy-filter-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="valendra/privacy-filter-mini")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("valendra/privacy-filter-mini") model = AutoModelForTokenClassification.from_pretrained("valendra/privacy-filter-mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 3,455 Bytes
62a73ef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | {
"architectures": [
"Qwen3ForTokenClassification"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 151643,
"eos_token_id": 151643,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 1024,
"id2label": {
"0": "O",
"1": "B-PERSON",
"2": "I-PERSON",
"3": "E-PERSON",
"4": "S-PERSON",
"5": "B-EMAIL",
"6": "I-EMAIL",
"7": "E-EMAIL",
"8": "S-EMAIL",
"9": "B-PHONE",
"10": "I-PHONE",
"11": "E-PHONE",
"12": "S-PHONE",
"13": "B-ADDRESS",
"14": "I-ADDRESS",
"15": "E-ADDRESS",
"16": "S-ADDRESS",
"17": "B-GOVERNMENT_ID",
"18": "I-GOVERNMENT_ID",
"19": "E-GOVERNMENT_ID",
"20": "S-GOVERNMENT_ID",
"21": "B-FINANCIAL_ID",
"22": "I-FINANCIAL_ID",
"23": "E-FINANCIAL_ID",
"24": "S-FINANCIAL_ID",
"25": "B-SECRET",
"26": "I-SECRET",
"27": "E-SECRET",
"28": "S-SECRET",
"29": "B-IP_ADDRESS",
"30": "I-IP_ADDRESS",
"31": "E-IP_ADDRESS",
"32": "S-IP_ADDRESS",
"33": "B-DATE_OF_BIRTH",
"34": "I-DATE_OF_BIRTH",
"35": "E-DATE_OF_BIRTH",
"36": "S-DATE_OF_BIRTH",
"37": "B-URL",
"38": "I-URL",
"39": "E-URL",
"40": "S-URL"
},
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"B-ADDRESS": 13,
"B-DATE_OF_BIRTH": 33,
"B-EMAIL": 5,
"B-FINANCIAL_ID": 21,
"B-GOVERNMENT_ID": 17,
"B-IP_ADDRESS": 29,
"B-PERSON": 1,
"B-PHONE": 9,
"B-SECRET": 25,
"B-URL": 37,
"E-ADDRESS": 15,
"E-DATE_OF_BIRTH": 35,
"E-EMAIL": 7,
"E-FINANCIAL_ID": 23,
"E-GOVERNMENT_ID": 19,
"E-IP_ADDRESS": 31,
"E-PERSON": 3,
"E-PHONE": 11,
"E-SECRET": 27,
"E-URL": 39,
"I-ADDRESS": 14,
"I-DATE_OF_BIRTH": 34,
"I-EMAIL": 6,
"I-FINANCIAL_ID": 22,
"I-GOVERNMENT_ID": 18,
"I-IP_ADDRESS": 30,
"I-PERSON": 2,
"I-PHONE": 10,
"I-SECRET": 26,
"I-URL": 38,
"O": 0,
"S-ADDRESS": 16,
"S-DATE_OF_BIRTH": 36,
"S-EMAIL": 8,
"S-FINANCIAL_ID": 24,
"S-GOVERNMENT_ID": 20,
"S-IP_ADDRESS": 32,
"S-PERSON": 4,
"S-PHONE": 12,
"S-SECRET": 28,
"S-URL": 40
},
"layer_types": [
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention",
"full_attention"
],
"max_position_embeddings": 32768,
"max_window_layers": 28,
"model_type": "qwen3",
"num_attention_heads": 16,
"num_hidden_layers": 28,
"num_key_value_heads": 8,
"privacy_attention_mode": "causal",
"privacy_initialization_weights_sha256": "1f989d08382dce6598f94a307ba6a8ec23fb1f0b103bf55408b1b1d4c4fddc64",
"privacy_minimum_stopping_epoch": 1.0,
"rms_norm_eps": 1e-06,
"rope_scaling": null,
"rope_theta": 1000000,
"sliding_window": null,
"tie_word_embeddings": true,
"torch_dtype": "float32",
"transformers_version": "4.55.4",
"use_cache": false,
"use_sliding_window": false,
"vocab_size": 151936
}
|