Text Classification
Transformers
PyTorch
ONNX
English
distilbert
text-classfication
int8
neural-compressor
Intel® Neural Compressor
PostTrainingStatic
Eval Results (legacy)
text-embeddings-inference
Instructions to use Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc") model = AutoModelForSequenceClassification.from_pretrained("Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc/resolve/ac67851c3daaa615e5e06ca0e5c6f064d09a91b2/tokenizer_config.json
- Command line
-
hf download hf://Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc@ac67851c3daaa615e5e06ca0e5c6f064d09a91b2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Intel/distilbert-base-uncased-finetuned-sst-2-english-int8-static-inc/resolve/ac67851c3daaa615e5e06ca0e5c6f064d09a91b2/tokenizer_config.json
405 Bytes
| {"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-finetuned-sst-2-english", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "DistilBertTokenizer"} |