Update README.md
Browse filesAdd comment of max_seq_len to sentence transformers, especially for efficient training:
# Optionally, lower the maximum sequence length for lower memory usage
# model.max_seq_length = 8192
README.md
CHANGED
|
@@ -79,6 +79,9 @@ model = SentenceTransformer("Qwen/Qwen3-Embedding-4B")
|
|
| 79 |
# tokenizer_kwargs={"padding_side": "left"},
|
| 80 |
# )
|
| 81 |
|
|
|
|
|
|
|
|
|
|
| 82 |
# The queries and documents to embed
|
| 83 |
queries = [
|
| 84 |
"What is the capital of China?",
|
|
|
|
| 79 |
# tokenizer_kwargs={"padding_side": "left"},
|
| 80 |
# )
|
| 81 |
|
| 82 |
+
# Optionally, lower the maximum sequence length for lower memory usage
|
| 83 |
+
# model.max_seq_length = 8192
|
| 84 |
+
|
| 85 |
# The queries and documents to embed
|
| 86 |
queries = [
|
| 87 |
"What is the capital of China?",
|