Instructions to use microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224') tokenizer = open_clip.get_tokenizer('hf-hub:microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224') - Notebooks
- Google Colab
- Kaggle
Update open_clip_config.json
#14
by aidenygu - opened
- open_clip_config.json +2 -2
open_clip_config.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
| 9 |
"image_size": 224
|
| 10 |
},
|
| 11 |
"text_cfg": {
|
| 12 |
-
"hf_model_name": "microsoft/BiomedNLP-
|
| 13 |
-
"hf_tokenizer_name": "microsoft/BiomedNLP-
|
| 14 |
"proj": "mlp",
|
| 15 |
"pooler_type": "cls_last_hidden_state_pooler",
|
| 16 |
"context_length": 256
|
|
|
|
| 9 |
"image_size": 224
|
| 10 |
},
|
| 11 |
"text_cfg": {
|
| 12 |
+
"hf_model_name": "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract",
|
| 13 |
+
"hf_tokenizer_name": "microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract",
|
| 14 |
"proj": "mlp",
|
| 15 |
"pooler_type": "cls_last_hidden_state_pooler",
|
| 16 |
"context_length": 256
|