Instructions to use GleghornLab/cdsBERT-plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GleghornLab/cdsBERT-plus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="GleghornLab/cdsBERT-plus")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("GleghornLab/cdsBERT-plus") model = AutoModel.from_pretrained("GleghornLab/cdsBERT-plus") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"num_hidden_layers": 30,
|
| 18 |
"pad_token_id": 0,
|
| 19 |
"position_embedding_type": "absolute",
|
| 20 |
-
"torch_dtype": "
|
| 21 |
"transformers_version": "4.29.2",
|
| 22 |
"type_vocab_size": 2,
|
| 23 |
"use_cache": true,
|
|
|
|
| 17 |
"num_hidden_layers": 30,
|
| 18 |
"pad_token_id": 0,
|
| 19 |
"position_embedding_type": "absolute",
|
| 20 |
+
"torch_dtype": "bfloat16",
|
| 21 |
"transformers_version": "4.29.2",
|
| 22 |
"type_vocab_size": 2,
|
| 23 |
"use_cache": true,
|