Downloads · 30 days
47
100% of all-time downloads
CMB-ClimateModernBERT/F_CX
F_CX is a fill-mask model from CMB-ClimateModernBERT. Use it when you need the model to fill a missing word. It is set up for transformers.
Part of ClimateModernBERT, a family of climate-domain encoders obtained by continued pretraining of ModernBERT-Base on climate text.
Downloads · 30 days
47
100% of all-time downloads
All-time downloads
47
Public
Parameters
150M
599 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors599 MB · 100%
From the Hugging Face model README
Part of ClimateModernBERT, a family of climate-domain encoders obtained by continued pretraining of ModernBERT-Base on climate text.
| Repository | CMB-ClimateModernBERT/F_CX |
| Naming | corpora in A_S_F order, then the training stage: CX = Phase 1, CX_LRD = Phase 1 + Phase 2 |
| Corpora | Climate Web — {ℱ} in the paper's notation |
| Training stage | Phase 1 · Continued Pretraining (legacy suffix CX) |
| Base model | ModernBERT-Base, pre-LRD stable-phase checkpoint |
| Architecture | 150M parameters · 22 layers · hidden 768 · 12 heads · vocab 50,368 · 8,192-token context |
| Status | Paper |
| Paper notation | θ{ℱ} |
Confirmed as the web component of the Phase-1 merges.
Republished from sraj/CMB_FWEdu_V2_FastTxt_CX under a name that matches the paper's notation. The weights are identical; the original repository remains available.
Continued pretraining used Climate Web from a 6.42B-token climate corpus:
| Corpus | Tokens | Description | |
|---|---|---|---|
| 𝒜 | Academic | ~1.28B | Peer-reviewed journal articles across climate science, earth systems and energy economics; the ClimateNews archive 2000–2022; climate arXiv preprints; climate handbooks. |
| ℱ | Climate Web | ~5B | FineWeb-Edu filtered for climate relevance with a 166-term keyword filter followed by a FastText classifier. |
| 𝒮 | Synthetic | ~0.14B | LLM-generated climate text conditioned on in-domain seed excerpts, in three communication styles. |
Raw academic text is not redistributed: peer-reviewed articles are accessed under institutional publisher licenses, and news shards and handbooks were collected for non-commercial research use. The processing pipelines are released instead.
Two stages, following ModernBERT's own continued-pretraining recipe:
1 − √t decay schedule from
LR 3e-4 with final LR factor 1e-3.4× NVIDIA A100, MosaicML Composer. Final checkpoints are converted to HF Transformers format.
ModernBERT is native to transformers from 4.48 onward, so no trust_remote_code
is required.
from transformers import AutoTokenizer, AutoModel
model_id = "CMB-ClimateModernBERT/F_CX"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id)
inputs = tokenizer("Scope 1 and 2 emissions fell 12% against a 2019 baseline.", return_tensors="pt")
outputs = model(**inputs) # outputs.last_hidden_state -> (batch, seq, 768)
For a downstream task, load AutoModelForSequenceClassification and fine-tune. The
paper's recipe: LR 4e-5, effective batch 64, weight decay 0.01, up to 10 epochs with
early stopping on validation F1, BF16 with fused AdamW.
This checkpoint reaches 74.1 average F1 across the nine benchmarks, as reported in the manuscript.
Evaluated on nine climate NLP benchmarks: Climate Detection, Climate Specificity, Commitments & Actions, Climate Sentiment, Net Zero & Reduction, TCFD Recommendations, WFB Nature, WXImpactBench, and ClimRetrieve. Binary tasks and ClimRetrieve report positive-class F1; multi-class and multi-label tasks report macro-F1. Scores are the mean over three fine-tuning seeds under a single shared hyperparameter configuration.
Reference points from the paper: the ModernBERT-Base stable-phase baseline reaches 73.5 average F1, and ClimateBERT reaches 72.1 under the same protocol.
For general use, prefer CMB-ClimateModernBERT/Merge_Soup_LRD, the merged model that reaches 76.3 average F1.
Research on climate NLP: encoding climate text, and fine-tuning for classification, multi-label tagging, and retrieval over corporate disclosures, policy documents, scientific literature and climate news.
Climate-ModernBERT: Revisiting Corpus Composition for Domain-Adaptive Continued Pretraining. Preprint manuscript, currently under review — no venue, DOI or arXiv identifier yet, and no citation to give. The PDF is hosted in the project repository.
Not yet set on this repository. The upstream base model is ModernBERT-Base; check its terms, and those of the underlying corpora, before redistributing. No license is asserted here on the maintainers' behalf.