Welcome to the SPRM project repository. In this repository, you will find the code and supplementary materials related to our research.
To set up the project locally, please follow the instructions below:
-
Clone the repository:
git clone https://github.com/WeepCat/SPRM.git cd SPRM
-
Create and activate a virtual environment:
conda create -n sprm python=3.10 conda activate sprm
-
Install the required dependencies:
pip install transformers trl datasets
After setting up the environment, you can run the experiments and analysis scripts as follows:
-
Data Construction:
python partial_data_construct/hh_data_process_partial.py
-
Reward Modeling:
python reward_modeling/hh_base_model_sft.py python reward_modeling/hh_partial_reward_model_with_weights.py
-
Baselines:
python generation/hh_collect_baseline_results.py
-
Evaluation:
python evaluation/hh_baseline_results_evaluate_by_rm.py python evaluation/hh_baseline_results_evaluate_by_gpt.py python evaluation/hh_baseline_results_evaluate_by_diversity.py python evaluation/hh_baseline_results_evaluate_by_coherence.py