Instructions to use wissamantoun/WebOrganizer-TopicClassifier-ModernBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wissamantoun/WebOrganizer-TopicClassifier-ModernBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="wissamantoun/WebOrganizer-TopicClassifier-ModernBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("wissamantoun/WebOrganizer-TopicClassifier-ModernBERT") model = AutoModelForSequenceClassification.from_pretrained("wissamantoun/WebOrganizer-TopicClassifier-ModernBERT") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
| 19 |
"gradient_checkpointing": false,
|
| 20 |
"hidden_activation": "gelu",
|
| 21 |
"hidden_size": 768,
|
|
|
|
| 22 |
"id2label": {
|
| 23 |
"0": "Adult",
|
| 24 |
"1": "Art & Design",
|
|
|
|
| 19 |
"gradient_checkpointing": false,
|
| 20 |
"hidden_activation": "gelu",
|
| 21 |
"hidden_size": 768,
|
| 22 |
+
"num_labels": 24,
|
| 23 |
"id2label": {
|
| 24 |
"0": "Adult",
|
| 25 |
"1": "Art & Design",
|