Text Classification
Transformers
Safetensors
English
modernbert
fill-mask
emotion
emotion-classification
multi-label
goemotions
text-embeddings-inference
Instructions to use CobuildX-AI/cbx-emotion-classifier-17M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-emotion-classifier-17M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-emotion-classifier-17M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-emotion-classifier-17M") model = AutoModelForMaskedLM.from_pretrained("CobuildX-AI/cbx-emotion-classifier-17M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download cbx_config.json from CobuildX-AI/cbx-emotion-classifier-17M: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/CobuildX-AI/cbx-emotion-classifier-17M/resolve/main/cbx_config.json
- Command line
-
hf download hf://CobuildX-AI/cbx-emotion-classifier-17M/cbx_config.json
-
curl -L -o cbx_config.json https://huggingface.co/CobuildX-AI/cbx-emotion-classifier-17M/resolve/main/cbx_config.json
663 Bytes
| { | |
| "name": "cbx-emotion-classifier-17M", | |
| "version": "v0.1", | |
| "labels": [ | |
| "anger", | |
| "disgust", | |
| "fear", | |
| "joy", | |
| "sadness", | |
| "surprise", | |
| "neutral" | |
| ], | |
| "max_len": 128, | |
| "family": "multi_label", | |
| "thresholds": [ | |
| 0.28, | |
| 0.24, | |
| 0.3, | |
| 0.32, | |
| 0.39, | |
| 0.27, | |
| 0.33 | |
| ], | |
| "embedding_rank": null, | |
| "base_model": "jhu-clsp/ettin-encoder-17m", | |
| "base_revision": "987607455c61e7a5bbc85f7758e0512ea6d0ae4c", | |
| "parameters": 16799239, | |
| "scores": { | |
| "test": { | |
| "n": 5427, | |
| "macro_f1": 0.6085, | |
| "macro_f1_at_0.3": 0.5986 | |
| } | |
| }, | |
| "cpu_latency_ms": { | |
| "threads": 8, | |
| "short_tokens": 13, | |
| "short_ms": 2.7418960235081613, | |
| "long_ms": 7.750072021735832 | |
| } | |
| } | |