Instructions to use librarian-bots/is_new_dataset_teacher_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use librarian-bots/is_new_dataset_teacher_model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("librarian-bots/is_new_dataset_teacher_model") 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 librarian-bots/is_new_dataset_teacher_model with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("librarian-bots/is_new_dataset_teacher_model") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download added_tokens.json from librarian-bots/is_new_dataset_teacher_model: direct link, hf CLI and curl.
- Browser
- Download file 77 Bytes
-
https://huggingface.co/librarian-bots/is_new_dataset_teacher_model/resolve/main/added_tokens.json
- Command line
-
hf download hf://librarian-bots/is_new_dataset_teacher_model/added_tokens.json
-
curl -L -o added_tokens.json https://huggingface.co/librarian-bots/is_new_dataset_teacher_model/resolve/main/added_tokens.json
77 Bytes
| { | |
| "</s>": 2, | |
| "<mask>": 30526, | |
| "<pad>": 1, | |
| "<s>": 0, | |
| "[UNK]": 104 | |
| } | |