Instructions to use osanseviero/distilbert-base-nli-wkpooling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use osanseviero/distilbert-base-nli-wkpooling with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="osanseviero/distilbert-base-nli-wkpooling")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("osanseviero/distilbert-base-nli-wkpooling") model = AutoModel.from_pretrained("osanseviero/distilbert-base-nli-wkpooling", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download modules.json from osanseviero/distilbert-base-nli-wkpooling: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/osanseviero/distilbert-base-nli-wkpooling/resolve/main/modules.json
- Command line
-
hf download hf://osanseviero/distilbert-base-nli-wkpooling/modules.json
-
curl -L -o modules.json https://huggingface.co/osanseviero/distilbert-base-nli-wkpooling/resolve/main/modules.json
246 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_WKPooling", | |
| "type": "sentence_transformers.models.WKPooling" | |
| } | |
| ] |