Instructions to use ancerlop/SetFitLocalhiiamsidKaggle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ancerlop/SetFitLocalhiiamsidKaggle with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ancerlop/SetFitLocalhiiamsidKaggle") 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 ancerlop/SetFitLocalhiiamsidKaggle with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("ancerlop/SetFitLocalhiiamsidKaggle") 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 ancerlop/SetFitLocalhiiamsidKaggle: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/ancerlop/SetFitLocalhiiamsidKaggle/resolve/refs%2Fpr%2F1/tokenizer_config.json
- Command line
-
hf download hf://ancerlop/SetFitLocalhiiamsidKaggle@refs/pr/1/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ancerlop/SetFitLocalhiiamsidKaggle/resolve/refs%2Fpr%2F1/tokenizer_config.json
559 Bytes
| { | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "[CLS]", | |
| "do_basic_tokenize": true, | |
| "do_lower_case": false, | |
| "mask_token": "[MASK]", | |
| "max_length": 512, | |
| "model_max_length": 512, | |
| "never_split": null, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "[PAD]", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "[SEP]", | |
| "stride": 0, | |
| "strip_accents": false, | |
| "tokenize_chinese_chars": true, | |
| "tokenizer_class": "BertTokenizer", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "[UNK]" | |
| } | |