fix: update default length
Browse files
modeling_jina_embeddings_v4.py
CHANGED
|
@@ -37,7 +37,7 @@ class JinaEmbeddingsV4Processor(Qwen2_5_VLProcessor):
|
|
| 37 |
def __init__(self, *args, **kwargs) -> None:
|
| 38 |
Qwen2_5_VLProcessor.__init__(self, *args, **kwargs)
|
| 39 |
self.assistant_prefix_len = 58
|
| 40 |
-
self.text_max_length =
|
| 41 |
|
| 42 |
def process_images(
|
| 43 |
self,
|
|
@@ -417,7 +417,7 @@ class JinaEmbeddingsV4Model(Qwen2_5_VLForConditionalGeneration):
|
|
| 417 |
self,
|
| 418 |
texts: Union[str, List[str]],
|
| 419 |
task: Optional[str] = None,
|
| 420 |
-
max_length: int =
|
| 421 |
batch_size: int = 8,
|
| 422 |
return_multivector: bool = False,
|
| 423 |
return_numpy: bool = False,
|
|
|
|
| 37 |
def __init__(self, *args, **kwargs) -> None:
|
| 38 |
Qwen2_5_VLProcessor.__init__(self, *args, **kwargs)
|
| 39 |
self.assistant_prefix_len = 58
|
| 40 |
+
self.text_max_length = 32768
|
| 41 |
|
| 42 |
def process_images(
|
| 43 |
self,
|
|
|
|
| 417 |
self,
|
| 418 |
texts: Union[str, List[str]],
|
| 419 |
task: Optional[str] = None,
|
| 420 |
+
max_length: int = 32768,
|
| 421 |
batch_size: int = 8,
|
| 422 |
return_multivector: bool = False,
|
| 423 |
return_numpy: bool = False,
|