This repository contains TiC-CLIP models trained on TiC-DataComp-Yearly (xlarge, basic filtering) with data from 2014 to 2022 using our modified OpenCLIP code.
For additional information refer to our
GitHub repo
.
Model Details
Model Description
Keeping large foundation models up to date on latest data is inherently expensive.
To avoid the prohibitive costs of constantly retraining, it is imperative to continually train these models.
This problem is exacerbated by the lack of any large scale continual learning benchmarks or baselines.
We introduce the first set of web-scale Time-Continual (TiC) benchmarks for training vision-language models:
TiC-DataComp, TiC-YFCC, and TiC-Redcaps. TiC-DataComp, our largest dataset,
contains over 12.7B timestamped image-text pairs spanning 9 years (2014-2022).
We first use our benchmarks to curate various dynamic evaluations to measure temporal robustness of existing models.
We show OpenAI's CLIP (trained on data up to 2020) loses ≈8% zero-shot accuracy on our curated retrieval task from 2021-2022 compared with more recently trained models in OpenCLIP repository.
We then study how to efficiently train models on time-continuous data.
We demonstrate that a simple rehearsal-based approach that continues training from the last checkpoint and replays old data reduces compute by 2.5× when compared to the standard practice of retraining from scratch.
Code is available at
this https URL
.
Researchers can use TiC-CLIP pretrained models for faster design of continual learning methods by start from a pretrained checkpoint and continually train on the next year or next month data.
How to Get Started with the Model
The models are compatible with DataComp evaluation suite and our patched version of DataComp for evaluation on TiC-DataComp-Retrieval and TiC-DataCompNet.
The models can also be used to resume a training or as initialization for new training using OpenCLIP code.
Please follow instructions in our
GitHub repo
to create the evaluation sets or follow
DataComp
for the standard evaluations on 38 datasets.
The following snippet assumes the TiC-DataComp data has been prepared and following the instructions in the GitHub repo.
Training
YEAR=2016 # There are no models before 2016 since data from 2014-2016 were compined into one year
REPO="apple/TiC-CLIP-basic-cumulative"
huggingface-cli download $REPO checkpoints/$YEAR.pt
## Trainpushd datacomp
final_data_dir=$TIC_DATACOMP_Y_PATH/train/$YEAR/
torchrun --nproc_per_node 8 --nnodes 1 \
train.py \
--scale "tic_medium" \
--dataset_resampled \
--data_dir $final_data_dir \
--output_dir "./results/" \
--exp_name "datacomp_medium-basic_cumulative" \
--imagenet_val $IMAGENET_VAL_PATH \
--save_frequency 1 \
--resume
popd
Evaluation
# Evaluate a ViT-B/16 model on TiC/Retrieval/Yearly/$YEAR and# TiC/DataCompNet/Yearly/$YEARpushd datacomp
python ../dataset_creation/tic-datacomp/generate_tasklist.py --yaml-path tasklist.yml --sample-eval --eval-tasks retrieval/yearly,datacompnet/yearly
python evaluate.py --data_dir data/ --train_output_dir ./results --use_model "ViT-B-16 $YEAR.pt" --skip_hf --skip_db --skip_notification
@inproceedings{garg2024tic,
title={TiC-CLIP: Continual Training of CLIP Models},
author={Garg, Saurabh and Farajtabar, Mehrdad and Pouransari, Hadi and Vemulapalli, Raviteja and Mehta, Sachin and Tuzel, Oncel and Shankar, Vaishaal and Faghri, Fartash},
booktitle={The Twelfth International Conference on Learning Representations (ICLR)},
year={2024},
url={https://openreview.net/forum?id=TLADT8Wrhn}
}
Runs of apple TiC-CLIP-basic-cumulative on huggingface.co
414
Total runs
10
24-hour runs
35
3-day runs
50
7-day runs
369
30-day runs
More Information About TiC-CLIP-basic-cumulative huggingface.co Model
More TiC-CLIP-basic-cumulative license Visit here:
TiC-CLIP-basic-cumulative huggingface.co is an AI model on huggingface.co that provides TiC-CLIP-basic-cumulative's model effect (), which can be used instantly with this apple TiC-CLIP-basic-cumulative model. huggingface.co supports a free trial of the TiC-CLIP-basic-cumulative model, and also provides paid use of the TiC-CLIP-basic-cumulative. Support call TiC-CLIP-basic-cumulative model through api, including Node.js, Python, http.
TiC-CLIP-basic-cumulative huggingface.co is an online trial and call api platform, which integrates TiC-CLIP-basic-cumulative's modeling effects, including api services, and provides a free online trial of TiC-CLIP-basic-cumulative, you can try TiC-CLIP-basic-cumulative online for free by clicking the link below.
apple TiC-CLIP-basic-cumulative online free url in huggingface.co:
TiC-CLIP-basic-cumulative is an open source model from GitHub that offers a free installation service, and any user can find TiC-CLIP-basic-cumulative on GitHub to install. At the same time, huggingface.co provides the effect of TiC-CLIP-basic-cumulative install, users can directly use TiC-CLIP-basic-cumulative installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
TiC-CLIP-basic-cumulative install url in huggingface.co: