Text Classification
Transformers
English
bert
minbert
transformer
sentiment
tokenizer
classification
Instructions to use GlowCheese/minBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GlowCheese/minBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="GlowCheese/minBERT")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("GlowCheese/minBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 340 Bytes
a0b398e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from constants import *
from types import SimpleNamespace
from classifier import classifier_run
ARGUMENTS = SimpleNamespace(
dataset='cfimdb',
batch_size=BATCH_SIZE_CFIMDB,
train=IDS_CFIMDB_TRAIN,
dev=IDS_CFIMDB_DEV,
test=IDS_CFIMDB_TEST,
lr=1e-3,
fine_tune_mode='last-linear-layer'
)
classifier_run(ARGUMENTS) |