Diffusion Module

January 17, 2024 ยท View on GitHub

This repo contains an implementation of denoising diffusion modules with the PyTorch Lightning framework with Hydra for organizing config files.

Once in the directory containing the contents of the repository, run

pip install -r requirements.txt

if you do not have all the necessary packages listed. Or, if you are using conda, you use the commands

conda env create --file environment.yml
conda activate diffllm

More on conda with GPUS:

Instructions

To train the model, run the following command in the terminal:

python tools/trainer.py

and to test the model,

python tools/predictor.py

To observe tensorboard logs if enabled, use the following command

tensorboard --logdir ./lightning_logs/{current version}

Some useful links

Docker

Run a docker container from a docker image built from the Dockerfile

docker build -t diffllm .

and then run a container using this command

docker run --name diffllm --gpus all -it --rm diffllm

Used these resources to help make dockerfile