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
Fix automodel
#3
by osanseviero - opened
- config.json +1 -1
config.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 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.BertForSequenceClassification",
|
| 12 |
"AutoModelForSequenceClassification": "bert_layers.BertForTextEncoding"
|
| 13 |
},
|
| 14 |
"classifier_dropout": null,
|