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