Follow these steps to set up the project environment and install the required dependencies.
First, navigate to the src/minGPT/ directory and install the package in editable mode.
cd src/minGPT/
pip install -e .Return to the root directory of the project and install the required dependencies listed in requirements.txt.
cd ../..
pip install -r requirements.txtInstall PyTorch along with the desired CUDA version. Here is the command for CUDA 12.1:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121Use fact_dataset_test notebook in ./demos to generate synthetic dataset, train a model and calculate hallucination rates.
Experimental results can be found in ./src/experiment/experiments.json