Zero-Shot Image Classification
Transformers
JAX
Safetensors
MLX
PyTorch
aimv2
feature-extraction
vision
custom_code
Instructions to use apple/aimv2-large-patch14-224-lit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apple/aimv2-large-patch14-224-lit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="apple/aimv2-large-patch14-224-lit", 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("apple/aimv2-large-patch14-224-lit", trust_remote_code=True) model = AutoModel.from_pretrained("apple/aimv2-large-patch14-224-lit", trust_remote_code=True, device_map="auto") - MLX
How to use apple/aimv2-large-patch14-224-lit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download apple/aimv2-large-patch14-224-lit --local-dir aimv2-large-patch14-224-lit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Commit History
-
Fix missing revision
Verified signatureb17c109 -
Add HF compatible checkpoints (#6)
Verified signature- Update model (b115745955868fa9e30caa4fd8e841ea938fc8a1) Co-authored-by: Yaswanth <yaswanthgali@users.noreply.huggingface.co>e623fe7
-
AMLR license (#5)
Verified signature- AMLR license (8552fe7a021feeac35a140dfdef83d9a3a0cfc6a)c2cd59a
-
Add LICENSE
Verified signature3330447
-
PyTorch code (#3)
Verified signature- Add LiT model (ae9d0c031c7a34b756da73f518406e716b55a4c0) - Fix importw (1943b4b2f19a5f67ff9a4591215c8366a80dc3bb) - Upload weights (5fd59c5def3a2f5c450bdf63f40708b34420f3a7) - Handle dictionary in confgw (fb574928240d6acf48aaee63ef759a26a2c1ce4a)b3a6e2f
-
Update README
8e1b368
-
Upload files
ba28fb8
-
initial commit
Verified signaturead6ac86