Instructions to use foundkim/topic_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use foundkim/topic_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="foundkim/topic_classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("foundkim/topic_classifier") model = AutoModelForSequenceClassification.from_pretrained("foundkim/topic_classifier") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -38,4 +38,4 @@
|
|
| 38 |
"type_vocab_size": 2,
|
| 39 |
"use_cache": true,
|
| 40 |
"vocab_size": 28996
|
| 41 |
-
}
|
|
|
|
| 38 |
"type_vocab_size": 2,
|
| 39 |
"use_cache": true,
|
| 40 |
"vocab_size": 28996
|
| 41 |
+
}
|