---
title: aimv2-large-patch14-224-lit
canonical_url: "https://www.modelscope.cn/models/apple/aimv2-large-patch14-224-lit"
md_url: "https://www.modelscope.cn/models/apple/aimv2-large-patch14-224-lit.md"
repository: apple/aimv2-large-patch14-224-lit
last_updated: 2025-07-08
license: apple-amlr
model_type:
  - aimv2
architectures:
  - Aimv2Model
parameters: 873.4M
tensor_type:
  - F32
library_name:
  - transformer
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 259
stars: 0
tags:
  - vision
  - mlx
  - pytorch
---

# aimv2-large-patch14-224-lit

> aimv2-large-patch14-224-lit - apple 在 ModelScope 开源的模型。Introduction [AIMv2 Paper] [BibTeX]

apple/aimv2-large-patch14-224-lit 是 ModelScope 魔搭社区上的 873.4M 参数机器学习模型，采用 apple-amlr 许可。

- **Repository**: apple/aimv2-large-patch14-224-lit
- **License**: apple-amlr
- **Parameters**: 873.4M
- **Tags**: vision, mlx, pytorch
- **Downloads**: 259
- **Stars**: 0
- **Last updated**: 2025-07-08

Source: https://www.modelscope.cn/models/apple/aimv2-large-patch14-224-lit

---

# Introduction
[[`AIMv2 Paper`](https://arxiv.org/abs/2411.14402)] [[`BibTeX`](#citation)]

We introduce the AIMv2 family of vision models pre-trained with a multimodal autoregressive objective.
AIMv2 pre-training is simple and straightforward to train and to scale effectively. Some AIMv2 highlights include:

1. Outperforms OAI CLIP and SigLIP on the majority of multimodal understanding benchmarks.
2. Outperforms DINOv2 on open-vocabulary object detection and referring expression comprehension.
3. Exhibits strong recognition performance with AIMv2-3B achieving *89.5% on ImageNet using a frozen trunk*.

<img src="aimv2_overview_light.png" alt="AIMv2 Overview"/>

## Usage

### PyTorch
```python
import requests
from PIL import Image
from transformers import AutoProcessor, AutoModel

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)
text = ["Picture of a dog.", "Picture of a cat.", "Picture of a horse."]

processor = AutoProcessor.from_pretrained(
    "apple/aimv2-large-patch14-224-lit",
    revision="c2cd59a786c4c06f39d199c50d08cc2eab9f8605",
)
model = AutoModel.from_pretrained(
    "apple/aimv2-large-patch14-224-lit",
    revision="c2cd59a786c4c06f39d199c50d08cc2eab9f8605",
    trust_remote_code=True,
)

inputs = processor(
    images=image,
    text=text,
    add_special_tokens=True,
    truncation=True,
    padding=True,
    return_tensors="pt",
)
outputs = model(**inputs)
probs = outputs.logits_per_image.softmax(dim=-1)
```

### JAX
Under construction.

## Citation
If you find our work useful, please consider citing us as:
```bibtex
@misc{fini2024multimodalautoregressivepretraininglarge,
  author      = {Fini, Enrico and Shukor, Mustafa and Li, Xiujun and Dufter, Philipp and Klein, Michal and Haldimann, David and Aitharaju, Sai and da Costa, Victor Guilherme Turrisi and Béthune, Louis and Gan, Zhe and Toshev, Alexander T and Eichner, Marcin and Nabi, Moin and Yang, Yinfei and Susskind, Joshua M. and El-Nouby, Alaaeldin},
  url         = {https://arxiv.org/abs/2411.14402},
  eprint      = {2411.14402},
  eprintclass = {cs.CV},
  eprinttype  = {arXiv},
  title       = {Multimodal Autoregressive Pre-training of Large Vision Encoders},
  year        = {2024},
}
```
