Instructions to use appleboiy/DistilBERT-Sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use appleboiy/DistilBERT-Sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="appleboiy/DistilBERT-Sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("appleboiy/DistilBERT-Sentiment") model = AutoModelForSequenceClassification.from_pretrained("appleboiy/DistilBERT-Sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download DistilBERT_Sentiment.ipynb from appleboiy/DistilBERT-Sentiment: direct link, hf CLI and curl.
- Browser
- Download file 229 kB
-
https://huggingface.co/appleboiy/DistilBERT-Sentiment/resolve/main/DistilBERT_Sentiment.ipynb
- Command line
-
hf download hf://appleboiy/DistilBERT-Sentiment/DistilBERT_Sentiment.ipynb
-
curl -L -o DistilBERT_Sentiment.ipynb https://huggingface.co/appleboiy/DistilBERT-Sentiment/resolve/main/DistilBERT_Sentiment.ipynb
229 kB