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-68M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-emotion-classifier-68M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-emotion-classifier-68M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-emotion-classifier-68M") model = AutoModelForMaskedLM.from_pretrained("CobuildX-AI/cbx-emotion-classifier-68M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download cbx_config.json from CobuildX-AI/cbx-emotion-classifier-68M: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/CobuildX-AI/cbx-emotion-classifier-68M/resolve/main/cbx_config.json
- Command line
-
hf download hf://CobuildX-AI/cbx-emotion-classifier-68M/cbx_config.json
-
curl -L -o cbx_config.json https://huggingface.co/CobuildX-AI/cbx-emotion-classifier-68M/resolve/main/cbx_config.json
664 Bytes
| { | |
| "name": "cbx-emotion-classifier-68M", | |
| "version": "v0.1", | |
| "labels": [ | |
| "anger", | |
| "disgust", | |
| "fear", | |
| "joy", | |
| "sadness", | |
| "surprise", | |
| "neutral" | |
| ], | |
| "max_len": 128, | |
| "family": "multi_label", | |
| "thresholds": [ | |
| 0.42, | |
| 0.41, | |
| 0.26, | |
| 0.43, | |
| 0.46, | |
| 0.26, | |
| 0.23 | |
| ], | |
| "embedding_rank": null, | |
| "base_model": "jhu-clsp/ettin-encoder-68m", | |
| "base_revision": "ac19ae4bc51093b31c475665ac872a936d056cc2", | |
| "parameters": 68148231, | |
| "scores": { | |
| "test": { | |
| "n": 5427, | |
| "macro_f1": 0.635, | |
| "macro_f1_at_0.3": 0.6366 | |
| } | |
| }, | |
| "cpu_latency_ms": { | |
| "threads": 8, | |
| "short_tokens": 13, | |
| "short_ms": 11.481842986540869, | |
| "long_ms": 31.154658499872312 | |
| } | |
| } | |