BAAI / AltCLIP-m9

huggingface.co
Total runs: 1.8K
24-hour runs: 17
7-day runs: 78
30-day runs: 1.2K
Model's Last Updated: December 31 2022
text-to-image

Introduction of AltCLIP-m9

Model Details of AltCLIP-m9

AltCLIP-m9

It supports English(En), Chinese(Zh), Spanish(Es), French(Fr), Russian(Ru), Japanese(Ja), Korean(Ko), Arabic(Ar) and Italian(It) languages.

名称 Name 任务 Task 语言 Language(s) 模型 Model Github
AltCLIP-m9 Text-Image Multilingual CLIP FlagAI
简介 Brief Introduction

我们提出了一个简单高效的方法去训练更加优秀的九语CLIP模型。命名为AltCLIP-m9。AltCLIP训练数据来自 WuDao数据集 LIAON

AltCLIP-m9模型可以为本项目中的AltDiffusion-m9模型提供支持,关于AltDiffusion-m9模型的具体信息可查看 此教程

模型代码已经在 FlagAI 上开源,权重位于我们搭建的 modelhub 上。我们还提供了微调,推理,验证的脚本,欢迎试用。

We propose a simple and efficient method to train a better multilingua CLIP model. Named AltCLIP-m9. AltCLIP-m9 is trained with training data from WuDao dataset and Liaon .

The AltCLIP-m9 model can provide support for the AltDiffusion-m9 model in this project. Specific information on the AltDiffusion model can be found in this tutorial .

The model code has been open sourced on FlagAI and the weights are located on modelhub . We also provide scripts for fine-tuning, inference, and validation, so feel free to try them out.

引用

关于AltCLIP,我们已经推出了相关报告,有更多细节可以查阅,如对您的工作有帮助,欢迎引用。

If you find this work helpful, please consider to cite

@article{https://doi.org/10.48550/arxiv.2211.06679,
  doi = {10.48550/ARXIV.2211.06679},
  url = {https://arxiv.org/abs/2211.06679},
  author = {Chen, Zhongzhi and Liu, Guang and Zhang, Bo-Wen and Ye, Fulong and Yang, Qinghong and Wu, Ledell},
  keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences},
  title = {AltCLIP: Altering the Language Encoder in CLIP for Extended Language Capabilities},
  publisher = {arXiv},
  year = {2022},
  copyright = {arXiv.org perpetual, non-exclusive license}
}
训练 Training

训练共有两个阶段。 在平行知识蒸馏阶段,我们只是使用平行语料文本来进行蒸馏(平行语料相对于图文对更容易获取且数量更大)。在多语对比学习阶段,我们使用少量的中-英 图像-文本对(每种语言6百万)来训练我们的文本编码器以更好地适应图像编码器。

There are two phases of training. In the parallel knowledge distillation phase, we only use parallel corpus texts for distillation (parallel corpus is easier to obtain and larger in number compared to image text pairs). In the multilingual comparison learning phase, we use a small number of text-image pairs (about 6 million in each language) to train our text encoder to better fit the image encoder.

下游效果 Performance

可视化效果 Visualization effects

基于AltCLIP,我们还开发了AltDiffusion模型,可视化效果如下。

Based on AltCLIP, we have also developed the AltDiffusion model, visualized as follows.

模型推理 Inference

Please download the code from FlagAI AltCLIP

from PIL import Image
import requests

# transformers version >= 4.21.0
from modeling_altclip import AltCLIP
from processing_altclip import AltCLIPProcessor

# now our repo's in private, so we need `use_auth_token=True`
model = AltCLIP.from_pretrained("BAAI/AltCLIP-m9")
processor = AltCLIPProcessor.from_pretrained("BAAI/AltCLIP-m9")

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

inputs = processor(text=["a photo of a cat", "a photo of a dog"], images=image, return_tensors="pt", padding=True)

outputs = model(**inputs)
logits_per_image = outputs.logits_per_image # this is the image-text similarity score
probs = logits_per_image.softmax(dim=1) # we can take the softmax to get the label probabilities

Runs of BAAI AltCLIP-m9 on huggingface.co

1.8K
Total runs
17
24-hour runs
45
3-day runs
78
7-day runs
1.2K
30-day runs

More Information About AltCLIP-m9 huggingface.co Model

AltCLIP-m9 huggingface.co

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

AltCLIP-m9 huggingface.co Url

https://huggingface.co/BAAI/AltCLIP-m9

BAAI AltCLIP-m9 online free

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

BAAI AltCLIP-m9 online free url in huggingface.co:

https://huggingface.co/BAAI/AltCLIP-m9

AltCLIP-m9 install

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

AltCLIP-m9 install url in huggingface.co:

https://huggingface.co/BAAI/AltCLIP-m9

Url of AltCLIP-m9

AltCLIP-m9 huggingface.co Url

Provider of AltCLIP-m9 huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 64.0M
Run Growth: -6.6M
Growth Rate: -10.32%
Updated:February 22 2024
huggingface.co

Total runs: 37.6M
Run Growth: 3.7M
Growth Rate: 9.69%
Updated:July 03 2024
huggingface.co

Total runs: 12.6M
Run Growth: 622.5K
Growth Rate: 4.86%
Updated:February 21 2024
huggingface.co

Total runs: 10.5M
Run Growth: -274.5K
Growth Rate: -2.59%
Updated:February 21 2024
huggingface.co

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

Total runs: 792.7K
Run Growth: -726.2K
Growth Rate: -91.32%
Updated:October 12 2023
huggingface.co

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

Total runs: 57.4K
Run Growth: -116.7K
Growth Rate: -197.13%
Updated:October 12 2023
huggingface.co

