Downloads · 30 days
19
1% of all-time downloads
erikinfo/gpt2TEDlectures
gpt2TEDlectures is a text generation model from erikinfo. Use it when you need the model to write or continue text. It is set up for transformers.
GPT2 fine-tuned on the TED Talks Dataset (published under the Creative Commons BY-NC-ND license).
Downloads · 30 days
19
1% of all-time downloads
All-time downloads
1.8K
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.bin510 MB · 50%
From the Hugging Face model README
GPT2 fine-tuned on the TED Talks Dataset (published under the Creative Commons BY-NC-ND license).
Used to generate spoken-word lectures.
Input text:
<BOS> title <|SEP|> Some keywords <|SEP|>
Keyword Format: "Main Topic"."Subtopic1","Subtopic2","Subtopic3"
Code Example:
prompt = <BOS> + title + \\
<|SEP|> + keywords + <|SEP|>
generated = torch.tensor(tokenizer.encode(prompt)).unsqueeze(0)
model.eval();