Skip to main content

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

  1. PII detected and masked locally (never leaves your machine)
  2. Anonymized text sent to cleaning API
  3. Results restored with original values locally
  4. Output as standard JSONL for fine-tuning

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mask_llm-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mask_llm-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for mask_llm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8503e2c793dfae0987e40504a3e52df74d57829d5dc9b0e2b1e0ccf2dfb2b3bf
MD5 f52666b2ccd435cca22659b5fdb62a2a
BLAKE2b-256 a722c0db0302eb2306d13fa3b52efef7526d81eeca061b96eab2e211aaa856a1

See more details on using hashes here.

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

Hashes for mask_llm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32afdcb2a82030ac5c2e47a18f6e773285e743e7340fe992552d351a4e135de5
MD5 dbbdd11174ad51de1ea3a749b5402c25
BLAKE2b-256 2948f37a41468591e1a6eff3962ccceb570ebdec416e3c3d87208b45599a8f31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page