init commit f01fc79
Zhengbao Jiang commited on
How to use neulab/omnitab-large-16shot with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("table-question-answering", model="neulab/omnitab-large-16shot") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("neulab/omnitab-large-16shot")
model = AutoModelForSeq2SeqLM.from_pretrained("neulab/omnitab-large-16shot")