Instructions to use magicslabnu/OutEffHop_bert_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use magicslabnu/OutEffHop_bert_base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="magicslabnu/OutEffHop_bert_base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("magicslabnu/OutEffHop_bert_base", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("magicslabnu/OutEffHop_bert_base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +4 -3
config.json
CHANGED
|
@@ -27,8 +27,9 @@
|
|
| 27 |
"vocab_size": 30522,
|
| 28 |
"attn_implementation":"OutEffHop",
|
| 29 |
"auto_map":
|
| 30 |
-
{"AutoConfig": "configuration_bert.
|
| 31 |
-
"AutoModel": "
|
| 32 |
-
"AutoModelForMaskedLM": "
|
|
|
|
| 33 |
},
|
| 34 |
}
|
|
|
|
| 27 |
"vocab_size": 30522,
|
| 28 |
"attn_implementation":"OutEffHop",
|
| 29 |
"auto_map":
|
| 30 |
+
{"AutoConfig": "configuration_bert.BertConfig",
|
| 31 |
+
"AutoModel": "bert_layers.BertModel",
|
| 32 |
+
"AutoModelForMaskedLM": "bert_layers.BertForMaskedLM",
|
| 33 |
+
"AutoModelForSequenceClassification": "bert_layers.BertForSequenceClassification"
|
| 34 |
},
|
| 35 |
}
|