Instructions to use chs20/fare4-clip with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use chs20/fare4-clip with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:chs20/fare4-clip') tokenizer = open_clip.get_tokenizer('hf-hub:chs20/fare4-clip') - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_cfg": { | |
| "quick_gelu": "TRUE", | |
| "embed_dim": 768, | |
| "vision_cfg": { | |
| "image_size": 224, | |
| "layers": 24, | |
| "width": 1024, | |
| "patch_size": 14 | |
| }, | |
| "text_cfg": { | |
| "context_length": 77, | |
| "vocab_size": 49408, | |
| "width": 768, | |
| "heads": 12, | |
| "layers": 12 | |
| } | |
| }, | |
| "preprocess_cfg": { | |
| "mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ] | |
| } | |
| } |