Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • 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
5.24 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 7 commits
michalk8's picture
michalk8
Handle dictionary in confgw
fb57492 over 1 year ago
  • .gitattributes
    1.58 kB
    Upload files over 1 year ago
  • README.md
    2.29 kB
    Add LiT model over 1 year ago
  • aimv2_overview_light.png
    336 kB
    xet
    Upload files over 1 year ago
  • config.json
    4.48 kB
    Add LiT model over 1 year ago
  • configuration_aimv2.py
    6.89 kB
    Handle dictionary in confgw over 1 year ago
  • flax_model.msgpack
    1.75 GB
    xet
    Upload files over 1 year ago
  • merges.txt
    525 kB
    Add LiT model over 1 year ago
  • mlx_model.safetensors
    1.75 GB
    xet
    Upload files over 1 year ago
  • model.safetensors
    1.75 GB
    xet
    Upload weights over 1 year ago
  • modeling_aimv2.py
    15.4 kB
    Fix importw over 1 year ago
  • preprocessor_config.json
    504 Bytes
    Add LiT model over 1 year ago
  • special_tokens_map.json
    472 Bytes
    Add LiT model over 1 year ago
  • tokenizer_config.json
    689 Bytes
    Add LiT model over 1 year ago
  • vocab.json
    1.06 MB
    Add LiT model over 1 year ago