Instructions to use thiagochris/cbcc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use thiagochris/cbcc with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("thiagochris/cbcc") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("thiagochris/cbcc")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]cbcc
Multi-dimensional classifier for central-bank communications produced by
the CBCommunication training pipeline (multi_task_gist rung).
Provenance
| Field | Value |
|---|---|
| Trainer | multi_task_gist |
| Model kind | multi_task |
| Encoder body | Qwen/Qwen3-Embedding-4B |
| Loss | cached_gist |
| Taxonomy version | 2026-04-rev2 (sha256 e7c237aac8db66ca) |
| Training examples | 3584 |
| Validation examples | 1809 |
| Git commit | 9d90b862 (dirty) |
| Created | 2026-04-28T02:41:30.780109+00:00 |
Dimensions and labels
topic (21 classes)
Climate changeCrisis managementCurrency circulation and managementFinancial inclusionFinancial stabilityFiscal policyGovernanceMP - balance sheet size and asset purchase programsMP - creditMP - economic activityMP - exchange rateMP - inflationMP - interest rateMP - labor marketMP - open market operationsMP - reserve requirementsMetadataPayment systemStructural economic reformSupervision and regulationTechnological innovation and fintech
temporal_orientation (2 classes)
Backward-lookingForward-looking
audience (6 classes)
Business SectorFinancial SectorGeneral PublicGovernmentInternational StakeholdersMetadata
sentiment (6 classes)
Confidence-buildingDovishHawkishNeutral/BalancedNot applicableRisk-highlighting
Evaluation (held-out validation set)
| Dimension | Macro F1 |
|---|---|
topic |
0.8008 |
temporal_orientation |
0.8957 |
audience |
0.7590 |
sentiment |
0.7511 |
Intended use
Classify sentences from central-bank speeches, press releases, and financial-stability reports along the four CBC taxonomy dimensions (topic, temporal orientation, audience, sentiment). Produced for research and policy analysis at the IMF.
Limitations
- Trained on a small labeled set; tail classes (low support) carry less reliable per-class metrics.
- Multilingual coverage depends on the encoder; bge-m3 is competent in the official UN languages but performance varies.
- Sentiment / temporal labels reflect the taxonomy decision rules in the source workbook; downstream consumers should re-read those rules before interpreting per-class deltas.
How to load
# Recommended (canonical port โ Phase 1.1, 2026-04):
from cb_communication.processing.classification import load_named_classifier
# Auto-resolves the artefact via config/classifiers.toml. When the
# artefact is absent locally and ``hub_repo`` is configured, the loader
# pulls from this Hub repo automatically (private collaborators set
# their own ``HF_TOKEN``).
with load_named_classifier("cbcc") as clf:
results = clf.classify_chunk([
"Inflation expectations remain anchored at 2 percent.",
])
Alternative โ explicit path-based load:
from huggingface_hub import snapshot_download
from cb_communication.processing.classification import load_classifier
local = snapshot_download(repo_id="thiagochris/cbcc")
with load_classifier(local) as clf:
...
Both call paths satisfy the canonical MultiTaskClassifier Protocol
(see cb_communication/processing/classification/multi_task_classifier.py)
โ the runtime dispatches on model_kind from manifest.json.
Serving optimisations
This artefact has been optimised for inference (see serving_manifest.json). Production-relevant flags:
| Flag | Value |
|---|---|
| LoRA adapters merged | yes |
| Weight dtype | bf16 |
| Head format | sklearn_joblib |
| safetensors mmap | yes |
| Optimised at | 2026-05-02T20:53:23.465044+00:00 |
Model tree for thiagochris/cbcc
Evaluation results
- f1_macro on CBC Held-out Evalself-reported0.801
- f1_macro on CBC Held-out Evalself-reported0.896
- f1_macro on CBC Held-out Evalself-reported0.759
- f1_macro on CBC Held-out Evalself-reported0.751
# Gated model: Login with a HF token with gated access permission hf auth login