Text Classification
Transformers
PyTorch
Safetensors
English
bert
sst2
glue
torchdistill
text-embeddings-inference
Instructions to use yoshitomo-matsubara/bert-base-uncased-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yoshitomo-matsubara/bert-base-uncased-sst2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yoshitomo-matsubara/bert-base-uncased-sst2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("yoshitomo-matsubara/bert-base-uncased-sst2") model = AutoModelForSequenceClassification.from_pretrained("yoshitomo-matsubara/bert-base-uncased-sst2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
7d0cf61 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:7b62912abee9dd3577d677e442c5f45daabbbd9681ea6ece286ce6c2f3de5f27
size 438024457
|