Instructions to use hf-internal-testing/tiny-open-clip-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use hf-internal-testing/tiny-open-clip-model with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:hf-internal-testing/tiny-open-clip-model') tokenizer = open_clip.get_tokenizer('hf-hub:hf-internal-testing/tiny-open-clip-model') - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_cfg": { | |
| "embed_dim": 8, | |
| "vision_cfg": { | |
| "image_size": 8, | |
| "layers": 2, | |
| "width": 128, | |
| "patch_size": 2 | |
| }, | |
| "text_cfg": { | |
| "context_length": 77, | |
| "vocab_size": 49408, | |
| "width": 8, | |
| "heads": 2, | |
| "layers": 2 | |
| } | |
| }, | |
| "preprocess_cfg": { | |
| "mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ] | |
| } | |
| } | |