Instructions to use lytang/MiniCheck-Flan-T5-Large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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")# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Liyan06 commited on
Commit ·
f2ce59c
1
Parent(s): 19d69d5
input format update
Browse files
minicheck_web/minicheck.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
import sys
|
| 4 |
sys.path.append("..")
|
| 5 |
|
| 6 |
-
from
|
| 7 |
from typing import List, Dict
|
| 8 |
import numpy as np
|
| 9 |
|
|
|
|
| 3 |
import sys
|
| 4 |
sys.path.append("..")
|
| 5 |
|
| 6 |
+
from minicheck_web.inference import Inferencer
|
| 7 |
from typing import List, Dict
|
| 8 |
import numpy as np
|
| 9 |
|