feat: fix the default values
Browse files
modeling_jina_embeddings_v4.py
CHANGED
|
@@ -288,8 +288,9 @@ class JinaEmbeddingsV4Model(Qwen2_5_VLForConditionalGeneration):
|
|
| 288 |
attention_mask (torch.Tensor): The attention mask tensor.
|
| 289 |
Returns:
|
| 290 |
JinaEmbeddingsV4ModelOutput:
|
| 291 |
-
|
| 292 |
-
|
|
|
|
| 293 |
"""
|
| 294 |
# Forward pass through the VLM
|
| 295 |
hidden_states = self.get_last_hidden_states(
|
|
@@ -362,7 +363,7 @@ class JinaEmbeddingsV4Model(Qwen2_5_VLForConditionalGeneration):
|
|
| 362 |
|
| 363 |
def _validate_encoding_params(
|
| 364 |
self,
|
| 365 |
-
output_format: Optional[Union[str, VectorOutputFormat]] =
|
| 366 |
truncate_dim: Optional[int] = None,
|
| 367 |
prompt_name: Optional[str] = None,
|
| 368 |
) -> Dict[str, Any]:
|
|
|
|
| 288 |
attention_mask (torch.Tensor): The attention mask tensor.
|
| 289 |
Returns:
|
| 290 |
JinaEmbeddingsV4ModelOutput:
|
| 291 |
+
vlm_last_hidden_states (torch.Tensor, optional): Last hidden states of the VLM.
|
| 292 |
+
single_vec_emb (torch.Tensor, optional): Single-vector embeddings.
|
| 293 |
+
multi_vec_emb (torch.Tensor, optional): Multi-vector embeddings.
|
| 294 |
"""
|
| 295 |
# Forward pass through the VLM
|
| 296 |
hidden_states = self.get_last_hidden_states(
|
|
|
|
| 363 |
|
| 364 |
def _validate_encoding_params(
|
| 365 |
self,
|
| 366 |
+
output_format: Optional[Union[str, VectorOutputFormat]] = None,
|
| 367 |
truncate_dim: Optional[int] = None,
|
| 368 |
prompt_name: Optional[str] = None,
|
| 369 |
) -> Dict[str, Any]:
|