customize chunk_size in score function 09efa05
Liyan06 commited on
How to use lytang/MiniCheck-Flan-T5-Large with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="lytang/MiniCheck-Flan-T5-Large") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("lytang/MiniCheck-Flan-T5-Large")
model = AutoModelForSeq2SeqLM.from_pretrained("lytang/MiniCheck-Flan-T5-Large")