Instructions to use HasinMDG/Topic_mpnet_L2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use HasinMDG/Topic_mpnet_L2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("HasinMDG/Topic_mpnet_L2") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use HasinMDG/Topic_mpnet_L2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("HasinMDG/Topic_mpnet_L2") - Notebooks
- Google Colab
- Kaggle
File size: 472 Bytes
2182741 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | {
"bos_token": "<s>",
"cls_token": "<s>",
"eos_token": "</s>",
"mask_token": {
"__type": "AddedToken",
"content": "<mask>",
"lstrip": true,
"normalized": true,
"rstrip": false,
"single_word": false
},
"model_max_length": 512,
"name_or_path": "/kaggle/working/sentiment_classifier/",
"pad_token": "<pad>",
"sep_token": "</s>",
"special_tokens_map_file": null,
"tokenizer_class": "XLMRobertaTokenizer",
"unk_token": "<unk>"
}
|