Instructions to use Jaimy12/distilbert-comments with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jaimy12/distilbert-comments with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Jaimy12/distilbert-comments")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Jaimy12/distilbert-comments") model = AutoModelForSequenceClassification.from_pretrained("Jaimy12/distilbert-comments", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 390 Bytes
1861412 8ba2001 1861412 8ba2001 1861412 8ba2001 1861412 8ba2001 1861412 8ba2001 1861412 8ba2001 1861412 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {
"add_prefix_space": true,
"backend": "tokenizers",
"bos_token": "[CLS]",
"cls_token": "[CLS]",
"do_lower_case": true,
"eos_token": "[SEP]",
"is_local": false,
"keep_accents": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "<pad>",
"sep_token": "[SEP]",
"tokenizer_class": "AlbertTokenizer",
"trim_offsets": true,
"unk_token": "<unk>"
}
|