How to use morpheuslord/rewrite with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-small") model = PeftModel.from_pretrained(base_model, "morpheuslord/rewrite")
How to use morpheuslord/rewrite with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("morpheuslord/rewrite") model = AutoModelForSeq2SeqLM.from_pretrained("morpheuslord/rewrite")
The community tab is the place to discuss and collaborate with the HF community!