Readme
Browse files
README.md
CHANGED
|
@@ -9,6 +9,7 @@ This model is used for PII detection in the financial domain. It covers 29 class
|
|
| 9 |
|
| 10 |
|
| 11 |
## Model Details
|
|
|
|
| 12 |
|
| 13 |
### Model Description
|
| 14 |
|
|
@@ -18,84 +19,32 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 18 |
|
| 19 |
- **Developed by:** Betterdata.ai
|
| 20 |
- **Model type:** Deocder Transformer
|
| 21 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 22 |
- **License:** [apache-2.0]
|
| 23 |
-
- **Finetuned from model [optional]:**
|
| 24 |
-
|
| 25 |
-
### Model Sources [optional]
|
| 26 |
-
|
| 27 |
-
<!-- Provide the basic links for the model. -->
|
| 28 |
-
|
| 29 |
-
- **Repository:** [More Information Needed]
|
| 30 |
-
- **Paper [optional]:** [More Information Needed]
|
| 31 |
-
- **Demo [optional]:** [More Information Needed]
|
| 32 |
|
| 33 |
## Uses
|
| 34 |
|
| 35 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 40 |
-
|
| 41 |
-
[More Information Needed]
|
| 42 |
-
|
| 43 |
-
### Downstream Use [optional]
|
| 44 |
-
|
| 45 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 46 |
-
|
| 47 |
[More Information Needed]
|
| 48 |
|
| 49 |
### Out-of-Scope Use
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
[More Information Needed]
|
| 54 |
|
| 55 |
## Bias, Risks, and Limitations
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
[More Information Needed]
|
| 60 |
-
|
| 61 |
-
### Recommendations
|
| 62 |
-
|
| 63 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 64 |
-
|
| 65 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 66 |
|
| 67 |
## How to Get Started with the Model
|
| 68 |
|
| 69 |
Use the code below to get started with the model.
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
### Training Data
|
| 76 |
-
|
| 77 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 78 |
-
|
| 79 |
-
[More Information Needed]
|
| 80 |
-
|
| 81 |
-
### Training Procedure
|
| 82 |
-
|
| 83 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 84 |
-
|
| 85 |
-
#### Preprocessing [optional]
|
| 86 |
-
|
| 87 |
-
[More Information Needed]
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
#### Training Hyperparameters
|
| 91 |
-
|
| 92 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 93 |
-
|
| 94 |
-
#### Speeds, Sizes, Times [optional]
|
| 95 |
-
|
| 96 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 97 |
-
|
| 98 |
-
[More Information Needed]
|
| 99 |
|
| 100 |
## Evaluation
|
| 101 |
|
|
@@ -104,10 +53,7 @@ Use the code below to get started with the model.
|
|
| 104 |
### Testing Data, Factors & Metrics
|
| 105 |
|
| 106 |
#### Testing Data
|
| 107 |
-
|
| 108 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 109 |
-
|
| 110 |
-
[More Information Needed]
|
| 111 |
|
| 112 |
#### Factors
|
| 113 |
|
|
@@ -128,69 +74,11 @@ Use the code below to get started with the model.
|
|
| 128 |
#### Summary
|
| 129 |
|
| 130 |
|
| 131 |
-
|
| 132 |
-
## Model Examination [optional]
|
| 133 |
-
|
| 134 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 135 |
-
|
| 136 |
-
[More Information Needed]
|
| 137 |
-
|
| 138 |
-
## Environmental Impact
|
| 139 |
-
|
| 140 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 141 |
-
|
| 142 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 143 |
-
|
| 144 |
-
- **Hardware Type:** [More Information Needed]
|
| 145 |
-
- **Hours used:** [More Information Needed]
|
| 146 |
-
- **Cloud Provider:** [More Information Needed]
|
| 147 |
-
- **Compute Region:** [More Information Needed]
|
| 148 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 149 |
-
|
| 150 |
-
## Technical Specifications [optional]
|
| 151 |
-
|
| 152 |
-
### Model Architecture and Objective
|
| 153 |
-
|
| 154 |
-
[More Information Needed]
|
| 155 |
-
|
| 156 |
-
### Compute Infrastructure
|
| 157 |
-
|
| 158 |
-
[More Information Needed]
|
| 159 |
-
|
| 160 |
-
#### Hardware
|
| 161 |
-
|
| 162 |
-
[More Information Needed]
|
| 163 |
-
|
| 164 |
-
#### Software
|
| 165 |
-
|
| 166 |
-
[More Information Needed]
|
| 167 |
-
|
| 168 |
-
## Citation [optional]
|
| 169 |
-
|
| 170 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 171 |
-
|
| 172 |
-
**BibTeX:**
|
| 173 |
-
|
| 174 |
-
[More Information Needed]
|
| 175 |
-
|
| 176 |
-
**APA:**
|
| 177 |
-
|
| 178 |
-
[More Information Needed]
|
| 179 |
-
|
| 180 |
-
## Glossary [optional]
|
| 181 |
-
|
| 182 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 183 |
-
|
| 184 |
-
[More Information Needed]
|
| 185 |
-
|
| 186 |
-
## More Information [optional]
|
| 187 |
-
|
| 188 |
-
[More Information Needed]
|
| 189 |
-
|
| 190 |
## Model Card Authors [optional]
|
| 191 |
|
| 192 |
-
|
| 193 |
|
| 194 |
## Model Card Contact
|
| 195 |
|
| 196 |
-
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
## Model Details
|
| 12 |
+
The model is built on top of the decoder transformer model (Qwen2-0.5B). We used publicly available datasets with a permissible license as well as synthetic data to train the model.
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
|
|
|
| 19 |
|
| 20 |
- **Developed by:** Betterdata.ai
|
| 21 |
- **Model type:** Deocder Transformer
|
|
|
|
| 22 |
- **License:** [apache-2.0]
|
| 23 |
+
- **Finetuned from model [optional]:** Qwen2-0.5B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Uses
|
| 26 |
|
| 27 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 28 |
|
| 29 |
+
<img src="https://huggingface.co/betterdataai/PII_DETECTION_MODEL/blob/main/pii_image.png" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
[More Information Needed]
|
| 31 |
|
| 32 |
### Out-of-Scope Use
|
| 33 |
|
| 34 |
+
1. We currently are trying to replace the PII text with the respective class tags. In the future we plan to replace the data with synthetic class values.
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
## Bias, Risks, and Limitations
|
| 38 |
|
| 39 |
+
1. Model may not be 100% accurate always but we are constantly working on it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## How to Get Started with the Model
|
| 42 |
|
| 43 |
Use the code below to get started with the model.
|
| 44 |
|
| 45 |
+
```
|
| 46 |
+
from transformers import AutoTokenizer , AutoModelForCausalLM
|
| 47 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
## Evaluation
|
| 50 |
|
|
|
|
| 53 |
### Testing Data, Factors & Metrics
|
| 54 |
|
| 55 |
#### Testing Data
|
| 56 |
+
1. We developed an in house testset that we evaluate the model on. The test set was manually annotated to ensure high quality of the test set.
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
#### Factors
|
| 59 |
|
|
|
|
| 74 |
#### Summary
|
| 75 |
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
## Model Card Authors [optional]
|
| 78 |
|
| 79 |
+
Srinivasan
|
| 80 |
|
| 81 |
## Model Card Contact
|
| 82 |
|
| 83 |
+
srini@betterdata.ai
|
| 84 |
+
support@betterdata.ai
|