Skip to content
/ TMT Public

πŸ” Optimize multi-objective tasks with Tchebycheff scalarization for better alignment and efficient Pareto frontier exploration.

Notifications You must be signed in to change notification settings

Jiroo00/TMT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 TMT - Efficiently Align Multiple Objectives

Download TMT

πŸš€ Getting Started

Welcome to TMT, a tool designed to help you tackle complex optimization problems using Tchebycheff scalarization. This guide will walk you through downloading and running TMT efficiently, even if you have no technical background.

πŸ“₯ Download & Install

To get started, visit the Releases page to download the latest version of TMT. Download the appropriate file for your system and follow the installation instructions below.

πŸ› οΈ Installation Steps

  1. Install Anaconda: If you don’t have Anaconda installed, download it from the Anaconda website and follow the installation instructions specific to your operating system.

  2. Create a New Environment: Open your terminal (or Anaconda Prompt for Windows) and run the following commands:

    conda create -n tmt python=3.10
    conda activate tmt
  3. Clone Required Repositories: You will need to clone some repositories for TMT to function properly. Run these commands one by one:

    git clone https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip
    cd language-model-arithmetic/
    pip install -e .
    cd ..
    
    git clone https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip
    cd peft/
    pip install -e .
    cd ..
    
    conda install -c nvidia cuda-compiler
  4. Clone the Main TMT Repository:

    git clone https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip
    cd safe-rlhf
    pip install .
    cd ..
  5. Install Additional Requirements:

    pip install -r https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip

βš™οΈ Preparing Data

Before using TMT, you need to prepare your data. Here’s how to do it:

  1. Navigate to the data folder:

    cd code/data  # or code/data/hh
  2. Run the following scripts to organize your data:

    python https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip
    python https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip

πŸŽ“ Training the Model

To train your model, follow these steps:

  1. Navigate to the training directory:

    cd code/training
  2. Start the training process by executing:

    bash https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip

πŸ“Š Evaluating the Model

After training, you can evaluate your model as follows:

  1. Go to the evaluation directory:

    cd code/evaluation  # or code/hh/evaluation
  2. Run the evaluation scripts:

    bash https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip
    bash https://github.com/Jiroo00/TMT/raw/refs/heads/main/code/evaluation/results/hh/stch/PARM_0.6help_0.2harm_0.2humor/TMT_2.7.zip

These evaluations will help you understand how well your model aligns with some predefined multi-objective criteria.

🌟 Features

  • Tchebycheff Scalarization: Effectively captures non-convex Pareto frontiers in optimization challenges.
  • User-Friendly Interface: Designed for users without programming expertise.
  • Comprehensive Data Handling: Easily prepare data and evaluate models.

πŸ“„ Documentation

For more details on using TMT and its various capabilities, consult the documentation within the repository.

πŸ’¬ Support

If you encounter any issues or have questions, please feel free to raise them in the repository's issues section. Your feedback helps improve TMT for everyone.

Remember to visit the Releases page to download the latest version of TMT and stay updated on new features and improvements.

About

πŸ” Optimize multi-objective tasks with Tchebycheff scalarization for better alignment and efficient Pareto frontier exploration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •