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.
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.
-
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.
-
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
-
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
-
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 ..
-
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
Before using TMT, you need to prepare your data. Hereβs how to do it:
-
Navigate to the data folder:
cd code/data # or code/data/hh
-
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
To train your model, follow these steps:
-
Navigate to the training directory:
cd code/training -
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
After training, you can evaluate your model as follows:
-
Go to the evaluation directory:
cd code/evaluation # or code/hh/evaluation
-
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.
- 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.
For more details on using TMT and its various capabilities, consult the documentation within the repository.
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.