Train chatbot on your Telegram chat.
-
Export chat history in the Group info menu:
-
Create a new Google Drive (a model checkpoint that replacing old one goes to trash, and it is big enough to fill up your disk quick), create chatbot_data folder, and put result.json there:
-
Install something like a colab-alive extension
-
Open train_chatbot.ipynb
-
Go to Runtime > Run all
-
Mount your drive (press enter after pasting a code):
-
Check the train-test-valid split to be correct (i.e. nonzero, big enough)
-
After training have started do not close the browser tab until you go out of the quota (about 10 hours)
-
Open run_chatbot.ipynb
-
Run setup cells (installing parlai, mounting the drive)
-
Run this cell to show what model answers on the test data:
("labels" is what the model was training to answer, "model" is actual model output, more examples are present in a run_chatbot.ipynb cell output)
-
To chat with the model run this cell: