Instructions to use yujiepan/bert-base-uncased-sst2-NNCF-unstructured-sparse-80 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yujiepan/bert-base-uncased-sst2-NNCF-unstructured-sparse-80 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yujiepan/bert-base-uncased-sst2-NNCF-unstructured-sparse-80")# Load model directly from transformers import AutoTokenizer, NNCFNetwork tokenizer = AutoTokenizer.from_pretrained("yujiepan/bert-base-uncased-sst2-NNCF-unstructured-sparse-80") model = NNCFNetwork.from_pretrained("yujiepan/bert-base-uncased-sst2-NNCF-unstructured-sparse-80", device_map="auto") - Notebooks
- Google Colab
- Kaggle