Instructions to use fspanda/Medical-Bio-BERT2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fspanda/Medical-Bio-BERT2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="fspanda/Medical-Bio-BERT2")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("fspanda/Medical-Bio-BERT2") model = AutoModelForMaskedLM.from_pretrained("fspanda/Medical-Bio-BERT2") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -0
config.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"hidden_size": 768,
|
| 3 |
"hidden_act": "gelu",
|
| 4 |
"initializer_range": 0.02,
|
|
|
|
| 1 |
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForMaskedLM"
|
| 4 |
+
],
|
| 5 |
"hidden_size": 768,
|
| 6 |
"hidden_act": "gelu",
|
| 7 |
"initializer_range": 0.02,
|