Instructions to use togethercomputer/m2-bert-80M-2k-retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use togethercomputer/m2-bert-80M-2k-retrieval with Transformers:
# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("togethercomputer/m2-bert-80M-2k-retrieval", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
#7
by yangwang825 - opened
- config.json +2 -1
config.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
| 8 |
"bidirectional": true,
|
| 9 |
"auto_map": {
|
| 10 |
"AutoConfig": "configuration_bert.BertConfig",
|
| 11 |
-
|
|
|
|
| 12 |
"AutoModelForSequenceClassification": "bert_layers.BertForTextEncoding"
|
| 13 |
},
|
| 14 |
"classifier_dropout": null,
|
|
|
|
| 8 |
"bidirectional": true,
|
| 9 |
"auto_map": {
|
| 10 |
"AutoConfig": "configuration_bert.BertConfig",
|
| 11 |
+
"AutoModel": "bert_layers.BertModel",
|
| 12 |
+
"AutoModelForMaskedLM": "bert_layers.BertForMaskedLM",
|
| 13 |
"AutoModelForSequenceClassification": "bert_layers.BertForTextEncoding"
|
| 14 |
},
|
| 15 |
"classifier_dropout": null,
|