Instructions to use brjoey/climatebert_econbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brjoey/climatebert_econbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="brjoey/climatebert_econbert")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("brjoey/climatebert_econbert") model = AutoModel.from_pretrained("brjoey/climatebert_econbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ model_name = "brjoey/climatebert_econbert"
|
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 12 |
model = AutoModel.from_pretrained(model_name)
|
| 13 |
|
| 14 |
-
#
|
| 15 |
from transformers import AutoModelForSequenceClassification
|
| 16 |
model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=3)
|
| 17 |
```
|
|
|
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 12 |
model = AutoModel.from_pretrained(model_name)
|
| 13 |
|
| 14 |
+
# or load the model directly with
|
| 15 |
from transformers import AutoModelForSequenceClassification
|
| 16 |
model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=3)
|
| 17 |
```
|