Downloads · 30 days
206
9% of all-time downloads
souljoy/gpt2-small-chinese-cluecorpussmall
gpt2-small-chinese-cluecorpussmall is a text generation model from souljoy. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
The model is used to generate Chinese texts.
Downloads · 30 days
206
9% of all-time downloads
All-time downloads
2.3K
Public
Parameters
65.8M
489 MB on disk
Likes
6
Public
Click a slice to open those files.
.bin244 MB · 50%
How the weights are stored.
F3259.5M · 90%
From the Hugging Face model README
The model is used to generate Chinese texts.
You can use the model directly with a pipeline for text generation:
>>> from transformers import BertTokenizer, GPT2LMHeadModel, TextGenerationPipeline
>>> tokenizer = BertTokenizer.from_pretrained("uer/gpt2-chinese-cluecorpussmall")
>>> model = GPT2LMHeadModel.from_pretrained("uer/gpt2-chinese-cluecorpussmall")
>>> text_generator = TextGenerationPipeline(model, tokenizer)
>>> text_generator("这是很久之前的事情了", max_length=100, do_sample=True)
[{'generated_text': '这是很久之前的事情了 。 至 今 仍 留 在 我 身 上 , 我 记 忆 犹 新 。 在 接 受 记 者 采 访 时 , 杨 杰 表 白 了 , 当 初 有 没 有 见 过 我 , 我 不 认 为 他 们 是 不 合 适 的 人 。 虽 然 当 时 他 们 不 信 我 , 但 杨 杰 表 示 , 感 觉 那 个 时 候 感 觉 是 好 想 听 他 们 说 话 ,'}]
CLUECorpusSmall is used as training data.