ncbi/pubmed
Updated • 1.17k • 164
How to use Chega/distill-scibert_scivocab_uncased with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="Chega/distill-scibert_scivocab_uncased") # Load model directly
from transformers import AutoTokenizer, AutoModelForPreTraining
tokenizer = AutoTokenizer.from_pretrained("Chega/distill-scibert_scivocab_uncased")
model = AutoModelForPreTraining.from_pretrained("Chega/distill-scibert_scivocab_uncased", device_map="auto")