Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# PII Guardian PHI3 Mini LORA
|
2 |
|
3 |
This repository contains a fine-tuned model for detecting Personally Identifiable Information (PII) using PHI3 Mini with LoRA applied to the query, key, and value layers. The model is optimized for accuracy and efficiency in identifying various PII entities.
|
@@ -57,4 +66,4 @@ inputs = tokenizer(model_prompt, return_tensors="pt").to(device)
|
|
57 |
# adjust max_new_tokens according to your need
|
58 |
outputs = pii_model.generate(**inputs, do_sample=True, max_new_tokens=120)
|
59 |
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
60 |
-
print(response) # {'firstname': ['Abner'], 'dob': ['23/03/1926'], 'email': ['[email protected]']}
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- text generation
|
6 |
+
- nlp
|
7 |
+
- llm
|
8 |
+
- pii
|
9 |
+
---
|
10 |
# PII Guardian PHI3 Mini LORA
|
11 |
|
12 |
This repository contains a fine-tuned model for detecting Personally Identifiable Information (PII) using PHI3 Mini with LoRA applied to the query, key, and value layers. The model is optimized for accuracy and efficiency in identifying various PII entities.
|
|
|
66 |
# adjust max_new_tokens according to your need
|
67 |
outputs = pii_model.generate(**inputs, do_sample=True, max_new_tokens=120)
|
68 |
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
69 |
+
print(response) # {'firstname': ['Abner'], 'dob': ['23/03/1926'], 'email': ['[email protected]']}
|