Text Classification
Transformers
Safetensors
English
modernbert
banking
finance
intent-classification
customer-support
banking77
ettin
text-embeddings-inference
Instructions to use CobuildX-AI/cbx-bfs-banking-intent-classifier-68M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CobuildX-AI/cbx-bfs-banking-intent-classifier-68M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CobuildX-AI/cbx-bfs-banking-intent-classifier-68M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CobuildX-AI/cbx-bfs-banking-intent-classifier-68M") model = AutoModelForSequenceClassification.from_pretrained("CobuildX-AI/cbx-bfs-banking-intent-classifier-68M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download example.py from CobuildX-AI/cbx-bfs-banking-intent-classifier-68M: direct link, hf CLI and curl.
- Browser
- Download file 883 Bytes
-
https://huggingface.co/CobuildX-AI/cbx-bfs-banking-intent-classifier-68M/resolve/main/example.py
- Command line
-
hf download hf://CobuildX-AI/cbx-bfs-banking-intent-classifier-68M/example.py
-
curl -L -o example.py https://huggingface.co/CobuildX-AI/cbx-bfs-banking-intent-classifier-68M/resolve/main/example.py
883 Bytes
| # Copyright 2026 Cobuild Tech Private Limited | |
| # SPDX-License-Identifier: Apache-2.0 | |
| """Run from the model folder: python example.py (all messages below are invented)""" | |
| from cbx_intent import IntentClassifier | |
| clf = IntentClassifier(".") | |
| messages = [ | |
| "My new card was posted ten days ago and it still hasn't shown up", | |
| "Can I add money to my account using Google Pay?", | |
| "I sent 200 euros to my sister on Monday and she says nothing has arrived", | |
| "The cash machine at the station kept my card, what now?", | |
| "Why was I charged a fee for taking cash out at an ATM?", | |
| "I typed the wrong PIN too many times and now it's locked", | |
| "There's a payment from a shop I've never been to on my statement", | |
| "how old do u have to be to open an account", | |
| ] | |
| for r in clf.classify(messages): | |
| print(f"{r['text'][:60]:60s} -> {r['intent']} ({r['confidence']:.2f})") | |