Skip to content

Source code of the paper "Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Models"

Notifications You must be signed in to change notification settings

liangzid/PromptExtractionEval

Repository files navigation

Extracting Prompts from Customized Large Language Models

This paper consists of the source code of paper: Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Models(arxiv).

Source code explanations

Experimental environments

Run

pip install -r re.txt

or install the following key packages manually:

datasets
numpy
pandas
peft
safetensors
scipy
tensorboard
tensorboardX
tiktoken
tokenizers
torch
tqdm
transformers
matplotlib
scikit-learn
thefuzz
einops
sentencepiece

Contact the authors

Feel free to open an issue, or send the email to [email protected] if there exists any problem.

Citation:

@misc{liang2024promptsleakedunravelingprompt,
      title={Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Models}, 
      author={Zi Liang and Haibo Hu and Qingqing Ye and Yaxin Xiao and Haoyang Li},
      year={2024},
      eprint={2408.02416},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2408.02416}, 
}

About

Source code of the paper "Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Models"

Topics

Resources

Stars

Watchers

Forks