Dataset Cartography for human alignment
conda env create -f environment.yml
conda activate dc
pip install -r requirements.txt
Alignment-Data-Map/
βββ src
β βββ calculate
β βββ config # inference and data map config
β βββ correlations
β βββ figure
β βββ score
βββ README.md
βββ requirements.txt
βββ environment.yml
Choose model to use and process openAI API Inference
config : ./src/config/gpt-inference-config.yaml
python gpt-inference.py
You can plot the Alignment Data Map by following a 3-step process:
scorecalculationfigure
Each step corresponds to a specific task.
Set the objective to one of the following to execute the corresponding task:
score: compute similarity scorescalculation: compute mean and variance statisticsfigure: generate the final visualization
Specify the desired objective in the config file (default is 'score'), and then run the following command:
python main.pyConfig path: ./src/config/main-config.yaml