Downloads · 30 days
15
23% of all-time downloads
sohail2332/ai-chatbot2
ai-chatbot2 is a text generation model from sohail2332. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This repository contains a fine-tuned version of the GPT-2 model. The model has been adapted to provide a conversational AI experience, suitable for chatbots and similar applications. It is designed to generate human-…
Downloads · 30 days
15
23% of all-time downloads
All-time downloads
66
Public
Parameters
124M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This repository contains a fine-tuned version of the GPT-2 model. The model has been adapted to provide a conversational AI experience, suitable for chatbots and similar applications. It is designed to generate human-like text based on the input it receives.
The model is intended for use in creating chatbots and conversational agents. It can generate responses to user inputs in a coherent and contextually relevant manner.
The model was fine-tuned on a diverse dataset that includes:
The dataset used for fine-tuning has been curated to ensure a wide range of topics and conversational styles.
You can use this model via the Hugging Face Transformers library. Below is a sample code snippet to get you started:
from transformers import GPT2LMHeadModel, GPT2Tokenizer
# Load the fine-tuned model and tokenizer
model = GPT2LMHeadModel.from_pretrained("sohail2332/ai-chatbot2")
tokenizer = GPT2Tokenizer.from_pretrained("sohail2332/ai-chatbot2")
# Generate text
input_text = "Hello, how can I help you today?"
input_ids = tokenizer.encode(input_text, return_tensors='pt')
# Generate a response
output = model.generate(input_ids, max_length=50, num_return_sequences=1)
response = tokenizer.decode(output[0], skip_special_tokens=True)
print(response)