Instructions to use linxi/tiny-bert-sst2-distilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use linxi/tiny-bert-sst2-distilled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="linxi/tiny-bert-sst2-distilled")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("linxi/tiny-bert-sst2-distilled") model = AutoModelForSequenceClassification.from_pretrained("linxi/tiny-bert-sst2-distilled", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
e345606 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:89ba671803de91341f41c79751cfa13d8ff4f6eeb6f59f7197a35c93dea44437
size 3311
|