Instructions to use BAAI/bge-large-zh-noinstruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/bge-large-zh-noinstruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="BAAI/bge-large-zh-noinstruct")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-large-zh-noinstruct") model = AutoModel.from_pretrained("BAAI/bge-large-zh-noinstruct") - Notebooks
- Google Colab
- Kaggle
How this model is allocated to 4 A100GPU use, when called, the video memory is displayed in one graphics card
#3
by jamboom - opened
How this model is allocated to 4 A100GPU use, when called, the video memory is displayed in one graphics card
If you use FlagModel, it will use all available GPUs automatically. For transformers, you need to add this command model = torch.nn.DataParallel(model).
For sentence transformers, you can refer to https://github.com/UKPLab/sentence-transformers .