Downloads · 30 days
0
Faizoo123/gpt2
gpt2 is a machine learning model from Faizoo123. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository contains a fine-tuned GPT-2 (Generative Pretrained Transformer 2) model that has been trained on specific data to perform a particular task or generate text in a specific style.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2024
Repo size
463 MB
Likes
0
Public
Click a slice to open those files.
.zip463 MB · 100%
From the Hugging Face model README
This repository contains a fine-tuned GPT-2 (Generative Pretrained Transformer 2) model that has been trained on specific data to perform a particular task or generate text in a specific style.
Model Details Model Name: GPT-2 Base Model: gpt2 Training Dataset: Faizoo123/deduplicated_adversarial_qa Usage Installation To use this fine-tuned GPT-2 model, install the required packages using pip:
bash Copy code pip install transformers Loading the Model python Copy code from transformers import GPT2LMHeadModel
model = GPT2LMHeadModel.from_pretrained("<model_directory>") Example Usage python Copy code
input_text = "Prompt for text generation" output_text = model.generate(input_text, max_length=100, num_return_sequences=1) print(output_text) Model Files config.json: Configuration file for the model. pytorch_model.bin: Fine-tuned model weights in PyTorch format. Credits Original Model: OpenAI GPT-2