dialogue-generation

(โ˜… 118)

Generating responses with pretrained XLNet and GPT-2 in PyTorch.

  • .gitignore
  • .gitmodules
  • dialog-eval
  • LICENSE
  • README.md
  • requirements.txt
  • setup.py

# Installation Guide

1. Get the code
git clone https://github.com/bme-chatbots/dialogue-generation

Downloads the entire project code from GitHub to your computer.

cd dialogue-generation

Moves into the project folder you just downloaded.

2. Python

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install -r requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

python -m src.train --model gpt2-medium --data personachat --name my_test_run

Runs the Python script (or module).

python -m torch.distributed.launch --nproc_per_node=NUM_GPUS src/train.py --model gpt2

Runs the Python script (or module).

python -m src.train --config src/configs/xlnet-dailydialog.json

Runs the Python script (or module).

!python -m pip install --upgrade pip

Installs the Python libraries listed in requirements.txt (or similar).

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation