Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:211
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20") sentences = [ "How long is the initial period of extra time in the drop-off procedure?", "required in drawn matches, the following drop - off procedure is used to determine a winner. 24. 1. 1 each team will reduce their on - field team to four ( 4 ) players and within 60 seconds take up a position to restart play from the halfway line, defending the same end of the field as at the end of play. 24. 1. 2 the drop - off commences with a tap from the centre of the halfway line by the team that did not commence the match with possession. 24. 1. 3 the drop - off will commence with a two ( 2 ) minute period of extra time. 24. 1. 4 should a team be leading at the expiration of the two ( 2 ) minute period of extra time then that team will be declared the winner and match complete. 24. 1. 5 should neither team be leading at the expiration of two ( 2 ) minutes, a signal is given and the match will pause at the next touch or dead ball. each team will then remove another player from the field of play. 24. 1. 6 the match will recommence immediately after the players have left the field at the same place where it paused ( i. e. the team retains possession at the", "made but must be included in relevant competition, event or tournament conditions 1. 2 line markings should be 4cm in width but must be no less than 2. 5cm. line markings are to be laid out as shown in appendix 1 - the field of play. sidelines extend seven ( 7 ) metres beyond the try lines to join the dead ball lines and define the in - goal areas which measure fifty ( 50 ) metres wide by seven ( 7 ) metres in length. 1. 3 the interchange areas are located no closer than one ( 1 ) metre from each sideline. 1. 4 suitably sized markers, cones or corner posts of a distinguishing colour and made from safe and pliable material should be positioned at the intersections of the sideline and halfway line and the sideline and the try line. 1. 4. 1 markers, cones or corner posts placed on the junction of the sideline and try line are deemed to be in the field of play. 1. 4. 2 all other markers or cones are deemed to be out of the field of play. 1. 5 the standard playing surface is grass. other surfaces including synthetic grass may be used but shall be subject to nta approved standards. 1. 6 the field of play", "required in drawn matches, the following drop - off procedure is used to determine a winner. 24. 1. 1 each team will reduce their on - field team to four ( 4 ) players and within 60 seconds take up a position to restart play from the halfway line, defending the same end of the field as at the end of play. 24. 1. 2 the drop - off commences with a tap from the centre of the halfway line by the team that did not commence the match with possession. 24. 1. 3 the drop - off will commence with a two ( 2 ) minute period of extra time. 24. 1. 4 should a team be leading at the expiration of the two ( 2 ) minute period of extra time then that team will be declared the winner and match complete. 24. 1. 5 should neither team be leading at the expiration of two ( 2 ) minutes, a signal is given and the match will pause at the next touch or dead ball. each team will then remove another player from the field of play. 24. 1. 6 the match will recommence immediately after the players have left the field at the same place where it paused ( i. e. the team retains possession at the" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20/resolve/main/config.json
- Command line
-
hf download hf://Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20/config.json
-
curl -L -o config.json https://huggingface.co/Trelis/multi-qa-MiniLM-L6-cos-v1-ft-pairs-2-cos-epoch-s20/resolve/main/config.json
687 Bytes
| { | |
| "_name_or_path": "sentence-transformers/multi-qa-MiniLM-L6-cos-v1", | |
| "architectures": [ | |
| "BertModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 384, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1536, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.42.3", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30522 | |
| } | |