llm-jp / llm-jp-clip-vit-base-patch16

huggingface.co
Total runs: 38
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: February 14 2025
zero-shot-image-classification

Introduction of llm-jp-clip-vit-base-patch16

Model Details of llm-jp-clip-vit-base-patch16

Model Card for llm-jp-clip-vit-base-patch16

Model Details

Japanese CLIP model trained with OpenCLIP on relaion2B-en-research-safe-japanese-translation , a Japanese translation of the English subset of ReLAION-5B ( https://huggingface.co/datasets/laion/relaion2B-en-research-safe ), translated by gemma-2-9b-it .

The total number of parameters of this model is 248M.

How to Use

Installation
$ pip install open_clip_torch
Zero-shot Image Classification
import open_clip

model, preprocess = open_clip.create_model_from_pretrained('hf-hub:llm-jp/llm-jp-clip-vit-base-patch16')
tokenizer = open_clip.get_tokenizer('hf-hub:llm-jp/llm-jp-clip-vit-base-patch16')

import torch
from PIL import Image
import requests

url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)
image = preprocess(image).unsqueeze(0)
text = tokenizer(["猫", "犬", "鳥"])

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)
# Label probs: tensor([[9.9425e-01, 5.2273e-03, 5.2600e-04]])

Reference:

Training Details

Model Architecture
  • Text Encoder: RoBERTa base with llm-jp-tokenizer
  • Image Encoder: ViT-B/16
Training Data

This model is trained on relaion2B-en-research-safe-japanese-translation . Due to a 70% success rate in image downloads, the dataset size was 1.45 billion samples, and we processed it over 9 epochs (13 billion samples in total).

Evaluation

Evaluation Code: https://github.com/llm-jp/clip-eval

Table: Performance of each model in zero-shot image classification and image-text retrieval tasks. Bold indicates first place, and underline indicates second place.

Model Params (M) ImageNet Recruit CIFAR10 CIFAR100 Food101 Caltech101 XM3600 I → T XM3600 T → I Avg.
Japanese CLIP
Rinna ViT-B/16 196 50.6 39.9 90.7 64.0 53.2 84.6 53.8 54.0 61.4
Rinna ViT-B/16 cloob 196 54.6 41.6 88.2 60.3 57.2 80.2 53.4 53.4 61.1
LY ViT-B/16 196 52.0 83.8 96.3 76.7 73.9 88.4 76.9 78.0 78.3
llm-jp-ViT-B/16 248 54.2 59.4 91.8 69.2 82.2 85.6 73.6 72.7 73.6
StabilityAI ViT-L/16 414 62.4 70.5 97.6 84.1 74.0 86.7 67.3 66.0 76.1
llm-jp-ViT-L/14 467 59.5 62.9 96.4 77.0 88.2 87.8 74.1 74.1 77.5
Multilingual CLIP
SigLIP B/16-256 multi 370 51.9 71.2 92.4 65.8 78.6 85.6 45.9 43.0 66.8
jina-clip-v2 865 35.8 48.1 95.1 58.3 52.0 69.4 67.3 66.4 61.6
LAION ViT-H/14 multi 1193 53.0 74.5 97.9 78.4 74.3 85.1 75.0 72.0 76.3

LICENSE

The Apache License, Version 2.0

Please refer to the Gemma Terms of Use , as the training data was translated using gemma-2-9b-it. We utilizes Gemma solely for translation purposes. According to the definition of "Model Derivatives" in Section 1.1(e), our model does not fall under the category of a "model in order to cause that model to perform similarly to Gemma." Therefore, we have concluded that it is not necessary to inherit the Gemma license.

Citation

Bibtex:

@inproceedings{sugiura2025clip,
author = {杉浦 一瑳 and 栗田 修平 and 小田 悠介 and 河原大輔 and 岡崎 直観},
month = mar,
series = {言語処理学会第31回年次大会 (NLP2025)},
title = {オープンLLMによる翻訳を活用した日本語 CLIP の開発},
year = {2025}
}

Runs of llm-jp llm-jp-clip-vit-base-patch16 on huggingface.co

38
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About llm-jp-clip-vit-base-patch16 huggingface.co Model

More llm-jp-clip-vit-base-patch16 license Visit here:

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

llm-jp-clip-vit-base-patch16 huggingface.co

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

llm-jp-clip-vit-base-patch16 huggingface.co Url

https://huggingface.co/llm-jp/llm-jp-clip-vit-base-patch16

llm-jp llm-jp-clip-vit-base-patch16 online free

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

llm-jp llm-jp-clip-vit-base-patch16 online free url in huggingface.co:

https://huggingface.co/llm-jp/llm-jp-clip-vit-base-patch16

llm-jp-clip-vit-base-patch16 install

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

llm-jp-clip-vit-base-patch16 install url in huggingface.co:

https://huggingface.co/llm-jp/llm-jp-clip-vit-base-patch16

Url of llm-jp-clip-vit-base-patch16

llm-jp-clip-vit-base-patch16 huggingface.co Url

Provider of llm-jp-clip-vit-base-patch16 huggingface.co

llm-jp
ORGANIZATIONS

Other API from llm-jp

huggingface.co

Total runs: 8.9K
Run Growth: 8.1K
Growth Rate: 91.11%
Updated:February 04 2025
huggingface.co

Total runs: 1.3K
Run Growth: -148
Growth Rate: -11.56%
Updated:February 04 2025
huggingface.co

Total runs: 1.2K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2024
huggingface.co

Total runs: 887
Run Growth: -447
Growth Rate: -50.39%
Updated:September 27 2024
huggingface.co

Total runs: 638
Run Growth: 0
Growth Rate: 0.00%
Updated:January 31 2025
huggingface.co

Total runs: 321
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2024
huggingface.co

Total runs: 180
Run Growth: -30
Growth Rate: -16.67%
Updated:February 04 2025
huggingface.co

Total runs: 129
Run Growth: 76
Growth Rate: 58.91%
Updated:February 27 2025
huggingface.co

Total runs: 124
Run Growth: 75
Growth Rate: 60.48%
Updated:February 27 2025
huggingface.co

Total runs: 119
Run Growth: 71
Growth Rate: 59.66%
Updated:February 27 2025
huggingface.co

Total runs: 111
Run Growth: 57
Growth Rate: 51.35%
Updated:February 27 2025
huggingface.co

Total runs: 109
Run Growth: 60
Growth Rate: 55.05%
Updated:February 27 2025
huggingface.co

Total runs: 102
Run Growth: 57
Growth Rate: 55.88%
Updated:February 27 2025
huggingface.co

Total runs: 79
Run Growth: 0
Growth Rate: 0.00%
Updated:December 23 2024
huggingface.co

Total runs: 42
Run Growth: 4
Growth Rate: 9.52%
Updated:September 19 2025