Downloads · 30 days
19
4% of all-time downloads
huolongguo10/CDial-GPT2-LCCC-Base-copy
CDial-GPT2-LCCC-Base-copy is a machine learning model from huolongguo10. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This project provides a large-scale Chinese GPT model pre-trained on the dataset LCCC.
Downloads · 30 days
19
4% of all-time downloads
All-time downloads
491
Public
Repo size
789 MB
Likes
0
Public
Click a slice to open those files.
.bin395 MB · 100%
From the Hugging Face model README
This project provides a large-scale Chinese GPT model pre-trained on the dataset LCCC.
We present a series of Chinese GPT model that are first pre-trained on a Chinese novel dataset and then post-trained on our LCCC dataset.
Similar to TransferTransfo, we concatenate all dialogue histories into one context sentence, and use this sentence to predict the response. The input of our model consists of word embedding, speaker embedding, and positional embedding of each word.
Paper: A Large-Scale Chinese Short-Text Conversation Dataset
from transformers import OpenAIGPTLMHeadModel, GPT2LMHeadModel, BertTokenizer
import torch
tokenizer = BertTokenizer.from_pretrained("thu-coai/CDial-GPT2_LCCC-base")
model = GPT2LMHeadModel.from_pretrained("thu-coai/CDial-GPT2_LCCC-base")
For more details, please refer to our repo. on github.