nlpaueb/finer-139
Viewer • Updated • 1.12M • 838 • 28
How to use HariLuru/finer_distillbert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="HariLuru/finer_distillbert") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("HariLuru/finer_distillbert")
model = AutoModelForTokenClassification.from_pretrained("HariLuru/finer_distillbert", device_map="auto")