humarin/chatgpt-paraphrases
Viewer • Updated • 419k • 352 • 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")