Downloads · 30 days
31
16% of all-time downloads
Aaltjo/81M-gpt2-openwebtext-alpacha
81M-gpt2-openwebtext-alpacha is a text generation model from Aaltjo. Use it when you need the model to write or continue text. The card lists the license as mit.
This model is a fine-tuned version of GPT-2 (81M parameters) trained on the OpenWebText dataset and further fine-tuned on the Alpacha dataset.
Downloads · 30 days
31
16% of all-time downloads
All-time downloads
192
Public
Repo size
978 MB
Likes
0
Public
Click a slice to open those files.
.bin978 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of GPT-2 (81M parameters) trained on the OpenWebText dataset and further fine-tuned on the Alpacha dataset.
This model is based on the GPT-2 architecture and has been fine-tuned on a combination of two datasets:
The model was trained using a laptop with an RTX 3060 GPU for a total of 650,000 iterations (approximately 8 days of training).
You can use this model for text generation with the Hugging Face transformers library:
from transformers import GPT2LMHeadModel, GPT2Tokenizer
model = GPT2LMHeadModel.from_pretrained("Aaltjo/gpt2-81M-openwebtext-alpacha")
tokenizer = GPT2Tokenizer.from_pretrained("Aaltjo/gpt2-81M-openwebtext-alpacha")
input_text = "Once upon a time"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))