Downloads · 30 days
176
12% of all-time downloads
ethzanalytics/ai-msgbot-gpt2-M
ai-msgbot-gpt2-M is a text generation model from ethzanalytics. Use it when you need the model to write or continue text. It is set up for transformers.
A GPT-2 M 355M parameter model for usage with ai-msgbot to create a chatbot-like tool.
Downloads · 30 days
176
12% of all-time downloads
All-time downloads
1.5K
Public
Parameters
380M
2.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin1.4 GB · 50%
How the weights are stored.
F32355M · 93%
From the Hugging Face model README
A GPT-2 M 355M parameter model for usage with ai-msgbot to create a chatbot-like tool.
This model was fine-tuned on a parsed version of the Wizard of Wikipedia dataset for 10,000 steps. 20/24 layers were frozen for the fine-tuning process.
The dataset was tokenized and fed to the model as a conversation between two speakers, whose names are below. this is relevant for writing prompts and filtering/extracting text from responses.
script_speaker_name = person alpha
script_responder_name = person beta
python ai_single_response.py --model GPT2_conversational_355M_WoW10k --prompt "hi! what are your hobbies?"
... generating...
finished!
'i like to read.'
The model training (and the ai-msgbot scripts) "force" GPT-2 to generate text in a chat-like structure. If you want non-garbage outputs, these need to be specified manually:
person alpha:
hi! what are your hobbies?
then model will respond, ideally with person beta: "response text"
person beta to the end of the prompt text. The model is forced to respond to the entered chat prompt instead of adding to the entered prompt and then responding to that (which may cut off the response text due to the Inference API limits).@inproceedings{dinan2019wizard,
author={Emily Dinan and Stephen Roller and Kurt Shuster and Angela Fan and Michael Auli and Jason Weston},
title={{W}izard of {W}ikipedia: Knowledge-powered Conversational Agents},
booktitle = {Proceedings of the International Conference on Learning Representations (ICLR)},
year={2019},
}
@inproceedings{li-etal-2017-dailydialog,
title = "{D}aily{D}ialog: A Manually Labelled Multi-turn Dialogue Dataset",
author = "Li, Yanran and
Su, Hui and
Shen, Xiaoyu and
Li, Wenjie and
Cao, Ziqiang and
Niu, Shuzi",
booktitle = "Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
month = nov,
year = "2017",
address = "Taipei, Taiwan",
publisher = "Asian Federation of Natural Language Processing",
url = "https://aclanthology.org/I17-1099",
pages = "986--995",
abstract = "We develop a high-quality multi-turn dialog dataset, \textbf{DailyDialog}, which is intriguing in several aspects. The language is human-written and less noisy. The dialogues in the dataset reflect our daily communication way and cover various topics about our daily life. We also manually label the developed dataset with communication intention and emotion information. Then, we evaluate existing approaches on DailyDialog dataset and hope it benefit the research field of dialog systems. The dataset is available on \url{http://yanran.li/dailydialog}",
}