模型:
我是用 huggingartists 制作的。
使用 the demo 创建基于您最喜欢的艺术家的机器人!
要了解模型是如何开发的,请查看 W&B report 。
该模型是基于Taylor Swift的歌词进行训练的。
数据集 here 可供使用。可以使用以下内容:
from datasets import load_dataset
dataset = load_dataset("huggingartists/taylor-swift")
使用 Explore the data ,该内容在整个流程的每一步进行追踪。
该模型基于预训练的 GPT-2 ,并在Taylor Swift的歌词上进行了微调。
超参数和指标记录在 W&B training run 中,以确保完全透明和可重现。
在训练结束时, the final model 被记录和版本化。
您可以直接使用此模型进行文本生成流程:
from transformers import pipeline
generator = pipeline('text-generation',
model='huggingartists/taylor-swift')
generator("I am", num_return_sequences=5)
或使用Transformers库:
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("huggingartists/taylor-swift")
model = AutoModelWithLMHead.from_pretrained("huggingartists/taylor-swift")
该模型存在 the same limitations and bias as GPT-2 的问题。
此外,用户推文中存在的数据会进一步影响模型生成的文本。
由Aleksey Korshuk构建
有关更多详细信息,请访问项目存储库。