BAAI / EVA-CLIP-8B-448

huggingface.co
Total runs: 121
24-hour runs: -9
7-day runs: -29
30-day runs: -101
Model's Last Updated: February 07 2024
feature-extraction

Introduction of EVA-CLIP-8B-448

Model Details of EVA-CLIP-8B-448

Scaling up contrastive language-image pretraining (CLIP) is critical for empowering both vision and multimodal models. We present EVA-CLIP-18B, the largest and most powerful open-source CLIP model to date, with 18-billion parameters. With only 6-billion training samples seen, EVA-CLIP-18B achieves an exceptional 80.7% zero-shot top-1 accuracy averaged across 27 widely recognized image classification benchmarks, outperforming its forerunner EVA-CLIP (5-billion parameters) and other open-source CLIP models by a large margin. Remarkably, we observe a consistent performance improvement with the model size scaling of EVA-CLIP, despite maintaining a constant training dataset of 2-billion image-text pairs from LAION-2B and COYO-700M. This dataset is openly available and much smaller than the in-house datasets (e.g., DFN-5B, WebLI-10B) employed in other state-of-the-art CLIP models. EVA-CLIP-18B demonstrates the potential of EVA-style weak-to-strong visual model scaling. With our model weights made publicly available, we hope to facilitate future research in vision and multimodal foundation models.

Table of Contents

Summary of EVA-CLIP performance

summary_tab

Scaling behavior of EVA-CLIP with zero-shot classification performance averaged across 27 image classification benchmarks, compared with the current state-of-the-art and largest CLIP models (224px). The diameter of each circle demonstrates the forward GFLOPs × the number of training samples seen. The performance of EVA-CLIP consistently improves as scaling up.

Model Card
EVA-8B
model name total #params seen samples pytorch weight
EVA_8B_psz14 7.5B 6B PT ( 31.0GB )
EVA-CLIP-8B

Image encoder MIM teacher: EVA02_CLIP_E_psz14_plus_s9B .

model name image enc. init. ckpt text enc. init. ckpt total #params training data training batch size gpus for training img. cls. avg. acc. video cls. avg. acc. retrieval MR hf weight pytorch weight
EVA-CLIP-8B EVA_8B_psz14 EVA02_CLIP_E_psz14_plus_s9B 8.1B Merged-2B 178K 384 A100(40GB) 79.4 73.6 86.2 🤗 HF PT ( 32.9GB )
EVA-CLIP-8B-448 EVA-CLIP-8B EVA-CLIP-8B 8.1B Merged-2B 24K 384 A100(40GB) 80.0 73.7 86.4 🤗 HF PT ( 32.9GB )
EVA-CLIP-18B

Image encoder MIM teacher: EVA02_CLIP_E_psz14_plus_s9B .

model name image enc. init. ckpt text enc. init. ckpt total #params training data training batch size gpus for training img. cls. avg. acc. video cls. avg. acc. retrieval MR hf weight pytorch weight
EVA-CLIP-18B EVA_18B_psz14 EVA02_CLIP_E_psz14_plus_s9B 18.1B Merged-2B+ 108K 360 A100(40GB) 80.7 75.0 87.8 stay tuned stay tuned
  • To construct Merged-2B, we merged 1.6 billion samples from LAION-2B dataset with 0.4 billion samples from COYO-700M .
  • The Merged-2B+ consists of all samples from Merged-2B, along with 20 millions samples from LAION-COCO and 23 millions samples from Merged-video including VideoCC , InternVid and WebVid-10M . Merged-video was added at the end of the training process.

It's important to note that all results presented in the paper are evaluated using PyTorch weights. There may be differences in performance when using Hugging Face (hf) models.

Zero-Shot Evaluation

We use CLIP-Benchmark to evaluate the zero-shot performance of EVA-CLIP models. Following vissl , we evauate the zero-shot video classification using 1 middle frame. Further details regarding the evaluation datasets can be found in our paper, particularly in Table 11.

Usage
Huggingface Version

from PIL import Image
from transformers import AutoModel, AutoConfig
from transformers import CLIPImageProcessor, pipeline, CLIPTokenizer
import torch
import torchvision.transforms as T
from torchvision.transforms import InterpolationMode

image_path = "CLIP.png"
model_name_or_path = "BAAI/EVA-CLIP-8B" # or /path/to/local/EVA-CLIP-8B
image_size = 448

