Sentence Similarity
sentence-transformers
Safetensors
gemma3_text
feature-extraction
Generated from Trainer
dataset_size:3396
loss:SoftmaxLoss
text-embeddings-inference
Instructions to use cafierom/smiles_embedding_gemma_FT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use cafierom/smiles_embedding_gemma_FT with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cafierom/smiles_embedding_gemma_FT") sentences = [ "C[C@H](CCCC(C)(C)O)[C@H]1CC[C@H]2[C@@H]3CC=C4C[C@@H](O)CC[C@]4(C)[C@H]3CC[C@]12C", "CC(C)n1c(CC[C@@H](O)C[C@@H](O)CC([O-])=O)c(c(c1C(=O)NCc1ccccn1)-c1ccccc1)-c1ccc(F)cc1", "Cc1cc(OCc2ccccc2)cc(C)c1\\C=C\\[C@@H]1C[C@@H](O)CC(=O)O1", "Cc1ccc(C2CC3CCC2C=C3)n1CC[C@@H]1C[C@@H](O)CC(=O)O1" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "_sliding_window_pattern": 6, | |
| "architectures": [ | |
| "Gemma3TextModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_logit_softcapping": null, | |
| "bos_token_id": 2, | |
| "dtype": "float32", | |
| "eos_token_id": 1, | |
| "final_logit_softcapping": null, | |
| "head_dim": 256, | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "hidden_size": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1152, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 2048, | |
| "model_type": "gemma3_text", | |
| "num_attention_heads": 3, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 1, | |
| "pad_token_id": 0, | |
| "query_pre_attn_scalar": 256, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "full_attention": { | |
| "rope_theta": 1000000.0, | |
| "rope_type": "default" | |
| }, | |
| "sliding_attention": { | |
| "rope_theta": 10000.0, | |
| "rope_type": "default" | |
| } | |
| }, | |
| "sliding_window": 65, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.14.1", | |
| "use_bidirectional_attention": true, | |
| "use_cache": false, | |
| "vocab_size": 262144 | |
| } | |