humarin/chatgpt-paraphrases
Viewer โข Updated โข 419k โข 276 โข 61
How to use MichaelOrme/ChatGPT_Paraphraser_t5-Large with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("MichaelOrme/ChatGPT_Paraphraser_t5-Large")
model = AutoModelForSeq2SeqLM.from_pretrained("MichaelOrme/ChatGPT_Paraphraser_t5-Large", device_map="auto")