Zero-Shot Image Classification
Transformers
PyTorch
Safetensors
vision-text-dual-encoder
image generation
visual qa
text-image embedding
image-text embedding
sartify
visual conversional ai
image semantic retrival
african raw resourced languages
Instructions to use sartifyllc/AViLaMa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sartifyllc/AViLaMa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="sartifyllc/AViLaMa") 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, AutoModel processor = AutoProcessor.from_pretrained("sartifyllc/AViLaMa") model = AutoModel.from_pretrained("sartifyllc/AViLaMa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- config.json +3 -5
- pytorch_model.bin +1 -1
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "sartifyllc/AViLaMa",
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
"initializer_factor": 1.0,
|
| 7 |
"logit_scale_init_value": 2.659260036932778,
|
|
@@ -10,9 +10,7 @@
|
|
| 10 |
"text_config": {
|
| 11 |
"_name_or_path": "",
|
| 12 |
"add_cross_attention": false,
|
| 13 |
-
"architectures":
|
| 14 |
-
"BertModel"
|
| 15 |
-
],
|
| 16 |
"attention_probs_dropout_prob": 0.1,
|
| 17 |
"bad_words_ids": null,
|
| 18 |
"bos_token_id": null,
|
|
@@ -133,7 +131,7 @@
|
|
| 133 |
"length_penalty": 1.0,
|
| 134 |
"max_length": 20,
|
| 135 |
"min_length": 0,
|
| 136 |
-
"model_type": "
|
| 137 |
"no_repeat_ngram_size": 0,
|
| 138 |
"num_attention_heads": 16,
|
| 139 |
"num_beam_groups": 1,
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "sartifyllc/AViLaMa",
|
| 3 |
"architectures": [
|
| 4 |
+
"AViLaMaModel"
|
| 5 |
],
|
| 6 |
"initializer_factor": 1.0,
|
| 7 |
"logit_scale_init_value": 2.659260036932778,
|
|
|
|
| 10 |
"text_config": {
|
| 11 |
"_name_or_path": "",
|
| 12 |
"add_cross_attention": false,
|
| 13 |
+
"architectures": null,
|
|
|
|
|
|
|
| 14 |
"attention_probs_dropout_prob": 0.1,
|
| 15 |
"bad_words_ids": null,
|
| 16 |
"bos_token_id": null,
|
|
|
|
| 131 |
"length_penalty": 1.0,
|
| 132 |
"max_length": 20,
|
| 133 |
"min_length": 0,
|
| 134 |
+
"model_type": "vit_large_patch14_clip_336",
|
| 135 |
"no_repeat_ngram_size": 0,
|
| 136 |
"num_attention_heads": 16,
|
| 137 |
"num_beam_groups": 1,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3100329078
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ac3fa78ff826669d1f6daa5950534be3281d0afeab19c8a35cd81eab7b46107
|
| 3 |
size 3100329078
|