Instructions to use peach-lab/privacy-comparator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use peach-lab/privacy-comparator with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "peach-lab/privacy-comparator") - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_role": "privacy_comparator", | |
| "task": "pairwise_privacy_ranking", | |
| "input": { | |
| "message_A": "text", | |
| "message_B": "text" | |
| }, | |
| "output": { | |
| "response": ["A", "B", "SAME"] | |
| } | |
| } |