Feature Extraction
Transformers
PyTorch
Safetensors
English
bert
mteb
sentence-transfomres
Eval Results (legacy)
text-embeddings-inference
Instructions to use BAAI/bge-large-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/bge-large-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="BAAI/bge-large-en")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-large-en") model = AutoModel.from_pretrained("BAAI/bge-large-en", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
a5a6b70
1
Parent(s): 000bd8e
Fix `model_max_length` in `tokenizer_config.json`
Browse filesThe current value of `model_max_length` in `tokenizer_config.json`(basically infinity) is inconsistent with `max_position_embeddings` in `config.json`. It's also inconsistent with that of `bge-base-en`.
This also happens with `bge-small-en`, but I was thinking that it was good to have any potential discussion here first, before sending a PR for that one as well.
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"do_basic_tokenize": true,
|
| 5 |
"do_lower_case": true,
|
| 6 |
"mask_token": "[MASK]",
|
| 7 |
-
"model_max_length":
|
| 8 |
"never_split": null,
|
| 9 |
"pad_token": "[PAD]",
|
| 10 |
"sep_token": "[SEP]",
|
|
|
|
| 4 |
"do_basic_tokenize": true,
|
| 5 |
"do_lower_case": true,
|
| 6 |
"mask_token": "[MASK]",
|
| 7 |
+
"model_max_length": 512,
|
| 8 |
"never_split": null,
|
| 9 |
"pad_token": "[PAD]",
|
| 10 |
"sep_token": "[SEP]",
|