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