History-Aware Hierarchical Transformer for Multi-session Open-domain Dialogue System
- Python 3.6
- PyTorch 1.10.0
python setup.py develop
As the ParlAI is archived, the pretrained model will not be downloaded automatically. This step is to manually download the pretrained model.
pip install gdown
cd data/
gdown --id 1qRcKgAQvAA-hPLjHDazxV8E3ngyYfKpo
tar -xzvf models.tar.gz
rm models.tar.gz
cd ..
You can also download the file, extract it, and put the extracted folder under the data folder.
To train the model, run:
cd debug_scripts/blender_haht/
python finetune_haht.py
To evaluate the model, run:
python evaluate_haht.py --skip_generation False --model_parallel False --batchsize 32
TensorBoard logs and models will be saved in HAHT/data/tmp/all_session/
folder.
Generate the responses and coresponding input conversation context will be saved in HAHT/debug_scripts/blender_haht/logs/
If you have difficulties to get things working in the above steps, please let us know.