Instructions to use silk-road/luotuo-bert-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use silk-road/luotuo-bert-medium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="silk-road/luotuo-bert-medium", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("silk-road/luotuo-bert-medium", trust_remote_code=True) model = AutoModel.from_pretrained("silk-road/luotuo-bert-medium", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
add the model
Browse files- config.json +5 -2
config.json
CHANGED
|
@@ -1570,5 +1570,8 @@
|
|
| 1570 |
"transformers_version": "4.28.1",
|
| 1571 |
"type_vocab_size": 2,
|
| 1572 |
"use_cache": true,
|
| 1573 |
-
"vocab_size": 21128
|
| 1574 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1570 |
"transformers_version": "4.28.1",
|
| 1571 |
"type_vocab_size": 2,
|
| 1572 |
"use_cache": true,
|
| 1573 |
+
"vocab_size": 21128,
|
| 1574 |
+
"auto_map": {
|
| 1575 |
+
"AutoModel": "models.BertForCL"
|
| 1576 |
+
}
|
| 1577 |
+
}
|