Downloads · 30 days
16
13% of all-time downloads
ewdlop/shakespeare-transformer
shakespeare-transformer is a text generation model from ewdlop. Use it when you need the model to write or continue text. The card lists the license as mit.
這是一個基於 Transformer 架構的文本生成模型,使用莎士比亞文本進行訓練。
Downloads · 30 days
16
13% of all-time downloads
All-time downloads
124
Public
Repo size
151 MB
Likes
0
Public
Click a slice to open those files.
.bin50.2 MB · 100%
From the Hugging Face model README
這是一個基於 Transformer 架構的文本生成模型,使用莎士比亞文本進行訓練。
使用莎士比亞文本進行訓練,包含 0 個句子
import torch
from transformers import AutoModel
# 載入模型
model = AutoModel.from_pretrained("ewdlop/shakespeare-transformer")
# 進行推理(需要自定義推理代碼)
# 詳見倉庫中的使用示例