Instructions to use carlesoctav/sealion-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use carlesoctav/sealion-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="carlesoctav/sealion-bert", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("carlesoctav/sealion-bert", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("carlesoctav/sealion-bert", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +2 -1
config.json
CHANGED
|
@@ -7,7 +7,8 @@
|
|
| 7 |
"attention_probs_dropout_prob": 0.0,
|
| 8 |
"auto_map": {
|
| 9 |
"AutoConfig": "aisingapore/sealion-bert-base--configuration_bert.BertConfig",
|
| 10 |
-
"AutoModelForMaskedLM": "aisingapore/sealion-bert-base--bert_layers.BertForMaskedLM"
|
|
|
|
| 11 |
},
|
| 12 |
"classifier_dropout": null,
|
| 13 |
"gradient_checkpointing": false,
|
|
|
|
| 7 |
"attention_probs_dropout_prob": 0.0,
|
| 8 |
"auto_map": {
|
| 9 |
"AutoConfig": "aisingapore/sealion-bert-base--configuration_bert.BertConfig",
|
| 10 |
+
"AutoModelForMaskedLM": "aisingapore/sealion-bert-base--bert_layers.BertForMaskedLM",
|
| 11 |
+
"AutoModel": "aisingapore/sealion-bert-base--bert_layers.BertModel"
|
| 12 |
},
|
| 13 |
"classifier_dropout": null,
|
| 14 |
"gradient_checkpointing": false,
|