Instructions to use philschmid/tiny-distilbert-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philschmid/tiny-distilbert-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="philschmid/tiny-distilbert-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("philschmid/tiny-distilbert-classification") model = AutoModelForSequenceClassification.from_pretrained("philschmid/tiny-distilbert-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download handler.py from philschmid/tiny-distilbert-classification: direct link, hf CLI and curl.
- Browser
- Download file 0 Bytes
-
https://huggingface.co/philschmid/tiny-distilbert-classification/resolve/1c862dd80dfd16a5c2f19f2105e2a1e06b86bd75/handler.py
- Command line
-
hf download hf://philschmid/tiny-distilbert-classification@1c862dd80dfd16a5c2f19f2105e2a1e06b86bd75/handler.py
-
curl -L -o handler.py https://huggingface.co/philschmid/tiny-distilbert-classification/resolve/1c862dd80dfd16a5c2f19f2105e2a1e06b86bd75/handler.py
0 Bytes