present best model e2180ba
ZhuoY commited on
How to use MarcoYuTono/huawei-noahTinyBERT_General_6L_768_HotpotQA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="MarcoYuTono/huawei-noahTinyBERT_General_6L_768_HotpotQA") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("MarcoYuTono/huawei-noahTinyBERT_General_6L_768_HotpotQA")
model = AutoModelForQuestionAnswering.from_pretrained("MarcoYuTono/huawei-noahTinyBERT_General_6L_768_HotpotQA", device_map="auto")