Model reference · open weights

clip-japanese

Embeddings line-corporation Embeddings 2 builds Open weights 26k dl/mo

clip-japanese is an open-weight embedding model from line-corporation. clip-japanese-base (FP32) weighs 393 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • clip-japanese is a Japanese feature-extraction model developed by line-corporation.
  • It is designed for visual tasks such as zero-shot image classification and text-to-image retrieval.
  • The model has 197M parameters, uses an Eva02-B image encoder and a 12-layer BERT text encoder, and is licensed under Apache-2.0.

Summary of the line-corporation/clip-japanese-base model card, 2026-10-01

What it is

Released byline-corporation
Released2024-04-24
Parameters197M
VRAM393 MB for the weights

What it runs on

Memory and cards for clip-japanese-base (FP32)

393 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
clip-japanese-base (above) ↗ 197MFP32 393 MBRTX 3060 12 GB
clip-japanese-base-v2 ↗ 196MFP32 393 MBRTX 3060 12 GB

From the model card

What line-corporation says about clip-japanese

Read the model card

This is a Japanese CLIP (Contrastive Language-Image Pre-training) model developed by LY Corporation. This model was trained on ~1B web-collected image-text pairs, and it is applicable to various visual tasks including zero-shot image classification, text-to-image or image-to-text retrieval.

How to use

  1. Install packages
pip install pillow requests sentencepiece transformers torch timm
  1. Run
import io
import requests
from PIL import Image
import torch
from transformers import AutoImageProcessor, AutoModel, AutoTokenizer

HF_MODEL_PATH = 'line-corporation/clip-japanese-base'
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(HF_MODEL_PATH, trust_remote_code=True)
processor = AutoImageProcessor.from_pretrained(HF_MODEL_PATH, trust_remote_code=True)
model = AutoModel.from_pretrained(HF_MODEL_PATH, trust_remote_code=True).to(device)

image = Image.open(io.BytesIO(requests.get('https://images.pexels.com/photos/2253275/pexels-photo-2253275.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260').content))
image = processor(image, return_tensors="pt").to(device)
text = tokenizer(["犬", "猫", "象"]).to(device)

with torch.no_grad():
    image_features = model.get_image_features(**image)
    text_features = model.get_text_features(**text)
    text_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)

print("Label probs:", text_probs)
# [[1., 0., 0.]]

Model architecture

The model uses an Eva02-B Transformer architecture as the image encoder and a 12-layer BERT as the text encoder. The text encoder was initialized from rinna/japanese-clip-vit-b-16.

Evaluation

Dataset

Result

ModelImage Encoder ParamsText Encoder paramsSTAIR Captions (R@1)Recruit Datasets (acc@1)ImageNet-1K (acc@1)
Ours86M(Eva02-B)100M(BERT)0.300.890.58
Stable-ja-clip307M(ViT-L)100M(BERT)0.240.770.68
Rinna-ja-clip86M(ViT-B)100M(BERT)0.130.540.56
Laion-clip632M(ViT-H)561M(XLM-RoBERTa)0.300.830.58
Hakuhodo-ja-clip632M(ViT-H)100M(BERT)0.210.820.46

Licenses

The Apache License, Version 2.0

Citation

@misc{clip-japanese-base,
    title = {CLIP Japanese Base},
    author={Shuhei Yokoo and Shuntaro Okada and Peifei Zhu and Shuhei Nishimura and Naoki Takayama}
    url = {https://huggingface.co/line-corporation/clip-japanese-base},
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms