Instructions to use AyoubChLin/DistilBERT_ZeroShot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AyoubChLin/DistilBERT_ZeroShot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="AyoubChLin/DistilBERT_ZeroShot")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AyoubChLin/DistilBERT_ZeroShot") model = AutoModelForSequenceClassification.from_pretrained("AyoubChLin/DistilBERT_ZeroShot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
1b11ce0
1
Parent(s): 85290a9
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,6 +36,7 @@ To use this model for zero-shot classification, you can follow the steps below:
|
|
| 36 |
```
|
| 37 |
|
| 38 |
4. Classify text using zero-shot classification:
|
|
|
|
| 39 |
```python
|
| 40 |
from transformers import pipeline
|
| 41 |
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
4. Classify text using zero-shot classification:
|
| 39 |
+
|
| 40 |
```python
|
| 41 |
from transformers import pipeline
|
| 42 |
|