Text Generation
Transformers
TensorBoard
Safetensors
gpt_neox
differential-privacy
privacy
dpo
props
text-generation-inference
Instructions to use Setpember/Jon_pythia_DPO_epi_point5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Setpember/Jon_pythia_DPO_epi_point5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Setpember/Jon_pythia_DPO_epi_point5")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Setpember/Jon_pythia_DPO_epi_point5") model = AutoModelForCausalLM.from_pretrained("Setpember/Jon_pythia_DPO_epi_point5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Setpember/Jon_pythia_DPO_epi_point5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Setpember/Jon_pythia_DPO_epi_point5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Setpember/Jon_pythia_DPO_epi_point5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Setpember/Jon_pythia_DPO_epi_point5
- SGLang
How to use Setpember/Jon_pythia_DPO_epi_point5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Setpember/Jon_pythia_DPO_epi_point5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Setpember/Jon_pythia_DPO_epi_point5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Setpember/Jon_pythia_DPO_epi_point5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Setpember/Jon_pythia_DPO_epi_point5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Setpember/Jon_pythia_DPO_epi_point5 with Docker Model Runner:
docker model run hf.co/Setpember/Jon_pythia_DPO_epi_point5
Add model card
Browse files
README.md
CHANGED
|
@@ -1,57 +1,42 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
base_model: EleutherAI/pythia-1b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
-
-
|
|
|
|
| 6 |
- dpo
|
| 7 |
-
-
|
| 8 |
-
model-index:
|
| 9 |
-
- name: Jon_pythia_DPO_epi_point5
|
| 10 |
-
results: []
|
| 11 |
---
|
| 12 |
|
| 13 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
-
|
| 16 |
# Jon_pythia_DPO_epi_point5
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
## Model description
|
| 21 |
-
|
| 22 |
-
More information needed
|
| 23 |
-
|
| 24 |
-
## Intended uses & limitations
|
| 25 |
-
|
| 26 |
-
More information needed
|
| 27 |
-
|
| 28 |
-
## Training and evaluation data
|
| 29 |
-
|
| 30 |
-
More information needed
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
##
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
- train_batch_size: 4
|
| 39 |
-
- eval_batch_size: 8
|
| 40 |
-
- seed: 42
|
| 41 |
-
- gradient_accumulation_steps: 4
|
| 42 |
-
- total_train_batch_size: 16
|
| 43 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 44 |
-
- lr_scheduler_type: cosine
|
| 45 |
-
- lr_scheduler_warmup_steps: 10
|
| 46 |
-
- num_epochs: 2
|
| 47 |
|
| 48 |
-
|
|
|
|
|
|
|
| 49 |
|
|
|
|
| 50 |
|
|
|
|
| 51 |
|
| 52 |
-
##
|
| 53 |
|
| 54 |
-
|
| 55 |
-
- Pytorch 2.5.1+cu121
|
| 56 |
-
- Datasets 2.16.1
|
| 57 |
-
- Tokenizers 0.15.2
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model: EleutherAI/pythia-1b
|
| 3 |
+
library_name: transformers
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
datasets:
|
| 6 |
+
- jondurbin/truthy-dpo-v0.1
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
tags:
|
| 9 |
+
- differential-privacy
|
| 10 |
+
- privacy
|
| 11 |
- dpo
|
| 12 |
+
- props
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
# Jon_pythia_DPO_epi_point5
|
| 16 |
|
| 17 |
+
DPO on randomized-response (RR) labels. This is a baseline in the paper.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
| | |
|
| 20 |
+
| --- | --- |
|
| 21 |
+
| Base model | [EleutherAI/pythia-1b](https://huggingface.co/EleutherAI/pythia-1b) (Pythia-1B) |
|
| 22 |
+
| Data | [truthy-dpo-v0.1](https://huggingface.co/datasets/jondurbin/truthy-dpo-v0.1) |
|
| 23 |
+
| Privacy | ε = 0.5, label-level differential privacy (randomized response) |
|
| 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 |
+
```python
|
| 30 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
model = AutoModelForCausalLM.from_pretrained("Setpember/Jon_pythia_DPO_epi_point5")
|
| 33 |
+
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-1b")
|
| 34 |
+
```
|
| 35 |
|
| 36 |
+
## Intended use
|
| 37 |
|
| 38 |
+
Research on privacy-preserving alignment. These are small research models. They are not tuned for safety and should not be used in products.
|
| 39 |
|
| 40 |
+
## Author
|
| 41 |
|
| 42 |
+
Fengwei Tian, University of Arizona ([GitHub](https://github.com/FTian-UArizona))
|
|
|
|
|
|
|
|
|