Instructions to use textattack/distilbert-base-uncased-CoLA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/distilbert-base-uncased-CoLA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/distilbert-base-uncased-CoLA")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/distilbert-base-uncased-CoLA") model = AutoModelForSequenceClassification.from_pretrained("textattack/distilbert-base-uncased-CoLA", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
6dcc85c | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:3f4a00cd86671238eeec0123c37175c1fc44d1e67ab62bb8e4a86ce745d36644
size 1058
|