Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a configuration using xlm roberta and vit b/32 for multilingual c…
…lip (#216) * Add a configuration using xlm roberta and vit b/32 for multilingual clip https://huggingface.co/docs/transformers/model_doc/xlm-roberta * Update xlm-roberta-base-ViT-B-32.json * Update hf_configs.py * Update test_hf_model.py * Update test_hf_model.py * Update hf_configs.py * Update xlm-roberta-base-ViT-B-32.json
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/open_clip/model_configs/xlm-roberta-base-ViT-B-32.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"embed_dim": 512, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"layers": 12, | ||
"width": 768, | ||
"patch_size": 32 | ||
}, | ||
"text_cfg": { | ||
"hf_model_name": "xlm-roberta-base", | ||
"hf_tokenizer_name": "xlm-roberta-base", | ||
"proj": "mlp", | ||
"pooler_type": "mean_pooler" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters