Sentence Similarity
sentence-transformers
Safetensors
English
embedding_gemma2
feature-extraction
embeddings
retrieval
semantic-search
matryoshka
nasa
combustion
microgravity
spacecraft-fire-safety
Instructions to use rarfileexe/FlameLedger-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rarfileexe/FlameLedger-Encoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rarfileexe/FlameLedger-Encoder") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Upload 2 files
Browse files- config.json +146 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"EmbeddingGemma2Model"
|
| 4 |
+
],
|
| 5 |
+
"audio_config": {
|
| 6 |
+
"attention_chunk_size": 12,
|
| 7 |
+
"attention_context_left": 13,
|
| 8 |
+
"attention_context_right": 0,
|
| 9 |
+
"attention_invalid_logits_value": -1000000000.0,
|
| 10 |
+
"attention_logit_cap": 50.0,
|
| 11 |
+
"conv_kernel_size": 5,
|
| 12 |
+
"dtype": "bfloat16",
|
| 13 |
+
"gradient_clipping": 10000000000.0,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 1024,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"model_type": "gemma4_audio",
|
| 18 |
+
"num_attention_heads": 8,
|
| 19 |
+
"num_hidden_layers": 12,
|
| 20 |
+
"output_proj_dims": 1536,
|
| 21 |
+
"residual_weight": 0.5,
|
| 22 |
+
"rms_norm_eps": 1e-06,
|
| 23 |
+
"subsampling_conv_channels": [
|
| 24 |
+
128,
|
| 25 |
+
32
|
| 26 |
+
],
|
| 27 |
+
"use_clipped_linears": true
|
| 28 |
+
},
|
| 29 |
+
"audio_token_id": 258881,
|
| 30 |
+
"boa_token_id": 256000,
|
| 31 |
+
"boi_token_id": 255999,
|
| 32 |
+
"dtype": "bfloat16",
|
| 33 |
+
"eoa_token_index": 258883,
|
| 34 |
+
"eoi_token_id": 258882,
|
| 35 |
+
"image_token_id": 258880,
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"model_type": "embedding_gemma2",
|
| 38 |
+
"text_config": {
|
| 39 |
+
"attention_bias": false,
|
| 40 |
+
"attention_dropout": 0.0,
|
| 41 |
+
"bos_token_id": 2,
|
| 42 |
+
"dtype": "bfloat16",
|
| 43 |
+
"embedding_dim": 768,
|
| 44 |
+
"eos_token_id": 1,
|
| 45 |
+
"head_dim": 256,
|
| 46 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 47 |
+
"hidden_size": 512,
|
| 48 |
+
"hidden_size_per_layer_input": 512,
|
| 49 |
+
"initializer_range": 0.02,
|
| 50 |
+
"intermediate_size": 2048,
|
| 51 |
+
"layer_types": [
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"sliding_attention",
|
| 55 |
+
"sliding_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"full_attention",
|
| 58 |
+
"sliding_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"sliding_attention",
|
| 61 |
+
"sliding_attention",
|
| 62 |
+
"sliding_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"sliding_attention",
|
| 65 |
+
"sliding_attention",
|
| 66 |
+
"sliding_attention",
|
| 67 |
+
"sliding_attention",
|
| 68 |
+
"sliding_attention",
|
| 69 |
+
"full_attention",
|
| 70 |
+
"sliding_attention",
|
| 71 |
+
"sliding_attention",
|
| 72 |
+
"sliding_attention",
|
| 73 |
+
"sliding_attention",
|
| 74 |
+
"sliding_attention",
|
| 75 |
+
"full_attention"
|
| 76 |
+
],
|
| 77 |
+
"max_position_embeddings": 262144,
|
| 78 |
+
"model_type": "embedding_gemma2_text",
|
| 79 |
+
"num_attention_heads": 4,
|
| 80 |
+
"num_hidden_layers": 24,
|
| 81 |
+
"num_key_value_heads": 2,
|
| 82 |
+
"pad_token_id": 0,
|
| 83 |
+
"per_layer_config": {
|
| 84 |
+
"05": {
|
| 85 |
+
"head_dim": 512,
|
| 86 |
+
"num_key_value_heads": 1
|
| 87 |
+
},
|
| 88 |
+
"11": {
|
| 89 |
+
"head_dim": 512,
|
| 90 |
+
"num_key_value_heads": 1
|
| 91 |
+
},
|
| 92 |
+
"17": {
|
| 93 |
+
"head_dim": 512,
|
| 94 |
+
"num_key_value_heads": 1
|
| 95 |
+
},
|
| 96 |
+
"23": {
|
| 97 |
+
"head_dim": 512,
|
| 98 |
+
"num_key_value_heads": 1
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"rms_norm_eps": 1e-06,
|
| 102 |
+
"rope_parameters": {
|
| 103 |
+
"full_attention": {
|
| 104 |
+
"rope_theta": 1000000.0,
|
| 105 |
+
"rope_type": "default"
|
| 106 |
+
},
|
| 107 |
+
"sliding_attention": {
|
| 108 |
+
"rope_theta": 10000.0,
|
| 109 |
+
"rope_type": "default"
|
| 110 |
+
}
|
| 111 |
+
},
|
| 112 |
+
"sliding_window": 512,
|
| 113 |
+
"vocab_size": 262144
|
| 114 |
+
},
|
| 115 |
+
"transformers_version": "5.22.1",
|
| 116 |
+
"use_cache": false,
|
| 117 |
+
"video_token_id": 258884,
|
| 118 |
+
"vision_config": {
|
| 119 |
+
"attention_bias": false,
|
| 120 |
+
"attention_dropout": 0.0,
|
| 121 |
+
"default_output_length": 280,
|
| 122 |
+
"dtype": "bfloat16",
|
| 123 |
+
"global_head_dim": 64,
|
| 124 |
+
"head_dim": 64,
|
| 125 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 126 |
+
"hidden_size": 768,
|
| 127 |
+
"initializer_range": 0.02,
|
| 128 |
+
"intermediate_size": 3072,
|
| 129 |
+
"max_position_embeddings": 131072,
|
| 130 |
+
"model_type": "gemma4_vision",
|
| 131 |
+
"num_attention_heads": 12,
|
| 132 |
+
"num_hidden_layers": 16,
|
| 133 |
+
"num_key_value_heads": 12,
|
| 134 |
+
"patch_size": 16,
|
| 135 |
+
"pooling_kernel_size": 3,
|
| 136 |
+
"position_embedding_size": 10240,
|
| 137 |
+
"rms_norm_eps": 1e-06,
|
| 138 |
+
"rope_parameters": {
|
| 139 |
+
"rope_theta": 100.0,
|
| 140 |
+
"rope_type": "axial"
|
| 141 |
+
},
|
| 142 |
+
"standardize": false,
|
| 143 |
+
"use_clipped_linears": false
|
| 144 |
+
},
|
| 145 |
+
"vision_soft_tokens_per_image": 280
|
| 146 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f81825d2a733cc752f59972cae404945d13c56d4b9864e4499e2b1d48243230e
|
| 3 |
+
size 1488915288
|