Instructions to use alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384") sentences = [ "Это счастливый человек", "Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384/resolve/main/config.json
- Command line
-
hf download hf://alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384/config.json
-
curl -L -o config.json https://huggingface.co/alphaedge-ai/metaclip-2-worldwide-huge-378-rus-16384/resolve/main/config.json
1.15 kB
| { | |
| "architectures": [ | |
| "MetaCLIP2Model" | |
| ], | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 2.6592, | |
| "model_type": "metaclip_2", | |
| "projection_dim": 1024, | |
| "text_config": { | |
| "attention_dropout": 0.0, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_size": 1024, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 77, | |
| "model_type": "metaclip_2_text_model", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "projection_dim": 1024, | |
| "vocab_size": 16384 | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.55.0.dev0", | |
| "vision_config": { | |
| "attention_dropout": 0.0, | |
| "hidden_act": "gelu", | |
| "hidden_size": 1280, | |
| "image_size": 378, | |
| "initializer_factor": 1.0, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5120, | |
| "layer_norm_eps": 1e-05, | |
| "model_type": "metaclip_2_vision_model", | |
| "num_attention_heads": 16, | |
| "num_channels": 3, | |
| "num_hidden_layers": 32, | |
| "patch_size": 14, | |
| "projection_dim": 1024 | |
| } | |
| } |