Privacy-safe LLM data cleaning for fine-tuning datasets
Project description
mask-llm
Privacy-safe data cleaning for LLM fine-tuning datasets.
Sensitive data (names, emails, phone numbers) is masked locally before leaving your machine. Only anonymized text is sent to the cloud for cleaning.
Install
pip install mask-llm python -m spacy download en_core_web_sm
Usage
python -m mask_llm
--input your_data.jsonl
--output cleaned_data.jsonl
--key sk-your-api-key
Output fine-tuning format
python -m mask_llm
--input your_data.jsonl
--output cleaned_data.jsonl
--key sk-your-api-key
--finetune
How it works
- PII detected and masked locally (never leaves your machine)
- Anonymized text sent to cleaning API
- Results restored with original values locally
- Output as standard JSONL for fine-tuning
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mask_llm-0.1.0.tar.gz.
File metadata
- Download URL: mask_llm-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8503e2c793dfae0987e40504a3e52df74d57829d5dc9b0e2b1e0ccf2dfb2b3bf
|
|
| MD5 |
f52666b2ccd435cca22659b5fdb62a2a
|
|
| BLAKE2b-256 |
a722c0db0302eb2306d13fa3b52efef7526d81eeca061b96eab2e211aaa856a1
|
File details
Details for the file mask_llm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mask_llm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32afdcb2a82030ac5c2e47a18f6e773285e743e7340fe992552d351a4e135de5
|
|
| MD5 |
dbbdd11174ad51de1ea3a749b5402c25
|
|
| BLAKE2b-256 |
2948f37a41468591e1a6eff3962ccceb570ebdec416e3c3d87208b45599a8f31
|