Downloads · 30 days
10
3% of all-time downloads
jaesani/chat_gpt_and_t5_base_paraphraser
chat_gpt_and_t5_base_paraphraser is a machine learning model from jaesani. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of the T5 transformer model designed for paraphrasing questions using the ChatGPT architecture.
Downloads · 30 days
10
3% of all-time downloads
All-time downloads
390
Public
Parameters
223M
892 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors892 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of the T5 transformer model designed for paraphrasing questions using the ChatGPT architecture.
The chat_gpt_and_t5_base_paraphraser model is trained to generate paraphrased versions of input questions by utilizing a sequence-to-sequence approach. The model leverages the T5 architecture and has been fine-tuned on the Quora Question-Answer dataset to improve its ability to create diverse and meaningful paraphrases.
This model is intended for applications where paraphrasing of text is required, such as:
To use the model, install the Hugging Face transformers library and follow these steps:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
# Load the model and tokenizer
model_name = "jaesani/chat_gpt_and_t5_base_paraphraser"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
def paraphrase(question, max_length=128):
input_ids = tokenizer(f'paraphrase: {question}', return_tensors="pt", padding="longest", max_length=max_length, truncation=True).input_ids
outputs = model.generate(input_ids, max_length=max_length)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Example usage
paraphrased_text = paraphrase("What are the best places to see in New York?")
print(paraphrased_text)
The model was fine-tuned using the Quora Question-Answer Dataset, which consists of pairs of questions that may or may not be paraphrases of each other.
The model's performance can be evaluated based on the diversity and coherence of the paraphrases it generates. Specific metrics can include BLEU scores and human evaluations for semantic similarity.
The model may produce paraphrases that are not contextually relevant. It may struggle with highly technical or domain-specific language. Generated paraphrases might be similar for closely related input questions.
This model is licensed under MIT License.