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
Download config.json from dynasty-ai/tiny-embed-61m: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/dynasty-ai/tiny-embed-61m/resolve/main/config.json
- Command line
-
hf download hf://dynasty-ai/tiny-embed-61m/config.json
-
curl -L -o config.json https://huggingface.co/dynasty-ai/tiny-embed-61m/resolve/main/config.json
775 Bytes
| { | |
| "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" | |
| } |