Instructions to use johngiorgi/declutr-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use johngiorgi/declutr-small with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("johngiorgi/declutr-small") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from johngiorgi/declutr-small: direct link, hf CLI and curl.
- Browser
- Download file 54 Bytes
-
https://huggingface.co/johngiorgi/declutr-small/resolve/578017c76391ddc8be96556cb961133ffc7ab5b3/tokenizer_config.json
- Command line
-
hf download hf://johngiorgi/declutr-small@578017c76391ddc8be96556cb961133ffc7ab5b3/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/johngiorgi/declutr-small/resolve/578017c76391ddc8be96556cb961133ffc7ab5b3/tokenizer_config.json
54 Bytes
| {"add_special_tokens": false, "model_max_length": 512} |