Instructions to use fathyshalab/reklambox2-16-21 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use fathyshalab/reklambox2-16-21 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("fathyshalab/reklambox2-16-21") 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 fathyshalab/reklambox2-16-21 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("fathyshalab/reklambox2-16-21") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from fathyshalab/reklambox2-16-21: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/fathyshalab/reklambox2-16-21/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://fathyshalab/reklambox2-16-21/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/fathyshalab/reklambox2-16-21/resolve/main/tokenizer_config.json
542 Bytes
| { | |
| "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": "/home/fathy/.cache/torch/sentence_transformers/sentence-transformers_paraphrase-multilingual-mpnet-base-v2/", | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "special_tokens_map_file": null, | |
| "tokenizer_class": "XLMRobertaTokenizer", | |
| "unk_token": "<unk>" | |
| } | |