Setpember commited on
Commit
6bffd2d
·
verified ·
1 Parent(s): 0e894d1

Add model card

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: openai-community/gpt2
3
+ library_name: transformers
4
+ license: mit
5
+ datasets:
6
+ - Anthropic/hh-rlhf
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - differential-privacy
10
+ - privacy
11
+ - sft
12
+ - props
13
+ ---
14
+
15
+ # gpt2-hh
16
+
17
+ Supervised fine-tuning (SFT). This is the starting point for the DPO runs.
18
+
19
+ | | |
20
+ | --- | --- |
21
+ | Base model | [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) (GPT-2, 124M) |
22
+ | Data | [Anthropic HH-RLHF](https://huggingface.co/datasets/Anthropic/hh-rlhf) |
23
+ | Privacy | None (SFT step) |
24
+ | Paper | [PROPS: Progressively Private Self-alignment of Large Language Models](https://arxiv.org/abs/2508.06783) (TMLR 2025) |
25
+ | Code | [FTian-UArizona/PROPS](https://github.com/FTian-UArizona/PROPS) |
26
+
27
+ ## How to load
28
+
29
+ This checkpoint is a `policy.pt` file saved by the [DPO reference code](https://github.com/eric-mitchell/direct-preference-optimization).
30
+
31
+ ```python
32
+ import torch, transformers
33
+ from huggingface_hub import hf_hub_download
34
+
35
+ path = hf_hub_download(repo_id="Setpember/gpt2-hh", filename="policy.pt")
36
+ model = transformers.AutoModelForCausalLM.from_pretrained("openai-community/gpt2")
37
+ model.load_state_dict(torch.load(path, map_location="cpu")["state"])
38
+ tokenizer = transformers.AutoTokenizer.from_pretrained("openai-community/gpt2")
39
+ ```
40
+
41
+ ## Intended use
42
+
43
+ Research on privacy-preserving alignment. These are small research models. They are not tuned for safety and should not be used in products.
44
+
45
+ ## Author
46
+
47
+ Fengwei Tian, University of Arizona ([GitHub](https://github.com/FTian-UArizona))