Instructions to use amazon/Titan-text-embeddings-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amazon/Titan-text-embeddings-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="amazon/Titan-text-embeddings-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("amazon/Titan-text-embeddings-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from amazon/Titan-text-embeddings-v2: direct link, hf CLI and curl.
- Browser
- Download file 45 Bytes
-
https://huggingface.co/amazon/Titan-text-embeddings-v2/resolve/main/config.json
- Command line
-
hf download hf://amazon/Titan-text-embeddings-v2/config.json
-
curl -L -o config.json https://huggingface.co/amazon/Titan-text-embeddings-v2/resolve/main/config.json
45 Bytes
| { | |
| "n_positions": 8192, | |
| "hidden_dim": 1024 | |
| } |