Instructions to use SmartPy/distilbert-base-uncased-finetuned-cnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SmartPy/distilbert-base-uncased-finetuned-cnn with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="SmartPy/distilbert-base-uncased-finetuned-cnn")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("SmartPy/distilbert-base-uncased-finetuned-cnn") model = AutoModelForMaskedLM.from_pretrained("SmartPy/distilbert-base-uncased-finetuned-cnn") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1 opened over 1 year ago
by
SFconvertbot