Feature Extraction
sentence-transformers
PyTorch
Chinese
tiny_custom_embed
sentence-similarity
text-embeddings-inference
mteb
chinese
tiny
Instructions to use dynasty-ai/tiny-embed-61m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use dynasty-ai/tiny-embed-61m with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("dynasty-ai/tiny-embed-61m") 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
File size: 775 Bytes
1209a7b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | {
"variant": "B",
"vocab_size": 21128,
"hidden_size": 512,
"num_unique_layers": 12,
"num_repeats": 1,
"intermediate_size": 2048,
"num_attention_heads": 8,
"sliding_window": 512,
"use_qk_norm": true,
"use_bias": false,
"activation": "geglu",
"pooling": "mean",
"latent_queries": 4,
"layer_scale": false,
"depth_attention": false,
"normalize": true,
"rope_theta": 10000.0,
"positional_encoding": "abs",
"loop_index_embedding": false,
"pos_adapter_rank": 0,
"pos_adapter_ffn": false,
"max_position_embeddings": 512,
"attention_dropout": 0.0,
"hidden_dropout": 0.0,
"attn_impl": "flash",
"pad_token_id": 0,
"gradient_checkpointing": false,
"head_dim": 64,
"effective_num_layers": 12,
"model_type": "tiny_custom_embed"
} |