Total runs: 53.0K
Run Growth: -43.1K
Growth Rate: -83.89%
Updated:October 12 2023
huggingface.co

Total runs: 48.4K
Run Growth: 25.1K
Growth Rate: 58.90%
Updated:October 12 2023
huggingface.co

Total runs: 47.4K
Run Growth: 22.7K
Growth Rate: 49.08%
Updated:November 14 2023
huggingface.co

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

Total runs: 15.9K
Run Growth: 1.3K
Growth Rate: 8.46%
Updated:April 16 2025
huggingface.co

Total runs: 11.0K
Run Growth: -15.2K
Growth Rate: -136.62%
Updated:October 12 2023
huggingface.co

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

Total runs: 4.5K
Run Growth: -9.3K
Growth Rate: -203.11%
Updated:May 20 2025
huggingface.co

Total runs: 3.5K
Run Growth: 2.4K
Growth Rate: 72.02%
Updated:September 11 2026
huggingface.co

Total runs: 1.8K
Run Growth: -13.5K
Growth Rate: -793.18%
Updated:January 15 2025
huggingface.co

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

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

Total runs: 1.3K
Run Growth: -283
Growth Rate: -23.98%
Updated:November 28 2024
huggingface.co

Total runs: 1.2K
Run Growth: 285
Growth Rate: 22.84%
Updated:September 11 2026
huggingface.co

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

Total runs: 1.1K
Run Growth: -33
Growth Rate: -2.92%
Updated:February 07 2024
huggingface.co

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

Total runs: 751
Run Growth: 37
Growth Rate: 4.63%
Updated:May 23 2025
huggingface.co

Total runs: 596
Run Growth: -175
Growth Rate: -29.46%
Updated:July 13 2026
huggingface.co

Total runs: 479
Run Growth: -87
Growth Rate: -18.20%
Updated:July 13 2026
huggingface.co

Total runs: 461
Run Growth: 181
Growth Rate: 38.92%
Updated:April 10 2026
huggingface.co

Total runs: 430
Run Growth: -134
Growth Rate: -31.31%
Updated:October 27 2023
huggingface.co

Total runs: 411
Run Growth: -622
Growth Rate: -153.58%
Updated:April 18 2023
huggingface.co

Total runs: 392
Run Growth: -230
Growth Rate: -59.13%
Updated:August 11 2026
huggingface.co

Total runs: 366
Run Growth: -783
Growth Rate: -198.73%
Updated:August 11 2026
huggingface.co

Total runs: 358
Run Growth: -265
Growth Rate: -69.55%
Updated:December 25 2025
huggingface.co

Total runs: 334
Run Growth: 131
Growth Rate: 41.32%
Updated:July 13 2026
huggingface.co

Total runs: 323
Run Growth: 59
Growth Rate: 18.38%
Updated:July 13 2026
huggingface.co

Total runs: 294
Run Growth: 211
Growth Rate: 72.51%
Updated:August 18 2026
huggingface.co

Total runs: 291
Run Growth: -848
Growth Rate: -297.54%
Updated:December 25 2025
huggingface.co

Total runs: 290
Run Growth: 97
Growth Rate: 33.80%
Updated:July 13 2026
huggingface.co

Total runs: 283
Run Growth: -149
Growth Rate: -51.38%
Updated:March 07 2024
huggingface.co

Total runs: 282
Run Growth: -3.8K
Growth Rate: -1338.60%
Updated:April 10 2026
huggingface.co

Total runs: 259
Run Growth: 21
Growth Rate: 8.17%
Updated:February 11 2025
huggingface.co

Total runs: 253
Run Growth: -35
Growth Rate: -13.46%
Updated:April 10 2026
huggingface.co

Total runs: 213
Run Growth: -106
Growth Rate: -48.62%
Updated:July 17 2026
huggingface.co

Total runs: 208
Run Growth: -71
Growth Rate: -34.30%
Updated:July 13 2026
huggingface.co

Total runs: 205
Run Growth: -98
Growth Rate: -47.34%
Updated:June 06 2025
huggingface.co

Total runs: 201
Run Growth: -103
Growth Rate: -50.00%
Updated:October 23 2024
huggingface.co

Total runs: 192
Run Growth: -59
Growth Rate: -31.55%
Updated:July 13 2026
huggingface.co

Total runs: 189
Run Growth: 39
Growth Rate: 20.86%
Updated:April 02 2024
huggingface.co

Total runs: 181
Run Growth: 66
Growth Rate: 36.46%
Updated:July 13 2026
huggingface.co

Total runs: 175
Run Growth: -170
Growth Rate: -96.59%
Updated:May 13 2024
huggingface.co

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

Total runs: 166
Run Growth: -50
Growth Rate: -30.30%
Updated:April 10 2026
huggingface.co

Total runs: 166
Run Growth: -33
Growth Rate: -20.12%
Updated:May 31 2024
huggingface.co

Total runs: 164
Run Growth: -993
Growth Rate: -620.63%
Updated:June 24 2024
huggingface.co

Total runs: 163
Run Growth: -28
Growth Rate: -17.07%
Updated:May 13 2024
huggingface.co

Total runs: 163
Run Growth: 67
Growth Rate: 40.36%
Updated:August 23 2023
huggingface.co

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

Total runs: 151
Run Growth: -45
Growth Rate: -30.41%
Updated:July 13 2026
huggingface.co

Total runs: 148
Run Growth: 34
Growth Rate: 23.29%
Updated:July 13 2026
huggingface.co

Total runs: 145
Run Growth: 49
Growth Rate: 35.51%
Updated:March 13 2026