Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

apple
/
aimv2-large-patch14-224-lit

Zero-Shot Image Classification
Transformers
JAX
Safetensors
MLX
PyTorch
aimv2
feature-extraction
vision
custom_code
Model card Files Files and versions
xet
Community
6

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"],
    )
    # 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)
  • MLX

    How to use apple/aimv2-large-patch14-224-lit with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir aimv2-large-patch14-224-lit apple/aimv2-large-patch14-224-lit
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
aimv2-large-patch14-224-lit
Ctrl+K
Ctrl+K
  • 4 contributors
History: 8 commits
michalk8's picture
michalk8
Fix missing revision
b17c109 verified 10 months ago
  • .gitattributes
    1.58 kB
    Upload files over 1 year ago
  • LICENSE
    5.82 kB
    Add LICENSE about 1 year ago
  • README.md
    2.4 kB
    Fix missing revision 10 months ago
  • aimv2_overview_light.png
    336 kB
    xet
    Upload files over 1 year ago
  • config.json
    1.43 kB
    Add HF compatible checkpoints (#6) 10 months ago
  • configuration_aimv2.py
    6.89 kB
    PyTorch code (#3) over 1 year ago
  • flax_model.msgpack
    1.75 GB
    xet
    Upload files over 1 year ago
  • merges.txt
    525 kB
    PyTorch code (#3) over 1 year ago
  • mlx_model.safetensors
    1.75 GB
    xet
    Upload files over 1 year ago
  • model.safetensors
    1.75 GB
    xet
    Add HF compatible checkpoints (#6) 10 months ago
  • modeling_aimv2.py
    15.4 kB
    PyTorch code (#3) over 1 year ago
  • preprocessor_config.json
    674 Bytes
    Add HF compatible checkpoints (#6) 10 months ago
  • special_tokens_map.json
    585 Bytes
    Add HF compatible checkpoints (#6) 10 months ago
  • tokenizer.json
    3.64 MB
    Add HF compatible checkpoints (#6) 10 months ago
  • tokenizer_config.json
    739 Bytes
    Add HF compatible checkpoints (#6) 10 months ago
  • vocab.json
    862 kB
    Add HF compatible checkpoints (#6) 10 months ago