Instructions to use alphaedge-ai/siglip2-base-patch16-512-tgk-32768 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alphaedge-ai/siglip2-base-patch16-512-tgk-32768 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alphaedge-ai/siglip2-base-patch16-512-tgk-32768") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Trimmed SigLIP2 text vocab for Tajik (SP: 32768, ext: 0)
Browse files- config.json +6 -1
- model.safetensors +3 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
config.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"initializer_factor": 1.0,
|
| 3 |
"model_type": "siglip",
|
| 4 |
"text_config": {
|
| 5 |
"model_type": "siglip_text_model",
|
| 6 |
"vocab_size": 32768
|
| 7 |
},
|
| 8 |
-
"
|
|
|
|
| 9 |
"vision_config": {
|
| 10 |
"image_size": 512,
|
| 11 |
"model_type": "siglip_vision_model"
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "google/siglip2-base-patch16-512",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"SiglipModel"
|
| 5 |
+
],
|
| 6 |
"initializer_factor": 1.0,
|
| 7 |
"model_type": "siglip",
|
| 8 |
"text_config": {
|
| 9 |
"model_type": "siglip_text_model",
|
| 10 |
"vocab_size": 32768
|
| 11 |
},
|
| 12 |
+
"torch_dtype": "float32",
|
| 13 |
+
"transformers_version": "4.46.3",
|
| 14 |
"vision_config": {
|
| 15 |
"image_size": 512,
|
| 16 |
"model_type": "siglip_vision_model"
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b03d155349b6daf449a74a18d3e0648835dff38ed9e92ce4366652eefe744d9d
|
| 3 |
+
size 817575248
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2
|
| 3 |
+
size 4241003
|
tokenizer_config.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|