# use image processor with conig
processor = CLIPImageProcessor(size={"shortest_edge":image_size}, do_center_crop=True, crop_size=image_size)

## you can also directly use the image processor by torchvision
## squash
# processor = T.Compose(
#     [
#         T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),
#         T.Resize((image_size, image_size), interpolation=InterpolationMode.BICUBIC),
#         T.ToTensor(),
#         T.Normalize(mean=(0.48145466, 0.4578275, 0.40821073), std=(0.26862954, 0.26130258, 0.27577711))
#     ]
# )
## shortest
## processor = T.Compose(
#     [
#         T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),
#         T.Resize(image_size, interpolation=InterpolationMode.BICUBIC),
#         T.CenterCrop(image_size),
#         T.ToTensor(),
#         T.Normalize(mean=(0.48145466, 0.4578275, 0.40821073), std=(0.26862954, 0.26130258, 0.27577711))
#     ]
# )

model = AutoModel.from_pretrained(
    model_name_or_path, 
    torch_dtype=torch.float16,
    trust_remote_code=True).to('cuda').eval()

image = Image.open(image_path)
captions = ["a diagram", "a dog", "a cat"]
tokenizer = CLIPTokenizer.from_pretrained(model_name_or_path)
input_ids = tokenizer(captions,  return_tensors="pt", padding=True).input_ids.to('cuda')
input_pixels = processor(images=image, return_tensors="pt", padding=True).pixel_values.to('cuda')

with torch.no_grad(), torch.cuda.amp.autocast():
    image_features = model.encode_image(input_pixels)
    text_features = model.encode_text(input_ids)
    image_features /= image_features.norm(dim=-1, keepdim=True)
    text_features /= text_features.norm(dim=-1, keepdim=True)

label_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)
print(f"Label probs: {label_probs}")
Pytorch version

Go to GitHub

import torch
from eva_clip import create_model_and_transforms, get_tokenizer
from PIL import Image

model_name = "EVA-CLIP-8B-plus" 
pretrained = "eva_clip" # or "/path/to/EVA_CLIP_8B_psz14_plus_s0.6B.pt"

image_path = "CLIP.png"
caption = ["a diagram", "a dog", "a cat"]

device = "cuda" if torch.cuda.is_available() else "cpu"
model, _, processor = create_model_and_transforms(model_name, pretrained, force_custom_clip=True)
tokenizer = get_tokenizer(model_name)
model = model.to(device)

image = processor(Image.open(image_path)).unsqueeze(0).to(device)
text = tokenizer(["a diagram", "a dog", "a cat"]).to(device)

with torch.no_grad(), torch.cuda.amp.autocast():
    image_features = model.encode_image(image)
    text_features = model.encode_text(text)
    image_features /= image_features.norm(dim=-1, keepdim=True)
    text_features /= text_features.norm(dim=-1, keepdim=True)

    text_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)

print("Label probs:", text_probs)

You can leverage deepspeed.zero.Init() with deepspeed zero stage 3 if you have limited CPU memory. For loading a pretrained checkpoint in the context of using deepspeed.zero.Init(), it's advised to use the load_zero_partitions() function in eva_clip/factory.py .

BibTeX & Citation
@article{EVA-CLIP-18B,
  title={EVA-CLIP-18B: Scaling CLIP to 18 Billion Parameters}, 
  author={Quan Sun and Jinsheng Wang and Qiying Yu and Yufeng Cui and Fan Zhang and Xiaosong Zhang and Xinlong Wang},
  journal={arXiv preprint arXiv:2402.04252},
  year={2023}
}

Runs of BAAI EVA-CLIP-8B-448 on huggingface.co

121
Total runs
-9
24-hour runs
-18
3-day runs
-29
7-day runs
-101
30-day runs

More Information About EVA-CLIP-8B-448 huggingface.co Model

More EVA-CLIP-8B-448 license Visit here:

https://choosealicense.com/licenses/apache-2.0

EVA-CLIP-8B-448 huggingface.co

EVA-CLIP-8B-448 huggingface.co is an AI model on huggingface.co that provides EVA-CLIP-8B-448's model effect (), which can be used instantly with this BAAI EVA-CLIP-8B-448 model. huggingface.co supports a free trial of the EVA-CLIP-8B-448 model, and also provides paid use of the EVA-CLIP-8B-448. Support call EVA-CLIP-8B-448 model through api, including Node.js, Python, http.

EVA-CLIP-8B-448 huggingface.co Url

