Instructions to use WilliamHH/Assignment1-DistilBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WilliamHH/Assignment1-DistilBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="WilliamHH/Assignment1-DistilBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("WilliamHH/Assignment1-DistilBERT") model = AutoModelForSequenceClassification.from_pretrained("WilliamHH/Assignment1-DistilBERT") - Notebooks
- Google Colab
- Kaggle
Upload TextClassificationPipeline
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -31,6 +31,6 @@
|
|
| 31 |
"seq_classif_dropout": 0.2,
|
| 32 |
"sinusoidal_pos_embds": false,
|
| 33 |
"tie_weights_": true,
|
| 34 |
-
"transformers_version": "4.
|
| 35 |
"vocab_size": 30522
|
| 36 |
}
|
|
|
|
| 31 |
"seq_classif_dropout": 0.2,
|
| 32 |
"sinusoidal_pos_embds": false,
|
| 33 |
"tie_weights_": true,
|
| 34 |
+
"transformers_version": "4.57.1",
|
| 35 |
"vocab_size": 30522
|
| 36 |
}
|