Instructions to use textattack/distilbert-base-cased-SST-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/distilbert-base-cased-SST-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/distilbert-base-cased-SST-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/distilbert-base-cased-SST-2") model = AutoModelForSequenceClassification.from_pretrained("textattack/distilbert-base-cased-SST-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.45d02e9
-
Update training_args.bin
c2e8de4 -
Update config.json
e4f7d5b -
Update eval_results_sst-2.txt
3c794fa -
Update vocab.txt
6e2cac4 -
Update pytorch_model.bin
a3a4286 -
Update special_tokens_map.json
f490b0d -
Update tokenizer_config.json
c93bde1
-
Update config.json
9ecdf95 -
Update eval_results_sst-2.txt
501c0fb -
Update vocab.txt
e51056f -
Update special_tokens_map.json
94aedca -
Update tokenizer_config.json
263d024 -
Update config.json
2c8ef7c -
Update eval_results_sst-2.txt
1425e59 -
Update vocab.txt
1bd3076 -
Update special_tokens_map.json
edc853b -
Update tokenizer_config.json
1841ece -
initial commit
d3d9878