Text Classification
Transformers
Safetensors
modernbert
fill-mask
sentiment-analysis
indic
multilingual
code-mixed
romanized
text-embeddings-inference
Instructions to use CobuildX-AI/cbx-indic-sentiment-classifier-36M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-indic-sentiment-classifier-36M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-indic-sentiment-classifier-36M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-indic-sentiment-classifier-36M") model = AutoModelForMaskedLM.from_pretrained("CobuildX-AI/cbx-indic-sentiment-classifier-36M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download cbx_config.json from CobuildX-AI/cbx-indic-sentiment-classifier-36M: direct link, hf CLI and curl.
- Browser
- Download file 657 Bytes
-
https://huggingface.co/CobuildX-AI/cbx-indic-sentiment-classifier-36M/resolve/main/cbx_config.json
- Command line
-
hf download hf://CobuildX-AI/cbx-indic-sentiment-classifier-36M/cbx_config.json
-
curl -L -o cbx_config.json https://huggingface.co/CobuildX-AI/cbx-indic-sentiment-classifier-36M/resolve/main/cbx_config.json
657 Bytes
| { | |
| "name": "cbx-indic-sentiment-classifier-36M", | |
| "version": "v0.1", | |
| "labels": [ | |
| "positive", | |
| "negative", | |
| "neutral" | |
| ], | |
| "max_len": 256, | |
| "embedding_rank": null, | |
| "base_model": "jhu-clsp/mmBERT-small", | |
| "base_revision": "abc32620dd4f6ab06f5fbe905dc25f310618e09f", | |
| "parameters": 36456195, | |
| "scores": { | |
| "test_real_v2": { | |
| "n": 2575, | |
| "macro_f1": 0.7125 | |
| }, | |
| "test_real_llm": { | |
| "n": 1252, | |
| "macro_f1": 0.6497 | |
| }, | |
| "test_indicsentiment": { | |
| "n": 12946, | |
| "binary_acc": 0.8183, | |
| "macro_f1": 0.5724 | |
| } | |
| }, | |
| "cpu_latency_ms": { | |
| "threads": 8, | |
| "short_tokens": 17, | |
| "short_ms": 6.649615505011752, | |
| "long_ms": 26.845012020203285 | |
| } | |
| } | |