Instructions to use facebook/contriever with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/contriever with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, Contriever tokenizer = AutoTokenizer.from_pretrained("facebook/contriever") model = Contriever.from_pretrained("facebook/contriever", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1234This model has been trained without supervision following the approach described in [Towards Unsupervised Dense Information Retrieval with Contrastive Learning](https://arxiv.org/abs/2112.09118), the associated GitHub repository is available here https://github.com/facebookresearch/contriever.## Usage (HuggingFace Transformers)Using the model directly available in HuggingFace transformers requires to add a mean pooling operation to obtain a sentence embedding.1234This model has been trained without supervision following the approach described in [Towards Unsupervised Dense Information Retrieval with Contrastive Learning](https://arxiv.org/abs/2112.09118). The associated GitHub repository is available here https://github.com/facebookresearch/contriever.## Usage (HuggingFace Transformers)Using the model directly available in HuggingFace transformers requires to add a mean pooling operation to obtain a sentence embedding.
README.md+1-1