First version of the distilbert_convolutional_classifier model and tokenizer. 7ebe541
Simone Gayed Said commited on
How to use nlpunibo/distilbert_convolutional_classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="nlpunibo/distilbert_convolutional_classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("nlpunibo/distilbert_convolutional_classifier")
model = AutoModelForQuestionAnswering.from_pretrained("nlpunibo/distilbert_convolutional_classifier", device_map="auto")