Instructions to use AIRI-Institute/gena-lm-bert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIRI-Institute/gena-lm-bert-base with Transformers:
# Load model directly from transformers import AutoTokenizer, BertForPretraining tokenizer = AutoTokenizer.from_pretrained("AIRI-Institute/gena-lm-bert-base", trust_remote_code=True) model = BertForPretraining.from_pretrained("AIRI-Institute/gena-lm-bert-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
e158c2b
1
Parent(s): 1513b6e
fix: set model autoclass to BertForPreTraining
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
"BertForPretraining"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
-
"AutoModel": "modeling_bert.
|
| 7 |
},
|
| 8 |
"attention_probs_dropout_prob": 0.1,
|
| 9 |
"gradient_checkpointing": false,
|
|
|
|
| 3 |
"BertForPretraining"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
+
"AutoModel": "modeling_bert.BertForPreTraining"
|
| 7 |
},
|
| 8 |
"attention_probs_dropout_prob": 0.1,
|
| 9 |
"gradient_checkpointing": false,
|