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
Download open_clip_config.json from ashm/test-doc: direct link, hf CLI and curl.
- Browser
- Download file 697 Bytes
-
https://huggingface.co/ashm/test-doc/resolve/main/open_clip_config.json
- Command line
-
hf download hf://ashm/test-doc/open_clip_config.json
-
curl -L -o open_clip_config.json https://huggingface.co/ashm/test-doc/resolve/main/open_clip_config.json
697 Bytes
| { | |
| "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 | |
| ] | |
| } | |
| } | |