Zero-Shot Image Classification
Transformers
Safetensors
tipsv2
feature-extraction
vision
image-text
contrastive-learning
zero-shot
custom_code
Instructions to use invincible-jha/tipsv2-g14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use invincible-jha/tipsv2-g14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="invincible-jha/tipsv2-g14", trust_remote_code=True) pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("invincible-jha/tipsv2-g14", trust_remote_code=True) model = AutoModel.from_pretrained("invincible-jha/tipsv2-g14", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from invincible-jha/tipsv2-g14: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/invincible-jha/tipsv2-g14/resolve/main/config.json
- Command line
-
hf download hf://invincible-jha/tipsv2-g14/config.json
-
curl -L -o config.json https://huggingface.co/invincible-jha/tipsv2-g14/resolve/main/config.json
535 Bytes
| { | |
| "model_type": "tipsv2", | |
| "architectures": [ | |
| "TIPSv2Model" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_tips.TIPSv2Config", | |
| "AutoModel": "modeling_tips.TIPSv2Model" | |
| }, | |
| "patch_size": 14, | |
| "img_size": 448, | |
| "init_values": 1.0, | |
| "num_register_tokens": 1, | |
| "vocab_size": 32000, | |
| "max_len": 64, | |
| "vision_fn": "vit_giant2", | |
| "embed_dim": 1536, | |
| "text_hidden_size": 1536, | |
| "text_mlp_dim": 6144, | |
| "text_num_heads": 24, | |
| "text_num_layers": 12, | |
| "ffn_layer": "swiglu", | |
| "temperature": 0.003622700460255146 | |
| } |