Instructions to use AigizK/setfit-distilbert-user-time-intent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AigizK/setfit-distilbert-user-time-intent with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AigizK/setfit-distilbert-user-time-intent") 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 AigizK/setfit-distilbert-user-time-intent with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("AigizK/setfit-distilbert-user-time-intent") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download config.json from AigizK/setfit-distilbert-user-time-intent: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/AigizK/setfit-distilbert-user-time-intent/resolve/main/config.json
- Command line
-
hf download hf://AigizK/setfit-distilbert-user-time-intent/config.json
-
curl -L -o config.json https://huggingface.co/AigizK/setfit-distilbert-user-time-intent/resolve/main/config.json
627 Bytes
| { | |
| "_name_or_path": "/root/.cache/torch/sentence_transformers/distilbert-base-multilingual-cased", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertModel" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "initializer_range": 0.02, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.26.0.dev0", | |
| "vocab_size": 119547 | |
| } | |