Downloads · 30 days
6
7% of all-time downloads
pkailin2002/gpt2-tuned-synthetic
gpt2-tuned-synthetic is a text generation model from pkailin2002. Use it when you need the model to write or continue text. The card lists the license as mit.
Fine-tuned GPT-2 model on speech transcription data
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
92
Public
Repo size
996 MB
Likes
0
Public
Click a slice to open those files.
.bin498 MB · 100%
From the Hugging Face model README
Fine-tuned GPT-2 model on speech transcription data
from transformers import GPT2LMHeadModel, GPT2Tokenizer
model = GPT2LMHeadModel.from_pretrained("pkailin2002/gpt2-tuned-synthetic")
tokenizer = GPT2Tokenizer.from_pretrained("pkailin2002/gpt2-tuned-synthetic")
# Generate text
input_text = "Your prompt here"
inputs = tokenizer.encode(input_text, return_tensors="pt")
outputs = model.generate(inputs, max_length=100, num_return_sequences=1, temperature=0.7)
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_text)
This model was fine-tuned using the Hugging Face Transformers library.
This model is intended for research and educational purposes.
Please be aware that language models can generate biased or inappropriate content. Use responsibly.