Instructions to use climatebert/distilroberta-base-climate-f with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use climatebert/distilroberta-base-climate-f with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="climatebert/distilroberta-base-climate-f")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("climatebert/distilroberta-base-climate-f") model = AutoModelForMaskedLM.from_pretrained("climatebert/distilroberta-base-climate-f", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
max-position-embeddings-fix
#3
by mpjuhasz - opened
- config.json +1 -1
config.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
"initializer_range": 0.02,
|
| 15 |
"intermediate_size": 3072,
|
| 16 |
"layer_norm_eps": 1e-05,
|
| 17 |
-
"max_position_embeddings":
|
| 18 |
"model_type": "roberta",
|
| 19 |
"num_attention_heads": 12,
|
| 20 |
"num_hidden_layers": 6,
|
|
|
|
| 14 |
"initializer_range": 0.02,
|
| 15 |
"intermediate_size": 3072,
|
| 16 |
"layer_norm_eps": 1e-05,
|
| 17 |
+
"max_position_embeddings": 512,
|
| 18 |
"model_type": "roberta",
|
| 19 |
"num_attention_heads": 12,
|
| 20 |
"num_hidden_layers": 6,
|