Text Classification
Transformers
ONNX
Safetensors
modernbert
intent-classification
indic
multilingual
text-embeddings-inference
Instructions to use CobuildX-AI/cbx-indim-intent-classifier-32M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-indim-intent-classifier-32M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-indim-intent-classifier-32M")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CobuildX-AI/cbx-indim-intent-classifier-32M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download example.py from CobuildX-AI/cbx-indim-intent-classifier-32M: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/CobuildX-AI/cbx-indim-intent-classifier-32M/resolve/main/example.py
- Command line
-
hf download hf://CobuildX-AI/cbx-indim-intent-classifier-32M/example.py
-
curl -L -o example.py https://huggingface.co/CobuildX-AI/cbx-indim-intent-classifier-32M/resolve/main/example.py
1.21 kB
| # Copyright 2026 Cobuild Tech Private Limited | |
| # SPDX-License-Identifier: Apache-2.0 | |
| """Run from the model folder: python example.py (every text below is invented for this example)""" | |
| from cbx_intent import IntentClassifier | |
| clf = IntentClassifier(".") | |
| texts = [ | |
| "कल सुबह सात बजे का अलार्म लगा दो", # Hindi: set an alarm for seven tomorrow morning | |
| "আজ কলকাতার আবহাওয়া কেমন থাকবে", # Bengali: what will the weather be like in Kolkata today | |
| "அம்மாவுக்கு ஒரு மின்னஞ்சல் அனுப்பு", # Tamil: send an email to mum | |
| "ఈ పాట ఎవరు పాడారు", # Telugu: who sang this song | |
| "ಲೈಟ್ ಆಫ್ ಮಾಡು", # Kannada: turn the light off | |
| "ഇന്നത്തെ വാർത്തകൾ വായിക്കൂ", # Malayalam: read today's news | |
| "میرے کیلنڈر میں کل کی میٹنگ دکھاؤ", # Urdu: show tomorrow's meeting in my calendar | |
| ] | |
| for text, r in zip(texts, clf.classify(texts)): | |
| print(f"{r['label']:<9} {max(r['scores'].values()):.2f} {' '.join(text.split())}") | |