https://huggingface.co/BAAI/EVA-CLIP-8B-448

BAAI EVA-CLIP-8B-448 online free

EVA-CLIP-8B-448 huggingface.co is an online trial and call api platform, which integrates EVA-CLIP-8B-448's modeling effects, including api services, and provides a free online trial of EVA-CLIP-8B-448, you can try EVA-CLIP-8B-448 online for free by clicking the link below.

BAAI EVA-CLIP-8B-448 online free url in huggingface.co:

https://huggingface.co/BAAI/EVA-CLIP-8B-448

EVA-CLIP-8B-448 install

EVA-CLIP-8B-448 is an open source model from GitHub that offers a free installation service, and any user can find EVA-CLIP-8B-448 on GitHub to install. At the same time, huggingface.co provides the effect of EVA-CLIP-8B-448 install, users can directly use EVA-CLIP-8B-448 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

EVA-CLIP-8B-448 install url in huggingface.co:

https://huggingface.co/BAAI/EVA-CLIP-8B-448

Url of EVA-CLIP-8B-448

EVA-CLIP-8B-448 huggingface.co Url

Provider of EVA-CLIP-8B-448 huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 64.6M
Run Growth: -2.5M
Growth Rate: -3.89%
Updated:February 22 2024
huggingface.co

Total runs: 37.8M
Run Growth: 5.6M
Growth Rate: 14.76%
Updated:July 03 2024
huggingface.co

Total runs: 10.7M
Run Growth: 658.2K
Growth Rate: 6.16%
Updated:February 21 2024
huggingface.co

Total runs: 2.2M
Run Growth: 1.7M
Growth Rate: 77.73%
Updated:April 17 2024
huggingface.co

Total runs: 799.8K
Run Growth: -706.1K
Growth Rate: -88.29%
Updated:October 12 2023
huggingface.co

Total runs: 246.7K
Run Growth: -1.3M
Growth Rate: -507.77%
Updated:December 13 2023
huggingface.co

Total runs: 68.1K
Run Growth: 10.0K
Growth Rate: 14.70%
Updated:July 13 2026
huggingface.co

Total runs: 60.6K
Run Growth: -109.9K
Growth Rate: -181.17%
Updated:October 12 2023
huggingface.co

Total runs: 49.6K
Run Growth: -42.6K
Growth Rate: -85.91%
Updated:October 12 2023
huggingface.co

Total runs: 45.9K
Run Growth: 20.8K
Growth Rate: 45.23%
Updated:November 14 2023
huggingface.co

Total runs: 37.5K
Run Growth: -23.4K
Growth Rate: -62.50%
Updated:January 15 2025
huggingface.co

Total runs: 36.7K
Run Growth: 13.5K
Growth Rate: 36.92%
Updated:October 12 2023
huggingface.co

Total runs: 16.0K
Run Growth: 3.1K
Growth Rate: 19.41%
Updated:April 16 2025
huggingface.co

Total runs: 11.6K
Run Growth: -13.6K
Growth Rate: -116.76%
Updated:October 12 2023
huggingface.co

Total runs: 5.5K
Run Growth: 4.9K
Growth Rate: 89.20%
Updated:April 19 2024
huggingface.co

Total runs: 4.6K
Run Growth: -10.5K
Growth Rate: -231.70%
Updated:May 20 2025
huggingface.co

Total runs: 3.1K
Run Growth: 2.2K
Growth Rate: 69.80%
Updated:September 11 2026
huggingface.co

Total runs: 1.8K
Run Growth: 990
Growth Rate: 54.70%
Updated:December 31 2022
huggingface.co

Total runs: 1.7K
Run Growth: -13.4K
Growth Rate: -855.43%
Updated:January 15 2025
huggingface.co

Total runs: 1.4K
Run Growth: -859
Growth Rate: -59.61%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -851
Growth Rate: -61.31%
Updated:April 10 2026
huggingface.co

Total runs: 1.3K
Run Growth: 259
Growth Rate: 20.72%
Updated:September 11 2026
huggingface.co

Total runs: 1.2K
Run Growth: 685
Growth Rate: 56.43%
Updated:October 23 2024
huggingface.co

Total runs: 1.2K
Run Growth: -536
Growth Rate: -46.33%
Updated:November 28 2024
huggingface.co

Total runs: 1.1K
Run Growth: 205
Growth Rate: 16.47%
Updated:February 07 2024
huggingface.co

