Sentence Similarity
sentence-transformers
Safetensors
gpt_neo
feature-extraction
Trained with AutoTrain
Instructions to use sankalps/autotrain-pair-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sankalps/autotrain-pair-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sankalps/autotrain-pair-model") sentences = [ "search_query: i love autotrain", "search_query: huggingface auto train", "search_query: hugging face auto train", "search_query: i love autotrain" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from sankalps/autotrain-pair-model: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/sankalps/autotrain-pair-model/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://sankalps/autotrain-pair-model/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/sankalps/autotrain-pair-model/resolve/main/tokenizer_config.json
1.01 kB
| { | |
| "add_bos_token": false, | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "50256": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50257": { | |
| "content": "[SOS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50258": { | |
| "content": "{SOS}", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "extra_special_tokens": {}, | |
| "max_length": 298, | |
| "model_max_length": 300, | |
| "pad_token": "<|endoftext|>", | |
| "stride": 0, | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<|endoftext|>" | |
| } | |