Instructions to use ashm/test-doc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use ashm/test-doc with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:ashm/test-doc') tokenizer = open_clip.get_tokenizer('hf-hub:ashm/test-doc') - Notebooks
- Google Colab
- Kaggle
File size: 697 Bytes
8ec5012 e69c4db 8ec5012 e69c4db | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | {
"model_cfg": {
"embed_dim": 512,
"vision_cfg": {
"timm_model_name": "vit_base_patch16_224",
"timm_model_pretrained": false,
"timm_pool": "",
"timm_proj": "linear",
"image_size": 224
},
"text_cfg": {
"hf_model_name": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract",
"hf_tokenizer_name": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract",
"proj": "mlp",
"pooler_type": "cls_last_hidden_state_pooler",
"context_length": 256
}
},
"preprocess_cfg": {
"mean": [
0.48145466,
0.4578275,
0.40821073
],
"std": [
0.26862954,
0.26130258,
0.27577711
]
}
}
|