Instructions to use Consensus/instructor-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Consensus/instructor-large with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Consensus/instructor-large") model = AutoModel.from_pretrained("Consensus/instructor-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download modules.json from Consensus/instructor-large: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/Consensus/instructor-large/resolve/main/modules.json
- Command line
-
hf download hf://Consensus/instructor-large/modules.json
-
curl -L -o modules.json https://huggingface.co/Consensus/instructor-large/resolve/main/modules.json
462 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| }, | |
| { | |
| "idx": 2, | |
| "name": "2", | |
| "path": "2_Dense", | |
| "type": "sentence_transformers.models.Dense" | |
| }, | |
| { | |
| "idx": 3, | |
| "name": "3", | |
| "path": "3_Normalize", | |
| "type": "sentence_transformers.models.Normalize" | |
| } | |
| ] | |