Instructions to use Adf/test-model-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Adf/test-model-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="Adf/test-model-v3") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("Adf/test-model-v3") model = AutoModelForZeroShotImageClassification.from_pretrained("Adf/test-model-v3") - Notebooks
- Google Colab
- Kaggle
File size: 1,199 Bytes
f28f7c1 | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | {
"architectures": [
"MetaClip2Model"
],
"dtype": "bfloat16",
"initializer_factor": 1.0,
"logit_scale_init_value": 2.6592,
"model_type": "metaclip_2",
"projection_dim": 1280,
"text_config": {
"attention_dropout": 0.0,
"bos_token_id": 49406,
"dtype": "bfloat16",
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_size": 1280,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 5120,
"layer_norm_eps": 1e-05,
"max_position_embeddings": 77,
"model_type": "metaclip_2_text_model",
"num_attention_heads": 20,
"num_hidden_layers": 32,
"pad_token_id": 1,
"projection_dim": 1280,
"vocab_size": 901629
},
"transformers_version": "5.9.0",
"vision_config": {
"attention_dropout": 0.0,
"dtype": "bfloat16",
"hidden_act": "gelu",
"hidden_size": 1664,
"image_size": 378,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 8192,
"layer_norm_eps": 1e-05,
"model_type": "metaclip_2_vision_model",
"num_attention_heads": 16,
"num_channels": 3,
"num_hidden_layers": 48,
"patch_size": 14,
"projection_dim": 1280
}
}
|