Instructions to use hazyresearch/M2-BERT-128-Retrieval-Encoder-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hazyresearch/M2-BERT-128-Retrieval-Encoder-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="hazyresearch/M2-BERT-128-Retrieval-Encoder-V1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("hazyresearch/M2-BERT-128-Retrieval-Encoder-V1", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("hazyresearch/M2-BERT-128-Retrieval-Encoder-V1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload 4 files
Verified signature661c68d
-
Update README.md
Verified signaturea47b290
-
Update README.md
Verified signature051e132
-
Rename checkpoints_bert_LoCoV1_Checkpoints_128_ICML_Paper_checkpoint_trained_with_MSMARCO_for_BEIR_Eval.pt to pytorch_model.bin
Verified signature59876e6 -
Upload checkpoints_bert_LoCoV1_Checkpoints_128_ICML_Paper_checkpoint_trained_with_MSMARCO_for_BEIR_Eval.pt
Verified signaturef450624 -
Update README.md
Verified signaturef0a8c2a -
Update config.json
Verified signature1761a9d -
Upload 11 files
Verified signature90f1c7e -
initial commit
Verified signature79f7500