Skip to content

Commit

Permalink
Found this missing 224 bigG CLIPA-v2 checkpoint (mlfoundations#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman authored and Interpause committed May 23, 2024
1 parent dd76e74 commit 49cc11b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions src/open_clip/model_configs/ViT-bigG-14-CLIPA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"embed_dim": 1280,
"vision_cfg": {
"image_size": 224,
"layers": 48,
"width": 1664,
"head_width": 104,
"mlp_ratio": 4.9231,
"patch_size": 14,
"no_ln_pre": true,
"pool_type": "avg",
"final_ln_after_pool": true
},
"text_cfg": {
"context_length": 32,
"vocab_size": 32000,
"hf_tokenizer_name": "bert-base-uncased",
"tokenizer_kwargs": {
"strip_sep_token": true
},
"width": 1280,
"heads": 20,
"layers": 32,
"pool_type": "last",
"no_causal_mask": true
}
}
6 changes: 3 additions & 3 deletions src/open_clip/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ def _apcfg(url='', hf_hub='', **kwargs):
laion2b=_apcfg(hf_hub='rwightman/ViT-H-14-CLIPA-336-laion2B/'),
datacomp1b=_apcfg(hf_hub='rwightman/ViT-H-14-CLIPA-336-datacomp1B/'),
),
# "ViT-bigG-14-CLIPA": dict(
# datacomp1b=_apcfg(hf_hub='rwightman/ViT-bigG-14-CLIPA-datacomp1B/'),
# ),
"ViT-bigG-14-CLIPA": dict(
datacomp1b=_apcfg(hf_hub='rwightman/ViT-bigG-14-CLIPA-datacomp1B/'),
),
"ViT-bigG-14-CLIPA-336": dict(
datacomp1b=_apcfg(hf_hub='rwightman/ViT-bigG-14-CLIPA-336-datacomp1B/'),
),
Expand Down

0 comments on commit 49cc11b

Please sign in to comment.