Skip to content

Training chatbot models with reinforcement learning in ParlAI.

License

Notifications You must be signed in to change notification settings

Mrpatekful/dialogue-reinforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Training chatbot models with reinforcement learning

Techniques

Setup

For better reusability and modularization of our code we use ParlAI.

Scripts are available for initalizing the environment on linux and windows in the corresponding directories.

./linux/setup.sh

or

./windows/setup.ps1

Usage

To obtain an initial model with supervised learning, run the train.sh or train.ps1 scripts. After obtaining an initial policy for the reinforcement learning based fine-tuning, run reinforce.sh or reinforce.ps1 with the same parameters as the pre-training script.

./linux/train.sh --task dailydialog --model seq2seq
./linux/reinforce.sh --task dailydialog --model seq2seq

reinforce.sh will load the model pre-trained model from either the default checkpoints/<model_name> directory or the one provided in the optional --model_file.

About

Training chatbot models with reinforcement learning in ParlAI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published