dialogue-generation
Generating responses with pretrained XLNet and GPT-2 in PyTorch.
File Explorer
Download Latest Version (.zip)- gpt2-dailydialog.json
- xlnet-dailydialog.json
- __init__.py
- collate.pyx
- data.py
- evaluate.py
- interact.py
- model.py
- train.py
- .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 RecommendedPrerequisites
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
Was this content helpful?
(0 ratings)