Total runs: 1.0K
Run Growth: 733
Growth Rate: 70.28%
Updated:October 24 2024
huggingface.co

Total runs: 876
Run Growth: 234
Growth Rate: 26.71%
Updated:May 23 2025
huggingface.co

Total runs: 579
Run Growth: -261
Growth Rate: -45.08%
Updated:July 13 2026
huggingface.co

Total runs: 470
Run Growth: 186
Growth Rate: 39.57%
Updated:April 10 2026
huggingface.co

Total runs: 467
Run Growth: -81
Growth Rate: -17.34%
Updated:July 13 2026
huggingface.co

Total runs: 460
Run Growth: -700
Growth Rate: -152.17%
Updated:April 18 2023
huggingface.co

Total runs: 429
Run Growth: -107
Growth Rate: -24.94%
Updated:October 27 2023
huggingface.co

Total runs: 398
Run Growth: -544
Growth Rate: -136.68%
Updated:August 11 2026
huggingface.co

Total runs: 389
Run Growth: -242
Growth Rate: -62.21%
Updated:December 25 2025
huggingface.co

Total runs: 388
Run Growth: -6
Growth Rate: -1.55%
Updated:August 11 2026
huggingface.co

Total runs: 313
Run Growth: 22
Growth Rate: 7.03%
Updated:July 13 2026
huggingface.co

Total runs: 306
Run Growth: 139
Growth Rate: 45.42%
Updated:July 13 2026
huggingface.co

Total runs: 302
Run Growth: -3.4K
Growth Rate: -1128.48%
Updated:April 10 2026
huggingface.co

Total runs: 290
Run Growth: -77
Growth Rate: -26.01%
Updated:March 07 2024
huggingface.co

Total runs: 286
Run Growth: 218
Growth Rate: 76.22%
Updated:August 18 2026
huggingface.co

Total runs: 285
Run Growth: -602
Growth Rate: -211.23%
Updated:December 25 2025
huggingface.co

Total runs: 279
Run Growth: 60
Growth Rate: 21.51%
Updated:July 13 2026
huggingface.co

Total runs: 279
Run Growth: -11
Growth Rate: -3.94%
Updated:April 10 2026
huggingface.co

Total runs: 254
Run Growth: 10
Growth Rate: 3.94%
Updated:February 11 2025
huggingface.co

Total runs: 213
Run Growth: -70
Growth Rate: -32.86%
Updated:June 06 2025
huggingface.co

Total runs: 213
Run Growth: 37
Growth Rate: 17.37%
Updated:July 13 2026
huggingface.co

Total runs: 210
Run Growth: -145
Growth Rate: -69.05%
Updated:July 17 2026
huggingface.co

Total runs: 209
Run Growth: -82
Growth Rate: -39.23%
Updated:October 23 2024
huggingface.co

Total runs: 202
Run Growth: -65
Growth Rate: -32.18%
Updated:July 13 2026
huggingface.co

Total runs: 185
Run Growth: -102
Growth Rate: -55.14%
Updated:July 13 2026
huggingface.co

Total runs: 181
Run Growth: 34
Growth Rate: 18.78%
Updated:April 02 2024
huggingface.co

Total runs: 179
Run Growth: -166
Growth Rate: -92.74%
Updated:May 13 2024
huggingface.co

Total runs: 176
Run Growth: -38
Growth Rate: -21.59%
Updated:April 10 2026
huggingface.co

Total runs: 167
Run Growth: 89
Growth Rate: 53.29%
Updated:August 23 2023
huggingface.co

Total runs: 166
Run Growth: -30
Growth Rate: -18.07%
Updated:May 13 2024
huggingface.co

Total runs: 165
Run Growth: -31
Growth Rate: -18.79%
Updated:May 13 2024
huggingface.co

Total runs: 165
Run Growth: -36
Growth Rate: -21.82%
Updated:May 31 2024
huggingface.co

Total runs: 160
Run Growth: -1.1K
Growth Rate: -701.88%
Updated:June 24 2024
huggingface.co

Total runs: 153
Run Growth: -44
Growth Rate: -28.76%
Updated:July 13 2026
huggingface.co

Total runs: 147
Run Growth: 147
Growth Rate: 100.00%
Updated:September 05 2026
huggingface.co

Total runs: 144
Run Growth: -94
Growth Rate: -65.28%
Updated:July 13 2026
huggingface.co

Total runs: 137
Run Growth: 34
Growth Rate: 25.19%
Updated:July 02 2024