AI SeedbankHelp preserve open and free AI for humanity's future

← All models

laion_CLIP-ViT-L-14-laion2B-s32B-b82K

laion · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: mit widget:


Model Card for CLIP ViT-L/14 - LAION-2B

Table of Contents

  1. Model Details
  2. Uses
  3. Training Details
  4. Evaluation
  5. Acknowledgements
  6. Citation
  7. How To Get Started With the Model

Model Details

Model Description

A CLIP ViT L/14 model trained with the LAION-2B English subset of LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/open_clip).

Model training ('babysitting') done by Ross Wightman on the JUWELS Booster supercomputer. See acknowledgements below.

Uses

As per the original OpenAI CLIP model card, this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model.

The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. Additionally, the LAION-5B blog (https://laion.ai/blog/laion-5b/) and upcoming paper include additional discussion as it relates specifically to the training dataset.

Direct Use

Zero-shot image classification, image and text retrieval, among others.

Downstream Use

Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others.

Out-of-Scope Use

As per the OpenAI models,

Any deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful.

Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use.

Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases.

Further the above notice, the LAION-5B dataset used in training of these models has additional considerations, see below.

Training Details

Training Data

This model was trained with the 2 Billion sample English subset of LAION-5B (https://laion.ai/blog/laion-5b/).

IMPORTANT NOTE: The motivation behind dataset creation is to democratize research and experimentation around large-scale multi-modal model training and handling of uncurated, large-scale datasets crawled from publically available internet. Our recommendation is therefore to use the dataset for research purposes. Be aware that this large-scale dataset is uncurated. Keep in mind that the uncurated nature of the dataset means that collected links may lead to strongly discomforting and disturbing content for a human viewer. Therefore, please use the demo links with caution and at your own risk. It is possible to extract a “safe” subset by filtering out samples based on the safety tags (using a customized trained NSFW classifier that we built). While this strongly reduces the chance for encountering potentially harmful content when viewing, we cannot entirely exclude the possibility for harmful content being still present in safe mode, so that the warning holds also there. We think that providing the dataset openly to broad research and other interested communities will allow for transparent investigation of benefits that come along with training large-scale models as well as pitfalls and dangers that may stay unreported or unnoticed when working with closed large datasets that remain restricted to a small community. Providing our dataset openly, we however do not recommend using it for creating ready-to-go industrial products, as the basic research about general properties and safety of such large-scale models, which we would like to encourage with this release, is still in progress.

Training Procedure

The model was trained on 384 A100 GPUs using 200M sample 'virtual' epochs where dataset shards were sampled with replacement. The model was trained with 160 virtual epochs for a total of 32B samples seen.

The first 68 epochs were trained with float16 AMP, global batch size 79K (208 per GPU). Initially running to epoch 75, where the loss spiked and training failed with NaN.

Romain Beaumont was training H/14 and g/14 models at the same time on Stability cluster and hit similar instabilities. Collectively we tried restarts with,

  • different dataset shuffle seed
  • different LR
  • gradient clipping
  • modifications to the architecture
    • Norm modifications (stable norm for final, post embed norm for text transformer) as per https://github.com/mlfoundations/open_clip/pull/153 thanks to Phil Wang
    • Extra attention block norms ala Normformer (https://arxiv.org/abs/2110.09456)
    • Scaled cosine attention ala Swin-V2 (https://arxiv.org/abs/2111.09883)

None of the above ended up working. Most blew up within the same epoch as original, with the exception of architecture mods.

  • Normformer mods signifcantly altered the network such that resuming did not quickly converge to previous performance, this was abandoned but might be worth trying from start.
  • Scaled cosine attn initially looked promising and lasted until epoch 90 before loss suddenly increased and appeared to remain 'stuck'.

In the end, restarting at epoch 69 with float32 precision solved all instabilities and training continued from there with global batch size 86k (224 per GPU). On A100 GPUs, float32 had a minimal impact on the throughput once tf32 matmuls were enabled in PyTorch. Approximately 10% slower than float16 AMP. Romain similary changed the precision but ended up using bfloat16 AMP to resolve issues.

Slum Script

#SBATCH --nodes=96
#SBATCH --gres=gpu:4
#SBATCH --ntasks-per-node=4
#SBATCH --cpus-per-task=6
#SBATCH --wait-all-nodes=1
#SBATCH --job-name=open_clip_laion2b

# load low-level libraries
ml purge
source /conda/bin/activate pytorch-112

export NCCL_ASYNC_ERROR_HANDLING=1
export CUDA_VISIBLE_DEVICES=0,1,2,3
export MASTER_PORT=12802

### get the first node name as master address - customized for vgg slurm
### e.g. master(gnodee[2-5],gnoded1) == gnodee2
echo "NODELIST="${SLURM_NODELIST}
master_addr=$(scontrol show hostnames "$SLURM_JOB_NODELIST" | head -n 1)
export MASTER_ADDR=$master_addr"i"
echo "MASTER_ADDR="$MASTER_ADDR

cd /home/me/open_clip
export PYTHONPATH="$PYTHONPATH:$PWD/src"

srun --cpu_bind=none,v --accel-bind=gn python -u src/training/main.py \
    --save-frequency 1 \
    --zeroshot-frequency 1 \
    --train-data="/data/laion2B-en/{00000..23295}.tar" \
    --train-num-samples=200000000 \
    --warmup 10000 \
    --lr "1e-3" \
    --batch-size=224 \
    --epochs=160 \
    --workers=6 \
    --model ViT-L-14 \
    --name "L14-laion2B" \
    --report-to "tensorboard" \
    --seed 0 \
    --precision 'fp32' \
    --ddp-static-graph \
    --local-loss \
    --dataset-resampled \
    --gather-with-grad \
    --grad-checkpointing

Evaluation

Evaluation done with code in the LAION CLIP Benchmark suite.

Testing Data, Factors & Metrics

Testing Data

The testing is performed with VTAB+ (A combination of VTAB (https://arxiv.org/abs/1910.04867) w/ additional robustness datasets) for classification and COCO and Flickr for retrieval.

TODO - more detail

Results

The model achieves a 75.3 zero-shot top-1 accuracy on ImageNet-1k.

An initial round of benchmarks have been performed on a wider range of datasets, currently viewable at https://github.com/LAION-AI/CLIP_benchmark/blob/main/benchmark/results.ipynb

TODO - create table for just this model's metrics.

Acknowledgements

Acknowledging the Gauss Centre for Supercomputing e.V. (http://gauss-centre.eu) for funding this part of work by providing computing time through the John von Neumann Institute for Computing (NIC) on the GCS Supercomputer JUWELS Booster at Jülich Supercomputing Centre (JSC).

Citation

BibTeX:

LAION-5B

@inproceedings{schuhmann2022laionb,
  title={{LAION}-5B: An open large-scale dataset for training next generation image-text models},
  author={Christoph Schuhmann and
          Romain Beaumont and
          Richard Vencu and
          Cade W Gordon and
          Ross Wightman and
          Mehdi Cherti and
          Theo Coombes and
          Aarush Katta and
          Clayton Mullis and
          Mitchell Wortsman and
          Patrick Schramowski and
          Srivatsa R Kundurthy and
          Katherine Crowson and
          Ludwig Schmidt and
          Robert Kaczmarczyk and
          Jenia Jitsev},
  booktitle={Thirty-sixth Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
  year={2022},
  url={https://openreview.net/forum?id=M3Y74vmsMcY}
}

OpenAI CLIP paper

@inproceedings{Radford2021LearningTV,
  title={Learning Transferable Visual Models From Natural Language Supervision},
  author={Alec Radford and Jong Wook Kim and Chris Hallacy and A. Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever},
  booktitle={ICML},
  year={2021}
}

OpenCLIP software

@software{ilharco_gabriel_2021_5143773,
  author       = {Ilharco, Gabriel and
                  Wortsman, Mitchell and
                  Wightman, Ross and
                  Gordon, Cade and
                  Carlini, Nicholas and
                  Taori, Rohan and
                  Dave, Achal and
                  Shankar, Vaishaal and
                  Namkoong, Hongseok and
                  Miller, John and
                  Hajishirzi, Hannaneh and
                  Farhadi, Ali and
                  Schmidt, Ludwig},
  title        = {OpenCLIP},
  month        = jul,
  year         = 2021,
  note         = {If you use this software, please cite it as below.},
  publisher    = {Zenodo},
  version      = {0.1},
  doi          = {10.5281/zenodo.5143773},
  url          = {https://doi.org/10.5281/zenodo.5143773}
}

How to Get Started with the Model

Use the code below to get started with the model.

** TODO ** - Hugging Face transformers, OpenCLIP, and timm getting started snippets

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:6d0e43221301a06a96b0894aff6bab26c03db80b&dn=laion_CLIP-ViT-L-14-laion2B-s32B-b82K

Open magnet in torrent client · infohash 6d0e43221301a06a96b0894aff6bab26c03db80b

Files & hashes

PathSizesha1sha256
README.md11.1 KB (11,373 B)8e244deaf8b9b2d1c781b8bc91bb9ca2c2e2e62ccce28ea3396104a1d85fafa065584fdd8759b539ac447da4380febca7a9ddbe1
config.json4.5 KB (4,581 B)4b7b9fc9565ba67f9eeedd12370ae4c9c31b885a87365c921bc820d4ecd6ddcc1df0259f1aabca0a17b0442352e2784287248209
merges.txt512.3 KB (524,618 B)80954e3a66452c700b68842dcebc85e08dd3306af1cd414c2d113a28b296afc0fd66ae854c0e0c34d5de373a2f5b7f62e0c02344
model.safetensors1.59 GB (1,710,540,580 B)f8c6afd3a1b7ddf97485ef7e3ea597d729d983240fce40ac684817a17ab8aa6014f0a933f602effa13a41c2618b6716667974e09
open_clip_config.json564 B (564 B)f4748b75a6206537519d2a03595522a33a9f2b01de8f2f846f38ccb247b9648512c31ea79b51fde6a623a8d5e85d96cfe10d943a
open_clip_pytorch_model.bin1.59 GB (1,710,631,365 B)918b9cc21d30354d686d6d051c22f355e066c8685ddb47339f44e4fd9cace3d3960d38af1b51a25857440cfae90afc44706d7e2b
open_clip_pytorch_model.safetensors1.59 GB (1,710,517,748 B)4bd88a8be661b3a3f2e34ee6ef75825a4750c3377d129ed747e0ed53e82dfcc140382b51be66b56e6a9bdc3258afd2846e3bb019
preprocessor_config.json275 B (275 B)7dcfefbd5667126f79a35fa36a526b34596af2eb054951d7d3ae207cfed0d3c93c563d2a4cb1fb375051792f5c45e3865aad5e14
pytorch_model.bin1.59 GB (1,710,660,257 B)0d963b1d17026d4e5372c041a9088b28b93b7ace45a6d8e04e46cfc7f55ee74a62a4ef04c95b9ef005981f9ccee19af8906ab181
runs/events.out.tfevents.1660090697.jwb0360.juwels.18885.022.3 KB (22,840 B)84d0ae4d56e10dc92269d993483a541794d1aa93bf2f8838ec8c1aca3cf71dc86ec829b86bc786c915a80b561a68b2d61a129325
runs/events.out.tfevents.1660150065.jwb0066.juwels.24737.0114.1 KB (116,880 B)6bc719a03fcb8625f9dd252faa954e949f93013d35d962fa7cd625083164888b2e38591ada23dd21d3f0f2ec608c45685cb9cd87
runs/events.out.tfevents.1660278820.jwb0066.juwels.20307.0109.8 KB (112,444 B)2c71aa93c4cb7e6d4feedcc8dd4ed92bc022bfee21e58767af271ccb863faa712defa670214aef3f2725e0789e7e7261dc66d6f2
runs/events.out.tfevents.1660368981.jwb0069.juwels.12098.0112.6 KB (115,351 B)43fd45196577e1cf258eef694c954612d31c27c3a2185da37e3b9c6d6203252cbd722440b2f1ad0486767aa433ac9ca53f9103c0
runs/events.out.tfevents.1660507060.jwb0038.juwels.22553.0111.7 KB (114,382 B)607f4f5cb5e26423763a18d79cc9f115260159e0294b98afa9a1a2c586d96e8529fc41d9a8d08ced0646d36a9480661c2232227c
runs/events.out.tfevents.1660660016.jwb0075.juwels.30448.0110.1 KB (112,767 B)ba139b6c9a12b28fe0de8a124aea5587aa02ddbb015fbd1aaf182b120309513becc4a8553ba0f1fc98143ac925a3d97e419971bb
runs/events.out.tfevents.1660757289.jwb0031.juwels.28174.084.6 KB (86,604 B)9c89957e12e045016897e818b226c9815884dd43b88d4d36282d2a9f4aa7371bdba738063c22d7881d59440b85812bbc0ae108c7
runs/events.out.tfevents.1662171151.jwb0026.juwels.11856.097.5 KB (99,847 B)807ef1117e1c39169d06b4c61bb31428dabb6f47ab81e18ee28996ac9c5bf2e02ea4b59a6541bcd053aed7477f1adcfd9f8b956a
runs/events.out.tfevents.1662256342.jwb0043.juwels.17228.095.0 KB (97,263 B)a6c67c7550976d399993e82df94e220c54519b1f366825801f79123b85adb73b076e75f04748409982a9ee5591b31429255f0b08
runs/events.out.tfevents.1662354550.jwb0066.juwels.12897.092.5 KB (94,679 B)1f8b2a986f1d2cb08f35195b9b6c6270aabdacf28bb8783d4ee1a0852061fe6f4849f14c869aa3ded4655b25afaaa6084bc8816c
runs/events.out.tfevents.1662437430.jwb0066.juwels.25458.073.5 KB (75,299 B)4077b5d10676bb33a56d9bd526162d6582a6442acb64a95e3f8f5181d328a98329c062ce47823338e428317be0b090e32eef253d
runs/events.out.tfevents.1662584587.jwb0929.juwels.26132.096.6 KB (98,878 B)2553dbfa84c3d3f2ce77b33a96b018db0afa37712b7c7b280a49e1f22c8dd039b86d598e81410d3a087f63e880d1130565d7176a
runs/events.out.tfevents.1662678523.jwb0577.juwels.25329.094.0 KB (96,294 B)3b533282096abdb04323a43f6ecff2d42c7c4382d965d500d6b8ed7ee743436b5ca8da45633613e324bc9fe32c927d258465d04f
runs/events.out.tfevents.1662777391.jwb0093.juwels.22511.08.6 KB (8,761 B)b0255aa884612b41bf9e4b86fff7b78394b5f1cd51f98864e74674d17187bb088fd07277b36afdce4a214b1461386cf68af206a9
runs/events.out.tfevents.1662784958.jwb0093.juwels.2143.094.0 KB (96,294 B)5f45a688338612d1bd63ad3a51207f23a425a236a69693ecba0c1de5e9e0d82df81992cfbc816b2873fafb0b1da6753db27d332b
runs/events.out.tfevents.1662923022.jwb0354.juwels.8816.095.9 KB (98,232 B)d6882a2895be30672de7de5d2edb3a9394e513495f87516e52bc22898c7aae47bff9e030c67d3c3043dc007ee19551fb2f8cebd9
runs/events.out.tfevents.1663040222.jwb0024.juwels.20189.07.9 KB (8,115 B)1b1b2c75a368bbc6091421e3f3dd433e4ee57b207c4cbd6f93ad83f154e3c624e7d58ab950c62e10b5d87bcbaa7e8d8317ff0d60
special_tokens_map.json389 B (389 B)9bfb42aa97dcd61e89f279ccaee988bccb4fabaef8c0d6c39aee3f8431078ef6646567b0aba7f2246e9c54b8b99d55c22b707cbf
tokenizer.json2.1 MB (2,224,041 B)564c0ebd5ce29c4ee4864004aee693deadd3128cb556ac8c99757ffb677208af34bc8c6721572114111a6e0aaf5fa69ff0b8d842
tokenizer_config.json904 B (904 B)e3e138b103e00cb9cfb2ab6ef11d96b47ddd9e04e19f34ef773563fb695f96cfcae1e4c7b112ab6ad532f6962061df5242d924f0
vocab.json842.1 KB (862,328 B)182766ce89b439768edadda342519f33802f53645047b556ce86ccaf6aa22b3ffccfc52d391ea4accdab9c2f2407da5b742d4363

Cite this release

Canonical URL
https://aiseedbank.org/models/laion_CLIP-ViT-L-14-laion2B-s32B-b82K/
Slug
laion_CLIP-ViT-L-14-laion2B-s32B-b82K
Infohash
6d0e43221301a06a96b0894aff6bab26c03db80b
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: laion_CLIP-ViT-L-14-laion2B-s32B-b82K.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorylaion/CLIP-ViT-L-14-laion2B-s32B-b82K
Revision (pinned)1627032197142fbe2a7cfec626f4ced3ae60d07a
Fetched at2026-09-04T01:27:40Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T01:29:33Z

mit6.38 GB (6,847,433,953 bytes)open_clippytorchtensorboardsafetensorsclipzero-shot-image-classificationpaper: 2110.09456paper: 2111.09883paper: 1910.04867