Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:10217
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Jade-Software/Jade-ModernBert-FT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Jade-Software/Jade-ModernBert-FT with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Jade-Software/Jade-ModernBert-FT") sentences = [ "What integer value is assigned to the global constant SDS_SecondaryType in JADE?", "#### drawWidth\n\n**Type:** - Integer\n\n**Availability:** - Read or write at run time only\n\nThe **drawWidth **property of the [Window](../window_class/window_class.htm) class contains the line width for output from graphics methods on a form or control.\n\nSet the **drawWidth** property to a value in the range **1** through **32,767**. This value represents the width of the line in pixels. The default value is **1** pixel wide.\n\nIncrease the value of the **drawWidth** property to increase the width of the line.", "#### JadeDynamicObjectTypes Category Global Constants\n\nThe global constants listed in the following table define symbolic names for the values of the [JadeDynamicObject](../../encyclosys1/jadedynamicobject_class/jadedynamicobject_class.htm#jadedynamicobjectclass) class [type](../../encyclosys1/jadedynamicobject_class/type.htm#typejadedynamicobject) attribute of dynamic objects returned from [JadeDatabaseAdmin](../../encyclosys1/jadedatabaseadmin_class/jadedatabaseadmin_class.htm#jadedatabaseadminclass) class query methods.\n\n| Global Constant | Integer Value |\n| ---- | ---- |\n| SDS_PrimaryType | 1 |\n| SDS_SecondaryProxyType | 2 |\n| SDS_SecondaryType | 3 |\n| SDS_TransactionType | 4 |", "#### sortOrder\n\n**Type:** - Integer\n\n**Availability:** - Read or write at run time only\n\nThe **sortOrder **property of the [JadeTableColumn](jadetablecolumn_class.htm) class contains the precedence of the column referenced by this object when sorting, in the range **1** through **3**, or it contains zero (**0**) to remove sorting on the current column.\n\nFor a description of this property, see the [Table](../../encyclowin/control_class/table_class.htm#tableclass) control [sortColumn](../../encyclowin/window__form__and_control_properties/sortcolumn.htm#sortcolumnwin) property. See also the [JadeTableColumn](jadetablecolumn_class.htm) class [sortAsc](sortasc.htm), [sortCased](sortcased.htm), and [sortType](sorttype.htm) properties, which are dependent on the column already being recorded as a sort column by the **sortOrder** property.\n\nThe code fragment in the following example shows the use of the **sortOrder** property.\n\n```\ntable1.accessColumn(2).sortOrder := 1; // first column in sort\r\ntable1.accessColumn(4).sortOrder := 2; // second column\r\ntable1.accessColumn(5).sortOrder := 3; // third column\n```" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 1,214 Bytes
82b0c22 | 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | {
"architectures": [
"ModernBertModel"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 50281,
"classifier_activation": "gelu",
"classifier_bias": false,
"classifier_dropout": 0.0,
"classifier_pooling": "mean",
"cls_token_id": 50281,
"decoder_bias": true,
"deterministic_flash_attn": false,
"embedding_dropout": 0.0,
"eos_token_id": 50282,
"global_attn_every_n_layers": 3,
"global_rope_theta": 160000.0,
"gradient_checkpointing": false,
"hidden_activation": "gelu",
"hidden_size": 768,
"initializer_cutoff_factor": 2.0,
"initializer_range": 0.02,
"intermediate_size": 1152,
"layer_norm_eps": 1e-05,
"local_attention": 128,
"local_rope_theta": 10000.0,
"max_position_embeddings": 8192,
"mlp_bias": false,
"mlp_dropout": 0.0,
"model_type": "modernbert",
"norm_bias": false,
"norm_eps": 1e-05,
"num_attention_heads": 12,
"num_hidden_layers": 22,
"pad_token_id": 50283,
"position_embedding_type": "absolute",
"repad_logits_with_grad": false,
"sep_token_id": 50282,
"sparse_pred_ignore_index": -100,
"sparse_prediction": false,
"torch_dtype": "float32",
"transformers_version": "4.51.0",
"vocab_size": 50368
}
|