Setpember commited on
Commit
caba10e
·
verified ·
1 Parent(s): 2ef8c87

Add model card

Browse files
Files changed (1) hide show
  1. README.md +30 -26
README.md CHANGED
@@ -1,43 +1,47 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
3
  tags:
4
- - trl
 
5
  - ppo
6
- - transformers
7
- - reinforcement-learning
8
  ---
9
 
10
- # TRL Model
11
 
12
- This is a [TRL language model](https://github.com/huggingface/trl) that has been fine-tuned with reinforcement learning to
13
- guide the model outputs according to a value, function, or human feedback. The model can be used for text generation.
14
 
15
- ## Usage
 
 
 
 
 
 
16
 
17
- To use this model for inference, first install the TRL library:
18
 
19
- ```bash
20
- python -m pip install trl
21
- ```
22
-
23
- You can then generate text as follows:
24
 
25
  ```python
26
- from transformers import pipeline
 
27
 
28
- generator = pipeline("text-generation", model="Setpember//tmp/tmpmrsm9535/Setpember/Jon_ppo_stage2_epi_point1")
29
- outputs = generator("Hello, my llama is cute")
30
  ```
31
 
32
- If you want to use the model for training or to obtain the outputs from the value head, load the model as follows:
33
 
34
- ```python
35
- from transformers import AutoTokenizer
36
- from trl import AutoModelForCausalLMWithValueHead
37
 
38
- tokenizer = AutoTokenizer.from_pretrained("Setpember//tmp/tmpmrsm9535/Setpember/Jon_ppo_stage2_epi_point1")
39
- model = AutoModelForCausalLMWithValueHead.from_pretrained("Setpember//tmp/tmpmrsm9535/Setpember/Jon_ppo_stage2_epi_point1")
40
 
41
- inputs = tokenizer("Hello, my llama is cute", return_tensors="pt")
42
- outputs = model(**inputs, labels=inputs["input_ids"])
43
- ```
 
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
  - ppo
12
+ - props
 
13
  ---
14
 
15
+ # Jon_ppo_stage2_epi_point1
16
 
17
+ PPO policy from stage 2 of an exploratory PPO version of PROPS.
 
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 | ε = 0.1, label-level differential privacy (randomized response) |
24
+ | Paper | Not reported. Related to [PROPS](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/Jon_ppo_stage2_epi_point1")
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
+ These exploratory runs are not part of the results in the paper.
 
44
 
45
+ ## Author
46
+
47
+ Fengwei Tian, University of Arizona ([GitHub](https://github.com/FTian-UArizona))