Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused MultimodalCfg.attn_pooler_heads #843

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ Training [CoCa](https://arxiv.org/abs/2205.01917) models is enabled through spec
"width": 512,
"heads": 8,
"layers": 12,
"latent_dim": 512,
"attn_pooler_heads": 8
"latent_dim": 512
}
```
Credit to [lucidrains](https://github.com/lucidrains) for [initial code](https://github.com/lucidrains/CoCa-pytorch), [gpucce](https://github.com/gpucce) for adapting the code to open_clip, and [iejMac](https://github.com/iejMac) for training the models.
Expand Down
1 change: 0 additions & 1 deletion src/open_clip/coca_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class MultimodalCfg(CLIPTextCfg):
dim_head: int = 64
heads: int = 8
n_queries: int = 256
attn_pooler_heads: int = 8


def _build_text_decoder_tower(
Expand Down
5 changes: 2 additions & 3 deletions src/open_clip/model_configs/coca_ViT-B-32.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"vocab_size": 49408,
"width": 512,
"heads": 8,
"layers": 12,
"attn_pooler_heads": 8
"layers": 12
},
"custom_text": true
}
}
3 changes: 1 addition & 2 deletions src/open_clip/model_configs/coca_ViT-L-14.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"vocab_size": 49408,
"width": 768,
"heads": 12,
"layers": 12,
"attn_pooler_heads": 12
"layers": 12
},
"custom_text": true
}
5 changes: 2 additions & 3 deletions src/open_clip/model_configs/coca_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"layers": 12,
"heads": 12,
"width": 768,
"embed_cls": true,
"output_tokens": true
"embed_cls": true
},
"custom_text": true
}
}
Loading