How to use facebook/bart-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="facebook/bart-large")
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large") model = AutoModel.from_pretrained("facebook/bart-large")
Somehow the hosted inference api does not work for me... Also what is the expected output for the Hosted Inference "Feature Extraction"?
· Sign up or log in to comment