Text Classification
Transformers
PyTorch
TensorBoard
bert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use gokuls/tiny-bert-sst2-distilled-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gokuls/tiny-bert-sst2-distilled-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gokuls/tiny-bert-sst2-distilled-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gokuls/tiny-bert-sst2-distilled-model") model = AutoModelForSequenceClassification.from_pretrained("gokuls/tiny-bert-sst2-distilled-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from gokuls/tiny-bert-sst2-distilled-model: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/gokuls/tiny-bert-sst2-distilled-model/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://gokuls/tiny-bert-sst2-distilled-model/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/gokuls/tiny-bert-sst2-distilled-model/resolve/main/tokenizer_config.json
565 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": "C:\\Users\\Gokul/.cache\\huggingface\\transformers\\c7c9b9c5d8bab3ba2ddaa08b138aa385f9790f30e8dce3bfe47e3f10bd97f4ad.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", "name_or_path": "textattack/bert-base-uncased-SST-2", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"} |