Downloads · 30 days
243
3% of all-time downloads
thu-coai/CDial-GPT_LCCC-base
CDial-GPT_LCCC-base is a machine learning model from thu-coai. 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
243
3% of all-time downloads
All-time downloads
8.8K
Public
Parameters
98.6M
789 MB on disk
Likes
2
Public
Click a slice to open those files.
.bin395 MB · 50%
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-GPT_LCCC-base")
model = OpenAIGPTLMHeadModel.from_pretrained("thu-coai/CDial-GPT_LCCC-base")
For more details, please refer to our repo. on github.