llama-3_deidentification_01
A Korean de-identification model: it finds personal information (names, phone numbers, etc.) in Korean text and returns the text with that information masked.
Training
| Item | Value |
|---|---|
| Base model | allganize/Llama-3-Alpha-Ko-8B-Instruct |
| Data | 100 examples from irene93/deidentification-chat-ko |
| Method | LoRA SFT (r=8, alpha=16, all linear layers), merged into the base model, saved in fp16 |
| Hyperparameters | 10 epochs · learning rate 1e-4 · cosine schedule · bf16 |
| Tools | LLaMA-Factory · DeepSpeed ZeRO-3 · single GPU |
Prompt format
The model was trained with the following Korean instruction.
<instruction>
다음 입력을 받아 <deidentified_text>익명화 텍스트</deidentified_text>를 작성한다:
<text>: 주어진 문장 텍스트
</instruction>
<task>
<text>에서 개인정보를 마스킹한 <deidentified_text>를 작성하라.
</task>
<text>원문</text>
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "hgjun/llama-3_deidentification_01"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
Limitations
An experimental model trained on a small dataset (100 examples). Validate it separately before using it on real personal data. Quantitative evaluation results are not published yet.