Instructions to use nlpunibo/classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlpunibo/classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, DistilBertClassifier tokenizer = AutoTokenizer.from_pretrained("nlpunibo/classifier") model = DistilBertClassifier.from_pretrained("nlpunibo/classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 291 Bytes
6e6f32f | 1 | {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "distilbert-base-uncased"} |