michaelfeil
commited on
Commit
•
1ea73a6
1
Parent(s):
c6c1b92
Infinity support: Short max_length for more optimized deployment
Browse files@ Alibaba Team, thanks so much for the support of this model.
How to run with https://github.com/michaelfeil/infinity
```
infinity_emb v2 --model-id Alibaba-NLP/gte-Qwen2-1.5B-instruct --revision "refs/pr/{thisnum}" --batch-size 4 --device cuda --engine torch
```
- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
"clean_up_tokenization_spaces": false,
|
40 |
"eos_token": "<|endoftext|>",
|
41 |
"errors": "replace",
|
42 |
-
"model_max_length":
|
43 |
"pad_token": "<|endoftext|>",
|
44 |
"split_special_tokens": false,
|
45 |
"tokenizer_class": "Qwen2Tokenizer",
|
|
|
39 |
"clean_up_tokenization_spaces": false,
|
40 |
"eos_token": "<|endoftext|>",
|
41 |
"errors": "replace",
|
42 |
+
"model_max_length": 2048,
|
43 |
"pad_token": "<|endoftext|>",
|
44 |
"split_special_tokens": false,
|
45 |
"tokenizer_class": "Qwen2Tokenizer",
|