Downloads · 30 days
16
11% of all-time downloads
ClimateLouie/AdaptationBERT-distil
AdaptationBERT-distil is a text classification model from ClimateLouie. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
A faster, distilled variant of AdaptationBERT for binary classification of climate adaptation and resilience texts in the ESG/environmental domain.
Downloads · 30 days
16
11% of all-time downloads
All-time downloads
144
Public
Parameters
82.1M
328 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors328 MB · 99%
From the Hugging Face model README
A faster, distilled variant of AdaptationBERT for binary classification of climate adaptation and resilience texts in the ESG/environmental domain.
Built on top of ESGBERT/EnvironmentalBERT-base (a DistilRoBERTa backbone), AdaptationBERT-distil is fine-tuned on the ClimateLouie/AdaptationBERT-Climate dataset of 2,000 annotated samples to detect whether a given text is related to climate adaptation and resilience.
Key advantage: ~82M parameters and 6 transformer layers (vs. ~125M / 12 layers in the original), delivering ~2× faster inference with comparable classification performance.
AdaptationBERT-distil is a domain-specific language model designed for the automatic classification of environmental texts. It identifies whether a text passage discusses climate adaptation topics such as resilience planning, adaptive capacity, vulnerability reduction, or climate risk management.
This model is functionally equivalent to AdaptationBERT but uses a lighter backbone optimised for speed and lower resource consumption.
RobertaForSequenceClassification)| Parameter | AdaptationBERT-distil | AdaptationBERT (original) |
|---|---|---|
| Backbone | DistilRoBERTa | RoBERTa |
| Hidden size | 768 | 768 |
| Layers | 6 | 12 |
| Attention heads | 12 | 12 |
| Intermediate size | 3,072 | 3,072 |
| Vocabulary size | 50,265 | 50,265 |
| Max sequence length | 512 tokens | 512 tokens |
| Parameters | ~82M | ~125M |
| Model format | SafeTensors | SafeTensors |
| Label | Description |
|---|---|
0 | Non-adaptation-related |
1 | Adaptation-related |
AdaptationBERT-distil is designed for classifying English text passages as related or unrelated to climate adaptation. It is best suited for applications where inference speed and resource efficiency matter. Typical use cases include:
It is highly recommended to use a two-stage classification pipeline:
This two-stage approach improves precision by filtering out non-environmental texts before adaptation classification.
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="ClimateLouie/AdaptationBERT-distil",
tokenizer="ClimateLouie/AdaptationBERT-distil",
)
text = "The city implemented a flood resilience plan to protect coastal infrastructure from rising sea levels."
result = classifier(text)
print(result)
# [{'label': 'adaptation-related', 'score': 0.98}]
Or load the model and tokenizer directly:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("ClimateLouie/AdaptationBERT-distil")
model = AutoModelForSequenceClassification.from_pretrained("ClimateLouie/AdaptationBERT-distil")
text = "Communities are developing drought-resistant farming techniques to adapt to changing rainfall patterns."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.softmax(outputs.logits, dim=-1)
predicted_label = torch.argmax(predictions, dim=-1).item()
label_map = {0: "non-adaptation-related", 1: "adaptation-related"}
print(f"Prediction: {label_map[predicted_label]} (confidence: {predictions[0][predicted_label]:.4f})")
For detailed tutorials, see these guides by Tobias Schimanski on Medium:
The model was fine-tuned on the ClimateLouie/AdaptationBERT-Climate dataset — a curated collection of approximately 2,000 text samples annotated for climate adaptation relevance. The dataset contains examples from ESG reports, sustainability disclosures, and environmental policy texts, with binary labels indicating whether each sample discusses climate adaptation and resilience.
Training starts from ESGBERT/EnvironmentalBERT-base, which is itself a DistilRoBERTa model further pre-trained on environmental text corpora (annual reports, sustainability reports, and corporate/general news). This provides a domain-specific foundation that is both environmentally literate and inference-efficient.
Note: The original AdaptationBERT uses ESGBERT/EnvRoBERTa-base (full RoBERTa) as its backbone. The switch to EnvironmentalBERT-base (DistilRoBERTa) halves the number of transformer layers from 12 to 6, reducing parameters from ~125M to ~82M while retaining domain-specific pre-training.
DistilRoBERTa (a distilled variant of RoBERTa) with a sequence classification head. The model uses 6 transformer layers with 12 attention heads each, a hidden size of 768, and GELU activation. Classification is performed via a linear layer on top of the [CLS] token representation.
If you use this model in your research, please cite:
BibTeX:
@misc{adaptationbert_distil,
title={AdaptationBERT-distil: A Distilled Language Model for Climate Adaptation Text Classification},
author={Louie Woodall, inspired by Tobias Schimanski},
year={2025},
url={https://huggingface.co/ClimateLouie/AdaptationBERT-distil}
}
If referencing the original full-size model:
@misc{adaptationbert,
title={AdaptationBERT: A Fine-tuned Language Model for Climate Adaptation Text Classification},
author={Louie Woodall, inspired by Tobias Schimanski},
year={2024},
url={https://huggingface.co/ClimateLouie/AdaptationBERT}
}
This model is part of the ESGBERT family of models for ESG and environmental text analysis. Related models include: