Skip to content

01choco/Alignment-Data-Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dataset-Cartography

Dataset Cartography for human alignment

Requirements

conda env create -f environment.yml
conda activate dc
pip install -r requirements.txt

Codebase Structure

Alignment-Data-Map/
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ calculate
β”‚   β”œβ”€β”€ config # inference and data map config 
β”‚   β”œβ”€β”€ correlations
β”‚   β”œβ”€β”€ figure
β”‚   β”œβ”€β”€ score
β”œβ”€β”€ README.md                  
β”œβ”€β”€ requirements.txt            
└── environment.yml         

How to Run data-map

1. GPT Inference

Choose model to use and process openAI API Inference
config : ./src/config/gpt-inference-config.yaml

python gpt-inference.py

2. Plotting the Alignment Data Map

You can plot the Alignment Data Map by following a 3-step process:

  1. score
  2. calculation
  3. figure

Each step corresponds to a specific task.
Set the objective to one of the following to execute the corresponding task:

  • score: compute similarity scores
  • calculation: compute mean and variance statistics
  • figure: generate the final visualization

Specify the desired objective in the config file (default is 'score'), and then run the following command:

python main.py

Config path: ./src/config/main-config.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages