Add model 7d176e7
Thomas De Decker commited on
How to use ml6team/keyphrase-extraction-distilbert-inspec with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="ml6team/keyphrase-extraction-distilbert-inspec") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("ml6team/keyphrase-extraction-distilbert-inspec")
model = AutoModelForTokenClassification.from_pretrained("ml6team/keyphrase-extraction-distilbert-inspec", device_map="auto")