Sentence Similarity
ONNX
Safetensors
sentence-transformers
PyLate
modernbert
ColBERT
feature-extraction
multilingual
code search
text-embeddings-inference
🇪🇺 Region: EU
Instructions to use lightonai/mLateOn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use lightonai/mLateOn with sentence-transformers:
from pylate import models queries = [ "Which planet is known as the Red Planet?", "What is the largest planet in our solar system?", ] documents = [ ["Mars is the Red Planet.", "Venus is Earth's twin."], ["Jupiter is the largest planet.", "Saturn has rings."], ] model = models.ColBERT(model_name_or_path="lightonai/mLateOn") queries_emb = model.encode(queries, is_query=True) docs_emb = model.encode(documents, is_query=False) - Notebooks
- Google Colab
- Kaggle
File size: 632 Bytes
98696c6 | 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 | {
"backend": "tokenizers",
"bos_token": "<bos>",
"clean_up_tokenization_spaces": false,
"cls_token": "<bos>",
"eos_token": "<eos>",
"is_local": true,
"mask_token": "<mask>",
"max_length": 299,
"model_input_names": [
"input_ids",
"attention_mask"
],
"model_max_length": 299,
"pad_to_multiple_of": null,
"pad_token": "<mask>",
"pad_token_type_id": 0,
"padding_side": "right",
"sep_token": "<eos>",
"spaces_between_special_tokens": false,
"stride": 0,
"tokenizer_class": "TokenizersBackend",
"truncation_side": "right",
"truncation_strategy": "longest_first",
"unk_token": "<unk>"
}
|