-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.txt
More file actions
33 lines (33 loc) · 1.58 KB
/
Copy pathstruct.txt
File metadata and controls
33 lines (33 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
rlaif_project/
├── data/
│ ├── sft.json # Instruction-response training data
│ ├── ai_feedback_pairs.json # AI-generated preference pairs
│ └── eval.json # Evaluation prompts
│
├── models/
│ ├── base/ # Pretrained model weights
│ ├── sft_weights.pt # Fine-tuned SFT model
│ ├── reward_weights.pt # Reward model
│ └── ppo_weights.pt # Final PPO-aligned model
│
├── scripts/
│ ├── sft_train.py # Supervised fine-tuning script
│ ├── generate_feedback.py # AI feedback generation script
│ ├── train_reward.py # Reward model training script
│ ├── train_ppo.py # PPO training script
│ └── evaluate.py # Evaluation script
│
├── src/ # Core code logic
│ ├── models.py # Model classes (LM, reward, value)
│ ├── data_utils.py # Dataset loading & preprocessing
│ ├── generation.py # Generation / sampling logic
│ ├── ppo.py # PPO objective & optimizer
│ └── loss.py # Loss computations (CE, preference)
│
├── configs/
│ ├── sft.yaml # SFT hyperparams
│ ├── reward.yaml # Reward model hyperparams
│ └── ppo.yaml # PPO hyperparams
│
├── requirements.txt
└── README.md