Setpember commited on
Commit
3ff6ee1
·
verified ·
1 Parent(s): 3aba40a

Add model card

Browse files
Files changed (1) hide show
  1. README.md +28 -44
README.md CHANGED
@@ -1,61 +1,45 @@
1
  ---
2
- license: mit
3
  base_model: openai-community/gpt2-large
 
 
 
 
 
4
  tags:
5
- - trl
 
6
  - sft
7
- - generated_from_trainer
8
- datasets:
9
- - generator
10
- library_name: peft
11
- model-index:
12
- - name: sft_gpt2_large
13
- results: []
14
  ---
15
 
16
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
- should probably proofread and complete it, then remove this comment. -->
18
-
19
  # sft_gpt2_large
20
 
21
- This model is a fine-tuned version of [openai-community/gpt2-large](https://huggingface.co/openai-community/gpt2-large) on the generator dataset.
22
-
23
- ## Model description
24
-
25
- More information needed
26
-
27
- ## Intended uses & limitations
28
-
29
- More information needed
30
-
31
- ## Training and evaluation data
32
 
33
- More information needed
 
 
 
 
 
 
34
 
35
- ## Training procedure
36
 
37
- ### Training hyperparameters
38
 
39
- The following hyperparameters were used during training:
40
- - learning_rate: 0.0002
41
- - train_batch_size: 4
42
- - eval_batch_size: 8
43
- - seed: 42
44
- - gradient_accumulation_steps: 4
45
- - total_train_batch_size: 16
46
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
- - lr_scheduler_type: cosine
48
- - lr_scheduler_warmup_ratio: 0.03
49
- - training_steps: 200
50
 
51
- ### Training results
 
 
52
 
 
53
 
 
54
 
55
- ### Framework versions
56
 
57
- - PEFT 0.8.2
58
- - Transformers 4.38.2
59
- - Pytorch 2.5.0+cu121
60
- - Datasets 2.16.1
61
- - Tokenizers 0.15.2
 
1
  ---
 
2
  base_model: openai-community/gpt2-large
3
+ library_name: peft
4
+ license: mit
5
+ datasets:
6
+ - jondurbin/truthy-dpo-v0.1
7
+ pipeline_tag: text-generation
8
  tags:
9
+ - differential-privacy
10
+ - privacy
11
  - sft
12
+ - props
 
 
 
 
 
 
13
  ---
14
 
 
 
 
15
  # sft_gpt2_large
16
 
17
+ Supervised fine-tuning (SFT). This is the starting point for the DPO runs.
 
 
 
 
 
 
 
 
 
 
18
 
19
+ | | |
20
+ | --- | --- |
21
+ | Base model | [openai-community/gpt2-large](https://huggingface.co/openai-community/gpt2-large) (GPT-2 Large, 774M) |
22
+ | Data | [truthy-dpo-v0.1](https://huggingface.co/datasets/jondurbin/truthy-dpo-v0.1) |
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 is a LoRA adapter.
30
 
31
+ ```python
32
+ from peft import AutoPeftModelForCausalLM
33
+ from transformers import AutoTokenizer
 
 
 
 
 
 
 
 
34
 
35
+ model = AutoPeftModelForCausalLM.from_pretrained("Setpember/sft_gpt2_large")
36
+ tokenizer = AutoTokenizer.from_pretrained("openai-community/gpt2-large")
37
+ ```
38
 
39
+ ## Intended use
40
 
41
+ Research on privacy-preserving alignment. These are small research models. They are not tuned for safety and should not be used in products.
42
 
43
+ ## Author
44
 
45
+ Fengwei Tian, University of Arizona ([GitHub](https://github.com/FTian-UArizona))