Instructions to use Setpember/Jon_ppo_stage2_epi_point1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Setpember/Jon_ppo_stage2_epi_point1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2-large") model = PeftModel.from_pretrained(base_model, "Setpember/Jon_ppo_stage2_epi_point1") - Notebooks
- Google Colab
- Kaggle
Add model card
Browse files
README.md
CHANGED
|
@@ -1,43 +1,47 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
-
-
|
|
|
|
| 5 |
- ppo
|
| 6 |
-
-
|
| 7 |
-
- reinforcement-learning
|
| 8 |
---
|
| 9 |
|
| 10 |
-
#
|
| 11 |
|
| 12 |
-
|
| 13 |
-
guide the model outputs according to a value, function, or human feedback. The model can be used for text generation.
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
python -m pip install trl
|
| 21 |
-
```
|
| 22 |
-
|
| 23 |
-
You can then generate text as follows:
|
| 24 |
|
| 25 |
```python
|
| 26 |
-
from
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
```
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
-
from transformers import AutoTokenizer
|
| 36 |
-
from trl import AutoModelForCausalLMWithValueHead
|
| 37 |
|
| 38 |
-
|
| 39 |
-
model = AutoModelForCausalLMWithValueHead.from_pretrained("Setpember//tmp/tmpmrsm9535/Setpember/Jon_ppo_stage2_epi_point1")
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 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))
|